A small terminal tool for securely storing, retrieving, and managing passwords using encrypted JSON storage, master password protection, and overwrite prompts. Perfect for practicing Rust, CLI programming, and basic encryption.
add <name>– Add a new password (with confirmation and overwrite prompt)list– Show all account namesget <name>– Retrieve the password for an account- AES-256-GCM encryption with Scrypt key derivation
- Master password authentication
git clone https://github.com/R-100/Rust-CLI-Password-Manager.git
cd rust-cli-password-manager
cargo build
cargo run -- <COMMAND>
cargo run -- add gmail
Enter and confirm the password If the account exists, you'll be asked: "Do you want to overwrite it? (y/n)"
cargo run -- list
cargo run -- get gmail
Open Password Manager enter your Masterpassword:
Password matches via your Input
Entry "gmail" already exists. Do you want to overwrite it? (y/n)
========= List for Password Names =========
github
google
...
========= Password Element =========
gmail: mypassword123
- Rust CLI programming with clap
- JSON persistence using serde
- Encryption using aes-gcm & key derivation with scrypt
- CLI interaction and overwrite handling
This project is for learning purposes only. Do not use for real sensitive data.
src/
├── main.rs # Main program
├── passwords.json # Encrypted password storage
Cargo.toml
README.md