https://github.com/zerowithzero/zerowillreborn-secure-password-generator
CLI + API to generate secure passwords with options for length, symbols, and readability
https://github.com/zerowithzero/zerowillreborn-secure-password-generator
cli cli-password-generator node-package npm npm-package npmjs password-generator secure secure-password-generator zerowillreborn
Last synced: 6 months ago
JSON representation
CLI + API to generate secure passwords with options for length, symbols, and readability
- Host: GitHub
- URL: https://github.com/zerowithzero/zerowillreborn-secure-password-generator
- Owner: zerowithzero
- License: mit
- Created: 2025-07-05T06:00:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-05T06:40:48.000Z (about 1 year ago)
- Last Synced: 2025-08-01T23:34:12.159Z (12 months ago)
- Topics: cli, cli-password-generator, node-package, npm, npm-package, npmjs, password-generator, secure, secure-password-generator, zerowillreborn
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@zerowillreborn/secure-password-generator
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ secure-password-generator
The **simplest and smartest** CLI + API tool to generate secure passwords โ instantly.
Built for developers who care about **security, usability**, and **speed**.
---
## ๐ Features
- โ
**Super Secure** โ Uses Node.js `crypto.randomInt()` (cryptographically strong)
- ๐งช **CLI + API Support** โ Generate from terminal or within your code
- ๐ง **Readable Mode** โ Excludes confusing characters like `O0Il1|`
- ๐ **Customizable** โ Set length, toggle symbols, and readability
- ๐ **Clipboard Support** โ Auto-copy password in CLI
- ๐ **Modern CLI UX** โ Beautiful banner, colors, intuitive design
---
## ๐ง Why This Package?
**Unlike alternatives like generate-password, this tool:**
- โ
Provides both CLI and API in one clean install
- โ
Uses secure randomness (no Math.random)
- โ
Offers a readable mode for user-friendly onboarding
- โ
Copies passwords to clipboard automatically
- โ
Has zero config, beautiful UX, and instant usage
---
## ๐ฆ Installation
### ๐ For CLI Use (Global)
```bash
npm install -g @zerowillreborn/secure-password-generator
```
### Now you can use:
```bash
secure-pass --help
Example:
secure-pass --length 16 --symbols --readable
```
### ๐ For API Use in Projects
```bash
npm install @zerowillreborn/secure-password-generator
```
### ๐งโ๐ป API Usage
```bash
import generatePassword from '@zerowillreborn/secure-password-generator';
const password = generatePassword({
length: 16,
symbols: true,
readable: true
});
console.log(password); // 'abc$XyZ09LMn!pqR'
```
> โ
Fully ESM-compatible, no external dependencies
## ๐ API Reference
```bash
generatePassword(options?: {
length?: number; // Default: 12
symbols?: boolean; // Include special characters, default: true
readable?: boolean; // Remove ambiguous characters, default: false
}): string
```
## ๐ How It Works
**This package uses Node's native crypto.randomInt() for true secure random number generation. Unlike other tools, we never use Math.random().**
# ๐จโ๐ป Author
**Achal Chaudhary**
**achal.psolver@gmail.com**