Credit card generator
If you just need a bunch of numbers use the online credit card number generator. That page is generated by an online version of this script. The program here will only be useful to you if you know what one of Python, Java, PHP or Javascript are, and how to run a program in one of them.
Command line Python program, Java program, PHP script, and Javascript script to generate valid (MOD 10) credit card numbers. Usefull for testing e-commerce sites. (Note: You can't actually buy anything with these). Should run on any platform.
This generates 13 and 16 digit VISA, Mastercard, Amex, and a whole bunch of others.
The ZIP and TAR.GZ below contain all four versions: The Python, Java, PHP and Javascript files.
Download (zip)Download (tar.gz)
If you want to go one step further and generate a whole test identity, try the Fake Name Generator. It makes use of this credit card generator, and adds a lot of other identity data.
RSS / Atom feed
Spindle said,
September 2, 2008 at 07:22
I love reading through these comments, man the spam ones make me laugh so friggin much, especially the Drug Dealer one, I have no clue how to use this stuff to my advantage, so I’m just leaving my own form of spam here
Jovanhovan said,
June 25, 2008 at 14:16
Hello mister,
I am a fantic plazer of the best world game World of Warcraft, I play it so I don’t have to talk to people, I am homophobic, thats right I am afraid of people and can only talk to them if I see them as fantasy creatures. So anyway, please give me a credit card with lots of money so I can pay subscription fee, I got no money because my parents went to a business trip to Japan and they never came back
rob said,
April 26, 2008 at 19:44
man i gotta tell this is probably the most intelligent thing i’ve read or seen since the movie endgame. I like your method of finding numbers and by the way for the first example the check number should be 4 thanks man this was intertaing
Jar said,
April 22, 2008 at 11:38
Thanks, the laser eye surgery was success and they did not know this was fake number even.
lekan said,
March 29, 2008 at 14:19
hello!!! you are well?!
My name is lekan, I am 23 years old, I am student, and I live inlagos in inigeria (West Africa), I am reall ylike your ingeniousness. You created simple and practical methods which enable you to obtain credit cards valid numbers and still in activity. I am really very interested by your last discoveries, I want to be your friend, I want to profit of your expert in this field, I ask you to agree to send your methods to me, failing this to send to me some valid numbers .thanks
tsikata joshua said,
March 26, 2008 at 15:43
Thanks for posting this (and your previous mod10 validator). It provided the basis of a credit card validator and also a few mock numbers for testing for a reasonably busy Java based e-commerce site that I worked on last year.
It also used to be incredibly amusing reading all the begging letters for a valid number, especially the ones with justifications like above (school you say!) I never understood why people didn’t realise that a number that obeys mod10 does not suddenly give you a credit card account. There’s lots of obvious (and also some subtle) bits and pieices missing so a wannabe skiddie is never going to get very far armed with just an algorithm and a load of not so random numbers.
Thanks again.
Graziella said,
March 5, 2008 at 16:00
it works.thanks now i can go back to school
Paul said,
February 24, 2008 at 06:39
o hai. im mai ownerz kat anD i nede monies to bye eztraz catnip?! thanks!
Haha…that would fit in perfectly here. I admire you for not ceasing comments; I would have by now =P
EDIT: I dislike your spam protection. It asked “one + two” so I entered “three” which is apparently wrong..I know now it was supposed to be “3″, but I figured it wanted it spelled out because it spelled it out..
Romeyo said,
February 23, 2008 at 02:01
Hello,
I used a generated card from this site to buy a condom but it didn’t work (the condom I mean). Now I can’t sue the company cause I can’t prove that I paid for it. What’ll do I do with this baby? His mother left him in the trunk of my car. Can I send it to you?
tell a friend script said,
January 18, 2008 at 08:39
It also used to be incredibly amusing reading all the begging letters for a valid number, especially the ones with justifications like above (school you say!) I never understood why people didn’t realise that a number that obeys mod10 does not suddenly give you a credit card account.
Alien said,
December 12, 2007 at 06:32
hello! i am an alien and my ship runned out of gas. as its runs on diamonds, i need a credit card with an huge amount of money of some rich terrestrian so i can go back to my planet and spent all in drugs and alcohol and helping little child aliens. please help me.
adam sdfihk said,
October 27, 2007 at 17:45
does it work with a mac???
Kevin said,
October 9, 2007 at 23:42
I am not gonna lie, I took my parents camaro out for a drive, not insured for me and I blew the clutch..Im broke and if I dont get that repaired by the time they get back from vacation im beyond dead. So i need the hook ups or else im dead please.
techno17 said,
August 16, 2007 at 15:05
hello!!! you are well?!
My name is Patrick, I am 23 years old, I am student, and I live in Abidjan in ivory coast (West Africa), I am really impressed by your ingeniousness. You developed simple and practical methods which enable you to obtain credit cards valid numbers and still in activity. I am really very interested by your last discoveries, I want to be your friend, I want to profit of your expertism in this field, I ask you to agree to send your methods to me, failing this to send to me some valid numbers .
Still cheer!!! and Thank you!!!
Nick said,
June 20, 2007 at 18:55
This script has been very helpful. I know how to create cards as I have to validate them inside of my program, but I always appreciate something that can do the work for me. It’s not lazy, it’s efficient! Thank you very much for saving me time which I will now use to further test my program.
Peter said,
April 9, 2007 at 13:56
Thanks - this makes the PayPal sandbox a little easier, still pretty hellish, but a little easier.
PS Spam protection device v. ingenious, also should defeat some of your users.
lewis said,
March 26, 2007 at 17:59
Excellent job, i personally think it is really sad that people are asking you for money but excellent job helped me fix my eCart
Erik Sorenson said,
March 15, 2007 at 13:17
Hello Graham
I’m programming an ordering application for a shirt company for a programming project in my high school. This is my first year programming, but my teacher thinks I’m a genius, and encourages and “nudges” me to go above and beyond what we’re coding.
The application we’re designing is for an operator for the company to put in information as they get it over the phone. And since it’s ordering over the phone, a valid credit card number is required. So, I plan to work the credit card generator and validator in, somehow. Unfortunately I only know Visual (”bloody” as Drei Viertel said) Basic, but I know Javascript so I can probably convert it.
Good luck!
Erik
richardsmith said,
February 8, 2007 at 14:45
Hello
Am richard please i need your help i want to drive hunger from the people living around me cos there ar many children which aredieing of hunger in my community so i need to help them pls i need a complete credit card with all the information of the card complete cos i need to supply food for this children cos they are the leaders of tommorow
thanks
daniela said,
February 8, 2007 at 14:32
Hi
Am daniela pls i need a credit card for an important thing i volontiaed to get new cloths for all the motherless babies aroundme and i dont have enough money to do that so i need a good and geniew card so that i can use it to shop cloths for the babies
thanks
drugdealer said,
January 29, 2007 at 01:58
hi
i’m a local drug dealer from the projects near you. I need to pay 13,500 USD within 2 days or they gun me down. PLEASE HELP! if you give me money ill shoot anyone you want!
P.S.: Could you also write a fake “NAME” and “ADRESS” generator?
any hot studs in here holla at me! BLOODZ4EVER
Graham said,
December 13, 2006 at 12:20
WOW my name is graham also
Rob said,
November 20, 2006 at 00:29
Very goood script, thanks
Ivan(CityTV - BG) said,
November 7, 2006 at 14:09
I like this website veeeeery much. I’ll use this info…
Salma said,
November 7, 2006 at 09:19
I love the King
ronny said,
September 22, 2006 at 06:08
I like very much this website!!!!!!!!!!!!!!!!!!!!!!!!!!! AWESOME
Raj said,
July 7, 2006 at 16:04
Thanks for posting this (and your previous mod10 validator). It provided the basis of a credit card validator and also a few mock numbers for testing for a reasonably busy Java based e-commerce site that I worked on last year.
I m thankfull to the website owner.
Billy Graham said,
May 14, 2006 at 03:07
Thank you so much!!
jerome nicholas said,
April 20, 2006 at 22:18
Thanks alot it really helped my shopping cart project
Rapha-el said,
April 14, 2006 at 23:31
Sheesh! Sometimes. Just sometimes. A little less mathematics and a little more English no matter how complicated works much better. Well ill work on figuring all this pluses and decimals out . Thanks anyway.
Clement said,
April 12, 2006 at 17:11
thank you very much
Babalola Idowu said,
April 10, 2006 at 13:39
Intersting web site. and good discovery
killer code said,
April 5, 2006 at 18:35
um…..i still dont get how to use it…..
i smoke to much weed and my brain is a mush…
can some one tell me an easyer way of doing all of this
R said,
April 5, 2006 at 15:47
lol so should you be called “Graham Cracker”
Billy said,
March 26, 2006 at 20:10
Hi there,
First I’d like to point out the Google Answers disclaimer on the
bottom of the page, and remind you that most of the following
information that was found is strictly to be used for educational
purposes.
The CVV (Card Verification Value) is a sequence of digits constructed
by cryptographic process and written to the magnetic stripe of the
card. Data such as card number, the expiration date and the service
code is triple encrypted using a special Card Verification key pair,
and selected digits from the results are used to create the CVV. The
algorithm used in the calculation is similar to that of PIN
encryption.
For information on how these cards are encrypted, please refer to:
http://www.amarshall.com/crypt101.html
Specifically, CVC (card verification code) and CVV (card verification
value) are encrypted using the Triple DES system. The Triple DES used
for CVC and CVV uses two single length Keys such that the first Key
encrypts data, the second Key decrypts the results of that encryption,
and the first Key encrypts the results of the description.
For details on the use of DES and 3DES in financial institutions,
please refer to the following white paper.
http://www.pulse-eft.com/upload/EncryptionKeyWhitePaper4_2003.pdf
For a visual representation of how the encryption works please take a look at:
http://www.maxlin.ca/tos/ga/3des.jpg
Since PIN encryption uses same/similar system, here’s a sample excerpt
to provide you with a better understanding of how it works:
**
The PIN (Personal Identification Number) is basically encrypted as
follows. The card number is taken as an hexadecimal number and is
encrypted with the DES algorithm using a secret key, which is called
the “PIN key”. The first four digits are decimalized (i.e., A = 0, B =
1, …) and are called the “natural PIN”. An offset is added (without
carry) to the natural PIN in order to obtain the customer PIN. The
customer PIN may be changed but the natural PIN cannot. The offset is
what is written in track 3 and I called the “encrypted PIN”. Here you
have an example:
Card number: 1234567890123445hex input for DES.
PIN key: 0123456789ABCDEFhex key for DES.
Encrypted card number: 9A466AD30DFE0381hex output from DES.
Natural PIN: 9046.
Offset: 2298 (this number is written on track 3).
Customer PIN: 1234.
**
The author also recommends the following links:
Breaking the Visa PIN
http://www.gae.ucm.es/~padilla/extrawork/visapvv.html
Original Visa Scheme
http://axion.physics.ubc.ca/atm.html
Discussion on other systems
http://www.gae.ucm.es/~padilla/extrawork/magnews.txt
The CVV, however, is still only an additional security; it is not fool
proof. Even systems with much higher security, the 96-digit enryption
algorithm, was cracked by hackers and posted on the internet in the
past.
http://www.computeruser.com/newstoday/00/03/11/news4.html
[graham] Wow! Thanks a lot for this Billy / tm1. Good stuff indeed.
Darnell said,
February 20, 2006 at 22:23
The purpose of this script is for software developers to create test-data for their online stores. It is not so you can generate credit card numbers to actually run transactions with. So, all you wanna-be thieves saying this script is useless, that doesn’t mean much coming from a useless person such as yourself.
And andris bardan, aren’t you just a little smarty smart-tard. Look at you using your cute little brain! I’m using this script to generate fake credit card numbers for an encryption scheme I’m testing. I need these numbers in the thousands. So, this script is useful to some people. It takes the coding/testing/debugging time out of the equation for some of us who have legitimate reasons for generating lots of fake credit card numbers.
And Thanks Graham King. The PHP version of this script will save me a lot of time, and make it so I don’t have to handle any real credit card data to get my new module working.
-Darnell
Some Guy said,
February 17, 2006 at 08:08
Surely there must be someone on this website, who is capable of using the english language properly.
ho fung said,
January 15, 2006 at 20:01
yes the program works but it is still useless without a exp dates and ccv2/cvc2 numbers
andris bardan said,
January 10, 2006 at 05:52
i can do the cpoputing in my mind to generate a c card so why do i need this stupid program 1234 5678 9123 456x 2+4+6+8+1+3+5=……1
1*2+3*2+5*2-1+………=……2
1+2=let say 21 the most close number that devide by 10 is 30 so 30-21=9
x=9
jay said,
January 9, 2006 at 20:00
Outstanding. Saved me some time testing a new catalog site. Also got a good laugh at the stupid kids. Thanks.
issah salia said,
December 25, 2005 at 17:44
thanks
chud said,
December 5, 2005 at 19:07
Thanks for the code. Saved me lots of time and testing!
Seb said,
November 26, 2005 at 14:24
Excellent piece of code, I was impressed.
Have you thought about creating one for Switch/Solo?
[graham] The Luhn algorithm should work for Switch / Solo to.
Martin said,
November 15, 2005 at 16:49
Thanks for posting this (and your previous mod10 validator). It provided the basis of a credit card validator and also a few mock numbers for testing for a reasonably busy Java based e-commerce site that I worked on last year.
It also used to be incredibly amusing reading all the begging letters for a valid number, especially the ones with justifications like above (school you say!) I never understood why people didn’t realise that a number that obeys mod10 does not suddenly give you a credit card account. There’s lots of obvious (and also some subtle) bits and pieices missing so a wannabe skiddie is never going to get very far armed with just an algorithm and a load of not so random numbers.
Thanks again.
Drei Viertel said,
November 9, 2005 at 15:40
Hm… Aren’t you worried about scripties nicking it? I like the fact that it’s in Pyth, though. Anything’s better than Visual bloody Basic… anyway, congrats, it works, well done.
- DV