Code Monkey home page Code Monkey logo

encryption-and-decryption-using-caeser-cipher's Introduction

Caesar Cipher Encryption/Decryption

Description

This project demonstrates encryption and decryption using the Caesar Cipher technique, where each letter in the plaintext is shifted a specified number of places. It provides a simple implementation for encrypting and decrypting messages through a web interface.

Features

  • Encrypt and decrypt messages using a specified shift value.
  • Supports a customizable alphabet and shift key.
  • Options to maintain, lower, or upper case letters.
  • Handles non-alphabet characters by removing or ignoring them.

Files

  • index.html: The main HTML file that contains the structure and layout of the web interface.
  • style.css: The CSS file that styles the web interface.
  • caesar.js: The JavaScript file that contains the logic for the Caesar Cipher encryption and decryption.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/caesar-cipher.git
  2. Navigate into the directory:

    cd caesar-cipher
  3. Open index.html in your web browser.

Usage

  1. Open the index.html file in your preferred web browser.
  2. Use the form to enter your plaintext or ciphertext.
  3. Select whether you want to encode (encrypt) or decode (decrypt).
  4. Adjust the shift key, modulo, and other settings as needed.
  5. Click the "Submit" button to see the encrypted or decrypted result.

Example

To encrypt the message "Hello, World!" with a shift of 3:

  1. Enter "Hello, World!" in the plaintext area.
  2. Ensure "Encode" is selected.
  3. Set the shift key to 3.
  4. Click "Submit" to see the ciphertext.

Contributing

If you would like to contribute to this project, please fork the repository and create a pull request. Feel free to submit issues and feature requests as well.

encryption-and-decryption-using-caeser-cipher's People

Contributors

muhammad-rayyan1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.