| Crates.io | tinypw |
| lib.rs | tinypw |
| version | 0.2.0 |
| created_at | 2025-09-09 07:44:51.560786+00 |
| updated_at | 2025-09-28 12:18:18.544491+00 |
| description | Yet another tiny CLI tool to generate passwords |
| homepage | https://github.com/marconae/tinypw |
| repository | https://github.com/marconae/tinypw |
| max_upload_size | |
| id | 1830373 |
| size | 49,978 |
A tiny, fast CLI tool to generate random passwords.
I wanted to learn Rust. Additionally, I often need to quickly generate passwords, and since I usually work in a terminal, a CLI tool is highly convenient.
Default behaviour:
> tinypw
Password: GLkuLb(RsK55Y(Y8
[███████████████░░░░░░░░░] 63.7% good 🙂
Set the length with tinypw -l 20:
> tinypw -l 20
Password: Fphb5nCbg6XZscn$5zD*
[██████████████████████░░] 90.8% strong 😎
Define the character set with -m <mode> where mode is a combination of letters:
u = include uppercase A–Zl = include lowercase a–zn = include digits 0–9s = include symbols !#$&()*+/e = exclude similar-looking characters: i l 1 o 0 OExample: just lowercase letters and numbers:
> tinypw -l 20 -m ln
Password: hzdtx57jj2horb0x8dqh
[█████████████████████░░░] 86.8% strong 😎
Add extra characters with -x <extra_chars>.
Example: length 20, use uppercase, lowercase and numbers and also include ;:?!"'
> tinypw -l 20 -m uln -x ";:?\!\"'"
Password: wlw7qp!9fEnataRS7ap:
[█████████████████████░░░] 86.8% strong 😎
Copy to clipboard with -c:
> tinypw -c
Password: HLCY2vvsanaQurdG
[████████████████░░░░░░░░] 67.7% strong 😎
Password copied to clipboard.
Quiet mode: print only the password with -q:
> tinypw -q
HLCY2vvsanaQurdG
-nulnse (upper, lower, numbers, symbols; exclude similar)il1o0O!#$&()*+/cargo build --release.target/release/tinypw somewhere on your PATH.cargo run -- followed by options shown below.clap crate.rand.