
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
creditcard-generator
Advanced tools
Can generate valid credit card numbers for VISA, Amex, Mastercard, Diners, Discover, EnRoute, JCB, Voyager
A node.js library for generating test credit card numbers. The card numbers are valid with respect to the Luhn algorithm (Mod 10 test). https://en.wikipedia.org/wiki/Luhn_algorithm
GenCC([Scheme], [numberOfCards]. [pseudoRandomFunction]);
pseudoRandomFunction must supply random numbers between 0 to 1. Use this in conjunction with a seeded random number generator to reproduce test data.
generator = require('creditcard-generator')
generator.GenCC();
//Will return 1 MasterCardNumber
generator.GenCC("Amex");
//Will return 1 Amex number
generator.GenCC("VISA", 10);
//Will return 10 VisaCards numbers
generator.GenCC("Mastercard", 3, Math.random)
//Will generator 3 Mastercard numbers using the standard random function
All contributions are welcome. Please supply tests.
GNU GPL https://gnu.org/licenses/gpl.html
Project forked from https://github.com/grahamking/darkcoding-credit-card
FAQs
Can generate valid credit card numbers for VISA, Amex, Mastercard, Diners, Discover, EnRoute, JCB, Voyager
We found that creditcard-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.