The project aims to encrypt an image into text format using AES encryption and decrypt it back to its original form. It provides a simple user interface for selecting an image file, entering a secret key, and performing encryption/decryption operations.
- index.html: The landing page of the project, displaying project information and team members.
- home.html: The main page where encryption and decryption functionalities are implemented.
- styles.css: CSS file containing styles for the user interface.
- crypto-js.js: JavaScript library for AES encryption and decryption.
- script.js: JavaScript file containing encryption and decryption functions.
- Title: Home page
- Content:
- Displays project title and topic.
- Lists team members' names.
- Contains a button linking to home.html for accessing the encryption/decryption functionality.
- Title: Image to Text Encryption
- Content:
- Provides an interface to select an image file and enter a secret key.
- Allows users to perform encryption and decryption operations.
- Displays the encrypted text and decrypted image.
- Shows the decrypted secret key.
- Defines styles for the user interface elements such as headings, buttons, and input fields.
- Sets background image and layout for index.html.
- Styles the input file button and text input fields.
- Contains JavaScript functions for encryption and decryption.
- Functions:
- encrypt(): Reads selected image file, encrypts it using AES encryption with the provided secret key, and displays the encrypted text.
- decrypt(): Decrypts the encrypted text using the provided secret key and displays the decrypted image and secret key.
- encryptAES(input, secretText): Encrypts the input using AES encryption with the provided secret key.
- decryptAES(input, secretText): Decrypts the input using AES decryption with the provided secret key.
- CryptoJS: A JavaScript library for cryptographic operations, used for AES encryption and decryption.
- Open index.html to view the project overview and team members.
- Click on the button to navigate to home.html.
- On home.html, select an image file, enter a secret key, and click "Encrypt" to encrypt the image.
- Click "Decrypt" to decrypt the encrypted text and display the original image along with the decrypted secret key.