ماتركس العربي
مرحبا بكم في منتدى ماتركس العربي
دعوة للتسجيل في منتدى ماتركس العربي منتدى شامل مواضيع اسلامية هندسية علوم رياضة شعر اعلانات افلام مسلسلات

انضم إلى المنتدى ، فالأمر سريع وسهل

ماتركس العربي
مرحبا بكم في منتدى ماتركس العربي
دعوة للتسجيل في منتدى ماتركس العربي منتدى شامل مواضيع اسلامية هندسية علوم رياضة شعر اعلانات افلام مسلسلات
ماتركس العربي
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.
بحـث
 
 

نتائج البحث
 


Rechercher بحث متقدم

المواضيع الأخيرة
» تصنيف بعض الاطعمة حسب درجة الحموضة
How to generate valid credit card number Empty2014-03-07, 2:55 am من طرف Admin

» موقف الفقه السني من الزنا هل صحيح
How to generate valid credit card number Empty2014-03-07, 2:36 am من طرف Admin

» تحميل صور خلفيات شاشة حاسبة جميلة
How to generate valid credit card number Empty2012-07-15, 2:00 am من طرف Admin

» فوئد الاكلات القاعدية والحامضية وتصنيفاتها
How to generate valid credit card number Empty2012-05-29, 12:02 am من طرف Admin

» هل تعلم الفرق بين الضاد والظاء
How to generate valid credit card number Empty2012-04-18, 7:22 pm من طرف Admin

» احراز وعوذات مروية عن رسول الله ص واهل البيت عليهم السلام
How to generate valid credit card number Empty2012-04-02, 4:16 am من طرف Admin

» الهندباء علاج لكثير من الامراض فوائده ومحاذيره وطرق تحضيره
How to generate valid credit card number Empty2012-03-28, 3:43 pm من طرف Admin

» هل تعلم لماذا نهى الرسول الكريم عن لمس الكلب.....حقيقة علمية جديدة
How to generate valid credit card number Empty2012-03-15, 2:46 am من طرف Admin

» فوائد عصير الخيار لصحة الانسان
How to generate valid credit card number Empty2012-03-07, 2:46 am من طرف Admin

» فوائد الشاي الاخضر مضاره وطريقة تحضيره
How to generate valid credit card number Empty2012-03-04, 8:30 pm من طرف Admin

» فوائد الزعتر
How to generate valid credit card number Empty2012-02-15, 11:48 pm من طرف Admin

» فوائد اليانسون وشربه في الشتاء
How to generate valid credit card number Empty2012-02-15, 11:32 pm من طرف Admin

» الثوم علاج ناجع للاصابة بالفطريات الجلدية
How to generate valid credit card number Empty2012-01-25, 11:13 pm من طرف Admin

» قصيدة رائعة
How to generate valid credit card number Empty2012-01-21, 4:29 pm من طرف Admin

» حمل مجانا لعبة مطاردات الشرطة
How to generate valid credit card number Empty2012-01-20, 12:33 am من طرف Admin


How to generate valid credit card number

اذهب الى الأسفل

How to generate valid credit card number Empty How to generate valid credit card number

مُساهمة  Admin 2012-01-09, 8:05 pm

Typical credit card anatomy

Before we understand how credit card numbers are generated, here is a brief explanation of what a typical credit card number means.
How to generate valid credit card number Credit%20card%20number

Out of the 16 numbers on a typical credit card, the set of first 6 digits is known as the issuer identifier number (read this for details), and the last digit is known as the “check digit” which is generated in such a way as to satisfy a certain condition (the Luhn or Mod 10 check). “Luhn check” is explained later in this post. The term sounds intimidating, but it’s really a very simple (and elegant) concept.
Taking away the 6 identifier digits and 1 check digit leaves us with 9 digits in the middle that form the “account number”.
Now, there are 10 possible numbers (from 0 to 9) that can be arranged in these 9 places. This gives rise to 109 combinations, that is, 1 billion possible account numbers (per issuer identifier).
With each account number, there is always an unique check digit associated (for a given issuer identifier and an account number, there cannot be more than one correct check digit)
Amex issues credit cards with15 digits. The account numbers in this case are 8 digit long.
What is the “Luhn” or “Mod 10″ check?

In 1954, Hans Luhn of IBM proposed an algorithm to be used as a validity criterion for a given set of numbers. Almost all credit card numbers are generated following this validity criterion…also called as the Luhn check or the Mod 10 check. It goes without saying that the Luhn check is also used to verify a given existing card number. If a credit card number does not satisfy this check, it is not a valid number. For a 16 digit credit card number, the Luhn check can be described as follows:

Starting with the check digit, double the value of every second digit (never double the check digit). For example, in a 16 digit credit card number, double the 15th, 13th, 11th, 9th…digits (digits in odd places). In all, you will need to double eight digits.
If doubling of a number results in a two digit number, add up the digits to get a single digit number. This will result in eight single digit numbers.
Now, replace the digits in the odd places (in the original credit card number) with these new single digit numbers to get a new 16 digit number.
Add up all the digits in this new number. If the final total is perfectly divisible by 10, then the credit card number is valid (Luhn check is satisfied), else it is invalid.
When credit card numbers are generated, the same steps are followed with one minor change. First, the issuer identifier and account numbers are assigned (issuer numbers are fixed for a given financial institution, whereas the account numbers are randomly allocated - I think). Then, the check digit is assumed to be some variable, say X. After this, the above steps are followed, and during the last step, X is chosen in such a way that it satisfies the Luhn check.

This part is a bit confusing and takes some time to understand. However, don’t get stuck here…continue reading through the examples below and you will figure out what this is all about.

Credit card numbers valid or invalid?

Have you ever wondered if those numbers on the fake plastic or cardboard credit cards that come with the “preapproved” offers are real or imaginary? If they are not valid, how do you know it?…Just apply the Luhn check and all the those fake credit cards will invariably fail.Here is an example of a VISA credit card (look at the expiry date - 01/09 ..it’s still valid ! )

How to generate valid credit card number VISA%20credit%20card

Note that the credit card number starts with “4″…so it is indeed a VISA issued credit card (VISA cards start with “4″ and MasterCard/Maestro cards start with “5″). Now, let us apply the Luhn algorithm to this card. To make it easier on you guys, I have created a schematic of the steps towards the Luhn check (below) for this card number 4552 7204 1234 5678:
How to generate valid credit card number Luhn-visa-calculation


In this case, when we sum up the total, it comes to 61 which is not perfectly divisible by 10, and hence this credit card number is invalid.
If such a credit card number is ever generated, the value of the check digit would be adjusted in such a way as to satisfy the Luhn condition. In this case, the only value of the check digit, that will create a valid credit card number, is 7. Choosing 7 as the check digit will bring the total to 60 (which is perfectly divisible by 10) and the Luhn condition will be satisfied. So the valid credit card number will be 4552 7204 1234 5677.

Admin
Admin

عدد المساهمات : 144
تاريخ التسجيل : 12/06/2011
العمر : 44

https://matrix.forumarabia.com

الرجوع الى أعلى الصفحة اذهب الى الأسفل

الرجوع الى أعلى الصفحة

- مواضيع مماثلة

 
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى