This project is a simple text encryption and decryption application developed as part of the Logic Programming Challenge from the Alura and Oracle Next Education program. The goal was to build a functional text encoder/decoder from scratch using only the provided encryption key and a Figma design suggestion.
- Text Encryption: Converts input text into an encrypted format using a predefined substitution cipher.
- Text Decryption: Reverts the encrypted text back to its original form.
- Copy to Clipboard: Allows users to easily copy the processed text.
- Dynamic UI Handling: Displays different states based on user interaction.
- JavaScript: Core functionality for encryption, decryption, and UI interactions.
- HTML: Structuring the web interface.
- CSS: Styling the application.
The encryption function substitutes vowels with predefined strings:
a→aie→enteri→imeso→oberu→ufat
Example:
Input: "hello world"
Encrypted: "henterllober woberrloberd"
The decryption function reverses the substitutions:
Encrypted: "henterllober woberrloberd"
Decrypted: "hello world"
- The encryption and decryption buttons trigger their respective functions.
- The copy button selects and copies the processed text to the clipboard.
- The display dynamically updates to show the output only when there is content.
- Clone this repository:
git clone https://github.com/dharitcha/js-text-decoder.git
- Open
index.htmlin a web browser. - Enter text and use the encryption/decryption features.
- Add support for additional encryption methods.
- Implement a more secure encryption algorithm.
- Enhance the UI with animations and better responsiveness.
This project is open-source and available under the MIT License.