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.
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.
- 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 dependency-free
- Java JDK 8 or higher installed on your system
- Basic command-line knowledge
-
Clone the repository:
git clone https://github.com/vedangdhuri/AES-Encryption-Decryption-Using-Java.git
-
Navigate to project folder
cd AES-Encryption-Decryption-Using-Java -
Compile the Java file
javac EDcrypt.java
-
Run the program
java EDcrypt
Enter text to encrypt: Hello Vedang
Enter secret key: mySecretKey123
Encrypted text: z1G7b8x+Nlq90O2ZTYbKAw==
Enter text to decrypt: z1G7b8x+Nlq90O2ZTYbKAw==
Enter secret key: mySecretKey123
Decrypted text: Hello Vedang
- 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.
- File encryption and decryption
- GUI implementation (Swing/JavaFX)
- Support for AES-256
- Key management improvements
This project is licensed under the MIT License.
