Skip to content

888mika888/Rust_PasswordGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-password-generator

Rust Security CLI License

A password generator I built in Rust. I've been seeing Rust everywhere lately — in security tools, system utilities, even the Linux kernel — and wanted to actually try it instead of just reading about it. I'm also genuinely fascinated by how fast Rust is. No garbage collector, just raw speed with memory safety enforced at compile time.

What it does

  • Generates a random password from the full printable ASCII charset
  • Uses OsRng for cryptographically secure randomness — not just rand::thread_rng()
  • Rates the strength of the generated password based on length
  • Automatically copies the password to your clipboard so you don't have to

Usage

You need Rust installed: https://rustup.rs

git clone https://github.com/888mika888/rust-password-generator
cd rust-password-generator
cargo run

Type in a length when it asks, and it handles the rest.

Strength ratings

Length Rating
0–6 Weak
7–11 Medium
12–17 Strong
18+ Very Strong

Use 16+ for anything you actually care about.

Character set

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&'()*+,-./:;<=>?@[]^_`{|}~

Full printable ASCII — lowercase, uppercase, digits, and every standard symbol.

Dependencies

  • rand 0.8 — RNG, specifically OsRng
  • arboard 3 — clipboard access, works on Windows, Linux and macOS

Why Rust

I wanted to actually learn Rust instead of just hearing about it. It has a reputation for being as fast as C while being way safer — the compiler catches memory issues before your code even runs. That kind of thing interests me a lot, especially coming from PHP and Java where you don't think about memory at all. This project taught me ownership, pattern matching, iterators, and how to pull in external crates. Small project but it clicked a lot of things into place.

What I want to add

  • Generate multiple passwords at once
  • Option to save passwords to a file

About

CLI password generator built in Rust. Secure RNG, full ASCII charset, clipboard copy, strength rating.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages