A secure command-line password manager with sudo authentication.
- Secure password storage with AES-256 encryption
- Generate strong random passwords
- Store and retrieve passwords for different services
- Sudo authentication for added security
- Secure encryption key management
- System keyring integration
pip install password-cli- Initialize the password manager:
pass-cli initThis will prompt you to set up your encryption key or generate a secure random one.
- Authenticate with sudo:
pass-cli authGenerate a random secure password:
pass-cli generate -l 16Generate and store a password:
pass-cli generate -l 16 -s github -u johndoeStore an existing password:
pass-cli store -s github -u johndoe -p your-passwordRetrieve a stored password:
pass-cli retrieve -s github -u johndoeCheck sudo authentication status:
pass-cli auth-checkList all stored passwords:
pass-cli listList passwords for a specific service:
pass-cli list -s githubDelete a stored password (with confirmation):
pass-cli delete -s github -u johndoeDelete a stored password without confirmation:
pass-cli delete -s github -u johndoe --force- AES-256 encryption for all stored passwords
- PBKDF2 key derivation with high iteration count
- Secure random password generation using
secretsmodule - System keyring integration for encryption key storage
- Sudo authentication requirement for all operations
- Local storage only - no cloud sync for enhanced security
- Safe deletion with confirmation mechanism
- Clone the repository:
git clone https://github.com/yourusername/pass-cli.git
cd pass-cli- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # Linux/Mac
# or
venv\Scripts\activate # Windows- Install dependencies:
pip install -r requirements.txt
pip install -r requirements-dev.txt- Run tests:
pytest- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Click
- Uses cryptography for secure encryption
- Integrates with system keyring using keyring