A secure command-line password manager that encrypts and manages passwords using AES-256 encryption. This tool provides functionalities to add, retrieve, and manage passwords securely.
Password Manager CLI is designed to offer a secure environment for storing and managing passwords. It utilizes strong encryption techniques to safeguard sensitive data while providing an easy-to-use command-line interface for interaction.
- Secure Storage: Utilizes AES-256 encryption for password encryption.
- Command-Line Interface: User-friendly CLI for managing passwords.
- Password Generation: Generates strong, random passwords combining alphabets, numbers, and special characters.
- Clipboard Support: Allows automatic copying of passwords to the clipboard for convenience.
sudo apt install python3-pip
pip install -r requirements.txt
Follow these steps to install MariaDB on Linux:
-
Import the key:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
-
Add repository:
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntuprecise main'
-
Update and install:
sudo apt-get update sudo apt-get install mariadb-server
If encountering a "not implemented error" with Pyperclip, refer to the fix provided.
pip install -r requirements.txt
Follow the instructions here to install MariaDB on Windows.
- Navigate to MariaDB bin directory
C:\Program Files\MariaDB\bin
- Login as root with the password you chose while installation
mysql.exe -u root -p
- Create user
CREATE USER 'pm'@localhost IDENTIFIED BY 'password';
- Grant privileges
GRANT ALL PRIVILEGES ON *.* TO 'pm'@localhost IDENTIFIED BY 'password';
Run the configuration script to set up the password manager:
-
Create Configuration:
python config.py make
This command creates a new configuration, prompts for choosing a MASTER PASSWORD, generating the DEVICE SECRET, and creates the necessary database and tables.
-
Delete Configuration:
python config.py delete
This command deletes the existing configuration, including the device secret and all entries, irreversibly losing all passwords. Be cautious!
-
Remake Configuration:
python config.py remake
This command deletes the existing configuration and recreates it, prompting for a new MASTER PASSWORD, generating a new DEVICE SECRET, and setting up the database and tables.
# Add new entry
password-cli add -n "example.com" -u "https://example.com" -e "user@example.com" -p "mysecretpassword"
# Get entry
password-cli get -n "example.com" --with-password
- Pyperclip: Python module for copying data to the clipboard.
- PBKDF2: Key derivation function used for creating a 256-bit key.
- AES-256: Encryption standard used for secure storage and retrieval of passwords.
This README file consolidates all the provided information about the Password Manager CLI, including installation steps, configuration details, usage examples, and additional resources for further reference. Feel free to modify or enhance it according to your specific project needs.