PassVault is a simple password manager written in Java, designed to securely store user account credentials using AES-128 encryption and a master password required once per session.
- β Store accounts with platform, username, email, and password
- π AES encryption for passwords (with random IV and salt per encryption)
- π§ Master password required only once per session
- π Secure credential verification
- βοΈ Update existing accounts
- β Securely delete accounts
- π Persistent local file-based storage
- Command-line interface
- Java 17+
- IntelliJ IDEA
- AES with PBKDF2 (HmacSHA256) for key derivation
- Local file system for persistence
- Main.java β Entry point and text-based user interface
- Account.java β Represents a user account
- AccountDAO.java β Interface for CRUD operations
- AccountFileDAO.java β DAO implementation using file storage
- CryptoUtils.java β AES encryption/decryption logic
- SessionManager.java β Handles the master password for the session
- accounts.txt β Stores account data (with encrypted passwords)
- Passwords are never stored in plain text.
- Every encryption generates a unique IV and salt.
- The master password is never saved; it is used only to derive the encryption key at runtime.
- All error messages are intentionally generic to avoid leaking sensitive information (e.g., "account not found" instead of "wrong password").
The application uses a semicolon (;) as a delimiter to separate account fields (platform, username, email, encrypted password) when saving data to the file.
Important:
Do not use semicolons (;) in any of the following fields:
- Platform
- Username
- Password
Using ; will break file parsing and may cause data corruption or application errors.
Created with β by Federico Bonucci
GitHub: FeDevv
Email: ricobon03@gmail.com
This project is licensed under the MIT License.
MIT License
Copyright (c) 2025 Federico Bonucci
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.