/encryption-decryption-tool

This React application allows users to encrypt and decrypt text using a simple character-shifting algorithm based on a secret key.

Primary LanguageTypeScriptMIT LicenseMIT

Encryption and Decryption App

Description

This React application allows users to encrypt and decrypt text using a simple character-shifting algorithm based on a secret key. It features an interactive UI built with Material UI.

Features

  • Encrypt text using a secret key
  • Decrypt the encrypted text back to its original form
  • User-friendly interface with Material UI components

Installation & Setup

Prerequisites

  • Node.js & npm installed
  • CRA for development (Optional)

Steps

  1. Clone the repository:
    git clone https://github.com/your-repo/encryption-app.git
    cd encryption-app
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm start

Usage

  1. Enter the text you want to encrypt in the Input Text field.
  2. Provide a Secret Key.
  3. Click Encrypt to get the encrypted text.
  4. Click Decrypt to restore the original text.

Example Input/Output

Input

Input Text: hello
Secret Key: key

Encrypted Output

Encrypted Text: yvccf  (example result, actual output depends on key)

Decrypted Output

Decrypted Text: hello

image

Running Tests

Run unit tests using Jest:

npm test

Deploying to Appetize You can try the App here: Appetize.io


License

This project is open-source and available under the MIT License.