Back to Projects

AES Encryption and Decryption in Java
A Java application that uses AES for secure text encryption and decryption, demonstrating symmetric key cryptography to protect sensitive information.
JavaEncryptionDecryption
Read Me
🔐 AES Encryption and Decryption in Java
A simple yet powerful Java application that implements the Advanced Encryption Standard (AES) algorithm to perform secure text encryption and decryption. This project demonstrates the practical use of AES symmetric key cryptography for protecting sensitive information in Java.
📘 Description
AES (Advanced Encryption Standard) is a symmetric encryption algorithm widely used for securing data. This project — EDcrypt — provides an educational and functional example of how AES can be implemented in Java using the built-in javax.crypto package.
🚀 Features
- AES 128-bit encryption and decryption
- Text-based encryption using a user-defined secret key
- Command-line interface (CLI) for user input
- Uses Base64 encoding for readable encrypted output
- Lightweight and completely dependency-free
⚙️ Installation & Setup
- Java JDK 8 or higher installed on your system
- Basic command-line knowledge
💻 Usage Example
Encrypting a Message
Enter text to encrypt: Hello Vedang
Enter secret key: mySecretKey123
Encrypted text: z1G7b8x+Nlq90O2ZTYbKAw==
Decrypting a Message
Enter text to decrypt: z1G7b8x+Nlq90O2ZTYbKAw==
Enter secret key: mySecretKey123
Decrypted text: Hello Vedang
🧠 How It Works
- The user provides text and a secret key.
- The key is converted into a secure AES key.
- The text is encrypted using AES and encoded with Base64.
- During decryption, the process is reversed to reveal the original message.
🚀 Future Enhancements
- File encryption and decryption support
- GUI implementation (Swing/JavaFX)
- Support for AES-256
📜 License
Licensed under the MIT License.