![]() |
---|
A simple and secure Java-based password vault that encrypts and decrypts strings using AES-128 encryption.
Perfect for demonstration, learning cryptography in Java, or building your own local password manager.
- AES encryption using a 16-byte key
- Base64 output for easy readability
- Decryption included for verification
- Fully console-based and platform-independent (Java)
- No external dependencies required
The application encrypts any user-provided password and displays both the encrypted and decrypted values using Java's javax.crypto
and Base64
libraries.
javac PasswordVault.java
- Run the program
java PasswordVault
🔐 Secure Password Vault
Enter password to encrypt: mySuperSecret123
Encrypted password: 4T1Gc4b3YZ2Ej1If1hA7RQ==
Decrypted password: mySuperSecret123
📄 License MIT License – LICENSE