An open API service indexing awesome lists of open source software.

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

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**