This web application provides a simple interface for encrypting and decrypting text using AES encryption. It consists of a Go backend server for handling encryption and decryption operations, and a frontend HTML/CSS/JavaScript interface for user interaction.
- Encryption: Encrypts input text using AES encryption and displays the encrypted result as a hex-encoded string.
- Decryption: Decrypts hex-encoded encrypted text back to its original plaintext form.
- User Interface: Clean and intuitive interface designed using HTML, CSS, and JavaScript for seamless user interaction.
- Go programming language installed (Download and Install Go)
- Modern web browser (Chrome, Firefox, Safari, etc.)
-
Clone the Repository:
git clone https://github.com/yourusername/Encryption-Decryption-GO.git cd Encryption-Decryption-GO
-
Start the Go Server:
go run main.go
This will start the Go server on
http://localhost:8080
. -
Access the Web Application:
- Open your web browser and go to
http://localhost:8080
. - You should see the main page of the application with a textarea for input, radio buttons for selecting encryption or decryption, and a submit button.
- Open your web browser and go to
-
Encrypting Data:
- Enter text into the textarea.
- Select the "Encrypt" radio button.
- Click the "Submit" button.
- The encrypted data will be displayed in the output area.
-
Decrypting Data:
- Paste the hex-encoded encrypted data into the textarea.
- Select the "Decrypt" radio button.
- Click the "Submit" button.
- The decrypted plaintext will be displayed in the output area.
-
Adding Styles:
- Modify
style.css
to customize the appearance of the web application.
- Modify
-
Enhancing Functionality:
- Expand functionality by modifying
main.go
to handle additional features or improve error handling and security measures.
- Expand functionality by modifying
- This application demonstrates basic AES encryption/decryption techniques and is suitable for learning purposes.
- For production use, implement HTTPS to secure data transmission between the client and server.
- Ensure proper handling and storage of encryption keys to maintain data security.