A secure, offline-first, terminal-based password manager written in Java 23. It provides a robust local encrypted vault, an interactive CLI, and advanced tools for analyzing the strength and health of your digital identity.
- Offline-First & Zero-Knowledge: Your data never leaves your device. The master password is only used in RAM to derive the decryption key and is never stored on disk.
- Interactive CLI: A fluid, raw-mode terminal interface built with JLine 3. Navigate with your keyboard, search in real-time, and manage entries without typing clunky commands.
- Strong Cryptography: Utilizes industry-standard AES-256 encryption and PBKDF2 key derivation to secure your database.
- Advanced Security Auditing: Built-in "Security Center" that calculates Shannon entropy, estimates brute-force time, and detects reused, similar, or outdated passwords.
- Smart Clipboard: Copy passwords directly to your OS clipboard. The app automatically securely clears the clipboard after 30 seconds.
- Custom Password Generator: Create strong passwords with customizable parameters (length, special characters).
- Language: Java 23
- Libraries: JLine 3 (Interactive CLI), Lombok
- Cryptography: Java Cryptography Architecture (JCA) - AES-256, SHA-256, PBKDF2
- Build System: Custom lightweight Bash script orchestrator (
run.sh)
The database is a single, easily portable flat file. Security is guaranteed by:
- Key Derivation: The encryption key is generated on-the-fly from your Master Password using PBKDF2 with a high iteration count.
- Symmetric Encryption: Every password entry is individually encrypted. Text fields (like usernames and notes) are Base64 encoded to prevent flat-file parsing errors.
- Safe I/O: Uses temporary buffer files (
.tmp) during write operations to prevent data corruption in case of unexpected system crashes.
- JDK 23 installed and added to your system's
PATH. - Bash environment (Native on Linux/macOS, Git Bash or WSL on Windows).
- (Linux only)
xclipinstalled for clipboard support.
Forget heavy build tools like Maven or Gradle. This project uses a custom, self-contained build script for maximum simplicity.
- Clone the repository:
git clone [https://github.com/YOUR_USERNAME/PasswordManager.git](https://github.com/YOUR_USERNAME/PasswordManager.git) cd PasswordManager - (Windows only) In 'run.sh', update path to your JDK bin directory.
- (Unix only) Make the script executable:
chmod +x run.sh
- Build the project:
./run.sh
- The script will compile the code and link all required libraries. To run, copy and paste that command shown in the end into your terminal.