Hans-Peter Luhn Creator of the Luhn algorithm and the scientist who created all the credit card numbers we use today. Although this algorithm does not require very advanced math, it is quite useful and organized.
The Luhn algorithm has been used since the 1950s. So what exactly is the working logic? Can credit card numbers be easily found with the Luhn algorithm? In this article, we will focus on these two questions.
The magic is in math. The mystery of the mathematics underlying the Luhn algorithm:
Of course, we didn’t do any calculations on 16-digit credit card numbers here. Let’s introduce ourselves 12345 We have the number. We multiply the numbers that we skipped by two, including the initial value, by 2 and add them after the multiplication. The action taken 1*2+3*2+5*2is .
In the case of multiplication by two, as the product value 10 and if greater than 10 We add the numbers to the numbers. Focusing on our example, there are 5 * 2. Since the product result is 10, 1+0 operation is performed and 1 is obtained.
Due to transactions 2+6+1=9 We came to the conclusion. Of course we have to do two more surgeries. We have blank numbers left. Now let’s take the free numbers (2 and 4) and add them by 9. We have reached the result 9+2+4=15. Finally, we divide the obtained value by 10. If we get the remainder 0, is a real credit card understandable. If the remainder is anything other than 0, it’s not a real credit card number.
Credit card numbers are easy to find.
If we look at the working logic of the Luhn algorithm, it has a very simple logic. In addition, by using software languages, without manual calculation. we can find the card numbers automatically.
to this situation do not worry. Easy to find credit card number doesn’t mean other information can be found easily. In other words, your credit cards are created in a very secure way than you think.
This algorithm works on ID cards, passport numbers and IMEI numbers of some countries.
Let’s go a little far, to the African side. South Africa uses the Luhn algorithm in generating their identity cards. Let’s not go far this time, take your phone and Search for *#06# on your phone.
The songs you will watch It is the IMEI number. IMEI numbers are also generated according to the Luhn algorithm. Isn’t it very impressive?
Love math because it works for us in every aspect of our lives.
As you know, today math is taught by rote in schools and in various educational institutions. We’ve all been in math class at least once. “I learned that, what’s in it for me now?” We asked a question.
As a software trainer, I can say that in everything in everyday life there is a trace of math. Luhn’s algorithm just one of them.
Affordable exchange campaign for those who want to renew their Apple computer