( Your secrets are safe )
A secure command-line password manager with encryption, hashing, backup, and search capabilities.
- Secure Encryption: Uses AES-256 encryption (Fernet) for all stored data
- Master Password: Single password protects all your passwords
- Password History: Track password changes with timestamps
- Search Functionality: Find passwords quickly by service name
- Backup & Restore: Create and restore from encrypted backups
- Cross-Platform: Works on Windows, macOS, and Linux
pip install kinigit clone https://github.com/KB-peByte/kini.git
cd kini
pip install -e .kini list
# This will prompt you to create a master password# Interactive mode
kini add
# Command line mode
kini add -s "gmail" -u "user@gmail.com" -p "mypassword"# Get specific password
kini get -s "gmail"
# Search for passwords
kini search -q "mail"
# List all passwords
kini list# View password history for a service
kini history -s "gmail"# Create backup
kini backup
# List backups
kini backup list
# Restore from backup
kini restore -b "passwords_backup_20240101_120000.json"# Delete a password
kini delete -s "gmail"
# Show version
kini --version- All passwords are encrypted using AES-256 (Fernet)
- Master password is hashed using SHA-256
- Key derivation uses PBKDF2 with 100,000 iterations
- Unique salt for each installation
- Data stored locally in
~/.kini/
- Linux/macOS:
~/.kini/ - Windows:
%USERPROFILE%\.kini\
This project is licensed under the MIT License - see the LICENSE file for details.
# Install with development dependencies
pip install -e .[dev]
# Or install test dependencies only
pip install -r requirements-test.txt# Run all tests
pytest tests/ -v
# Run tests with coverage
pytest tests/ --cov=kini --cov-report=term-missing --cov-report=html
# Using make commands
make test # Run tests
make test-cov # Run tests with coverage
make lint # Run linting
make format # Format code
make install-dev # Install dev dependencies# Install tox
pip install tox
# Run tests across all Python versions
tox
# Run specific environments
tox -e py311 # Test Python 3.11
tox -e lint # Run linting
tox -e coverage # Run coverage reporttests/test_password_manager.py- Main test suitetests/conftest.py- Test configuration and fixturespytest.ini- Pytest configurationtox.ini- Tox configuration for multi-version testing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run the test suite:
make test - Submit a pull request
- Never share your master password
- Regularly create backups
- Store backups in a secure location
- Use strong, unique passwords for your services