
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
luhn-generator-crypto
Advanced tools
A modified version of the original luhn-generator (by rromanovsky) that uses cryptographic randomness (randomBytes) for secure randomness.
A generator of numbers (using cryptographic randomness function randomBytes) that passes the validation of Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm
This package is a fork of luhn-generator.
It replaces Math.random() with crypto.randomBytes() for stronger randomness.
npm install luhn-generator-crypto --save
$ node
> import luhn from 'luhn-generator-crypto';
> luhn.generate(1, { pad: 12 }); // 000000000018
FAQs
A modified version of the original luhn-generator (by rromanovsky) that uses cryptographic randomness (randomBytes) for secure randomness.
We found that luhn-generator-crypto demonstrated a healthy version release cadence and project activity because the last version was released less than 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 MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.