Skip to content

vedangdhuri/AES-Encryption-Decryption-Using-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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 dependency-free

🛠️ Tech Stack

Language :

Java

Code Editor :

VScode IntelliJ-IDEA

⚙️ Installation & Setup

Prerequirements

  • Java JDK 8 or higher installed on your system
  • Basic command-line knowledge
  1. Clone the repository:

        git clone https://github.com/vedangdhuri/AES-Encryption-Decryption-Using-Java.git
  2. Navigate to project folder

        cd AES-Encryption-Decryption-Using-Java
  3. Compile the Java file

        javac EDcrypt.java
  4. Run the program

        java EDcrypt

💻 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

  1. The user provides text and a secret key.
  2. The key is converted into a secure AES key.
  3. The text is encrypted using AES and encoded with Base64.
  4. During decryption, the process is reversed to reveal the original message.

🚀 Future Enhancements

  • File encryption and decryption
  • GUI implementation (Swing/JavaFX)
  • Support for AES-256
  • Key management improvements

📜 License

This project is licensed under the MIT License.

📜 Screenshot

EDcryptIMG

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages