Skip to content

This is a Java-based Spring Boot web application that allows users to Convert text to Morse code, and vice-versa. Encrypts and Decrypts text using AES 256-bit encryption.

Notifications You must be signed in to change notification settings

swap72/crypt_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Crypt_Web_ver1.0 (Morse Code & AES Encryption/Decryption Web Application)

This is a Java-based Spring Boot web application that allows users to:

  • Convert text to Morse code.
  • Convert Morse code to text.
  • Encrypt text using AES 256-bit encryption.
  • Decrypt AES-encrypted text.

The application is built using Spring Boot, Thymeleaf, and Java AES encryption techniques. The UI is simple and responsive, with forms to input text, Morse code, and encryption keys.


Table of Contents

  1. Features
  2. Technologies Used
  3. Installation
  4. Running the Application
  5. Project Structure
  6. Usage
  7. Visual References

Features

This application provides the following features:

  1. Text to Morse Code: Enter any text to be translated into Morse code.
  2. Morse Code to Text: Input Morse code to translate it back to text.
  3. AES 256-bit Encryption: Encrypt text with a key of any length using AES encryption (key is padded to 16, 24, or 32 bytes).
  4. AES Decryption: Decrypt AES-encrypted text with the same key.

Technologies Used

  • Java: Backend logic using Spring Boot framework.
  • Spring Boot: Simplified development of REST APIs and web applications.
  • Thymeleaf: Server-side template engine for rendering HTML views.
  • AES 256-bit Encryption: For secure encryption and decryption of text.
  • Bootstrap: For simple and responsive styling of the frontend.

Installation

To run this project locally, follow these steps:

Prerequisites

  • Java 11 or higher installed.
  • Apache Maven installed.
  • A modern web browser.

Clone the Repository

git clone https://github.com/your-username/morse-code-aes-encryption.git
cd morse-code-aes-encryption

Build and Package

mvn clean install

Running the Application

mvn spring-boot:run

Alternatively, you can run the JAR file:

java -jar target/morse-code-aes-encryption-0.0.1-SNAPSHOT.jar

Running the Application

Once the application is running, open a browser and navigate to:

http://localhost:8080

You will be presented with a simple web interface where you can:

  • Convert text to Morse code.
  • Convert Morse code back to text.
  • Encrypt text using AES encryption.
  • Decrypt AES-encrypted text.

Project Structure

src/
└── main/
    ├── java/
    │   └── com/example/morsecode/
    │       ├── AES256Util.java              # Utility class for AES encryption/decryption
    │       ├── MorseCodeApplication.java    # Main Spring Boot application class
    │       ├── MorseCodeController.java     # Controller handling user requests
    │       └── MorseCodeTranslator.java     # Logic for converting text to/from Morse code
    ├── resources/
    │   ├── static/                          # Static resources (CSS, JS, etc.)
    │   └── templates/                       # Thymeleaf templates
    │       ├── index.html                   # Main page for input forms
    │       ├── result.html                  # Result page for text to Morse code conversion
    │       ├── morseToTextResult.html       # Result page for Morse code to text conversion
    │       ├── encryptedResult.html         # Result page for AES encryption
    │       └── decryptedResult.html         # Result page for AES decryption
    └── application.properties               # Application configuration file

Usage

1. Text to Morse Code

To convert text to Morse code:

  1. Open the web page.
  2. Enter your text into the Text to Morse Code input field.
  3. Click the Translate to Morse Code button.
  4. The result will display the corresponding Morse code.

2. Morse Code to Text

To convert Morse code to text:

  1. Input your Morse code (use / for spaces between words).
  2. Click Translate Morse to Text.
  3. The result will show the translated text.

3. AES Encryption

To encrypt text:

  1. Enter the text you want to encrypt in the AES Encryption section.
  2. Provide a key of any length (it will be padded to a valid AES length).
  3. Click the Encrypt Text button to get the encrypted result.

4. AES Decryption

To decrypt text:

  1. Enter the AES-encrypted text in the AES Decryption section.
  2. Provide the same key used for encryption.
  3. Click Decrypt Text to retrieve the original text.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new feature branch (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push the branch to your fork (git push origin feature/new-feature).
  5. Open a Pull Request.

Visual References

sfsfd Screenshot 2024-10-24 021006 photo_2024-10-24_02-28-52 photo_2024-10-24_02-29-00 photo_2024-10-24_02-28-39 photo_2024-10-24_02-29-05



WayneCorp © 🦇 < Swapnil Mishra />


About

This is a Java-based Spring Boot web application that allows users to Convert text to Morse code, and vice-versa. Encrypts and Decrypts text using AES 256-bit encryption.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published