Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Password Manager (CLI)

A simple and secure command-line password manager built with Python. All stored passwords are encrypted using Fernet (AES-128) from the cryptography library.


πŸš€ Features

Secure password storage (Fernet encryption)

Master password protection

Add / View / Update / Delete accounts

Encrypted JSON database

Clean, modular Python structure

Safe error handling for wrong master password (InvalidToken)


πŸ“ Project Structure

project/ β”œβ”€β”€ cli.py β”œβ”€β”€ storage.py β”œβ”€β”€ crypto.py β”œβ”€β”€ database.py β”œβ”€β”€ main.py β”œβ”€β”€ password.db # Encrypted database β”œβ”€β”€ requirements.txt └── README.md


πŸ“¦ Installation

Clone the repository:

git clone https://github.com/USERNAME/REPO-NAME.git cd REPO-NAME

Install required packages:

pip install -r requirements.txt


πŸ”‘ Usage

Run the CLI:

python3 -m password_manager add python3 -m password_manager get python3 -m password_manager update python3 -m password_manager delete


🧠 How It Works

You enter a master password

A PBKDF2-derived key is generated

Your data is encrypted with Fernet

All passwords stay encrypted inside password.db

Entering a wrong master password β†’ raises a clean InvalidToken: Invalid master password


βš™οΈ requirements.txt

Make sure this file contains at least:

cryptography


πŸ” Security Notes

Master password cannot be recovered

Forgetting it means losing access to all encrypted data

Database contents are never stored in plaintext


πŸ“œ License

MIT License

About

A simple Python CLI password manager with encrypted storage.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages