
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
random-key
Advanced tools
$ npm install random-key
Generate cryptographically strong pseudo-random string, with given length.
Generate random digits, with given length. optional keys: 0-9
Generate random string that is easy to read by human, with given length.
optional keys: 1-9, A-Z exclude(E, G, I, J, O) for human read
var rand = require("random-key");
rand.generate(); // => eg: wexO23UXGezfTKHc
rand.generate(7); // => TShNQGc
rand.generateDigits(5); // => 08297
rand.generateBase30(5); // => K5UJ1
nodejs-random-string is licensed under the BSD license.
FAQs
Generating random strings (cryptographically strong) for NodeJS
The npm package random-key receives a total of 5,646 weekly downloads. As such, random-key popularity was classified as popular.
We found that random-key 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.