Skip to content

wl5e/rust-password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Rust Password Generator

A fast, secure random password generator with three strength levels: weak, medium, and strong.

Description

This CLI tool generates random passwords with different complexity options:

  • Weak: Lowercase letters only (8 characters)
  • Medium: Lowercase, uppercase, and numbers (12 characters)
  • Strong: All character types including special symbols (16 characters)

Installation

cargo build --release

Usage

# Generate a strong password (default)
cargo run -- --strength strong

# Generate a medium strength password
cargo run -- --strength medium

# Generate a weak password
cargo run -- --strength weak

# Custom length (default strength is strong)
cargo run -- --strength strong --length 20

# Generate 5 passwords
cargo run -- --strength medium --count 5

# Show help
cargo run -- --help

Examples

$ cargo run -- --strength strong
Generated password: 7kR#mP$xQ2@nL9vB

$ cargo run -- --strength medium --count 3
Generated password: aBc123DeF456
Generated password: XyZ789MnO012
Generated password: pQr345StU678

Features

  • Cryptographically secure random generation
  • Multiple strength presets
  • Custom length and count options
  • No external dependencies beyond rand crate

About

A command-line random password generator with configurable strength levels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages