A command-line tool that generates random passwords and copies them to the clipboard.
- Install Rust and Cargo from rustup.rs.
- Clone this repository:
git clone https://github.com/your-username/password-generator.git
- Navigate to the project directory:
cd password-generator
- Build the project:
cargo build --release
- Run the project:
cargo run --release
password-generator [OPTIONS] [LENGTH]
Generates a random password of the specified length (default: 12) and copies it to the clipboard. Defaults to lowercase letters unless specified.
-h, --help
: Prints help information.-v, --version
: Prints version information.-u, --uppercase
: Include uppercase letters in the password-n, --number
: Include numbers letters in the password-s, --special
: Include special letters in the password-c, --no-clipboard
: Does not copy the generated password to the clipboard.
This project uses the following third-party libraries:
- clap for command-line argument parsing.
- rand for random number generation.
- clipboard for clipboard access.
Let me know if you have any other questions!