Download Credit Card Validation Tool ( Devloped using Luhn algorithm )
Click here to Download offline credit card validation Tool Credit Card Validation Tool Version 1.0
This is standalone Credit card tool which can be used to verify valid credit card number (Internet is not required).
It’s based on “modulus 10” or “mod 10” algorithm. Modulus 10 was created by IBM scientist Hans Peter Luhn and described in U.S. Patent No. 2,950,048 and also known as Luhn algorithm.
Luhn algorithm is a simple checksum formula used to validate a variety of identification numbers, such as credit card and IMEI numbers.
Pseudo-Code
function checkLuhn(string purportedCC) {
int sum := 0
int nDigits := length(purportedCC)
int parity := nDigits modulus 2
for i from 0 to nDigits – 1 {
int digit := integer(purportedCC[i])
if i modulus 2 = parity
digit := digit × 2
if digit > 9
digit := digit – 9
sum := sum + digit
}
return (sum modulus 10) = 0
}
More details can be found on Wikipedia page.
Here, code is written in Python and wxPython toolkit and py2exe utilities are being used.
py2exe is a distutils extension to create standalone windows programs from python scripts.
wxPython is the cross-platform GUI toolkit for the Python language.
Steps to run the tool after you have downloaded it:
Step 1: Unzip folder named Credit Card Validation Tool Version 1.0 and make sure these four files are present in folder
CardValidation.exe (Application)
Library.zip
Python27.dll
w9xpopen.exe (Application)
Step 2: Double click CardValidation.exe
Step 3: Enter Credit card number and click Validate Card
Step 4: If number is Valid, Tool will display Valid else it will display Invalid card number
Limitation/Note:
- This tool will work only on Windows machine
- You may get warning as you are running .exe file. This is not virus and you can run it.
- Size is bit big, In upcoming version, reducing the file size is on top priority.
Thank You.