Skip to content

cliffordebayan/Caesar-Cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Caesar-Cipher

Caesar Cipher Encryption/Decryption This project is a simple implementation of the Caesar cipher encryption and decryption algorithm using JavaScript, HTML, and CSS. The Caesar cipher is a substitution cipher that replaces each letter in the plaintext with a letter a certain number of positions down the alphabet.

Usage

To use the Caesar cipher encryption/decryption tool, follow these steps:

  1. Clone the repository or download the source code.
  2. Open the index.html file in a web browser.
  3. Select the desired operation from the "Encrypt" or "Decrypt" radio button.
  4. Enter the desired shift value, which determines how many positions each letter will be shifted.
  5. Enter the desired modulo value, which determines the length of the alphabet.
  6. Select the letter case you want maintaincase, lowercase, and uppercase.
  7. Select the foreign key you want to ignore or remove, if you selected to remove it will remove symbols.
  8. Enter the text you want to encrypt or decrypt in the input field provided.
  9. Click the submit button.
  10. The result will be displayed in the output section.

Examples

Encryption If you want to encrypt the message "HELLO" with a shift of 3, the resulting ciphertext will be "KHOOR".

Decryption

To decrypt the ciphertext "KHOOR" with a shift of 3, the original plaintext "HELLO" will be recovered.

Files

The project consists of the following files:

  • index.html: The HTML file containing the user interface and JavaScript code.
  • style.css: The CSS file for styling the user interface.
  • script.js: The JavaScript file containing the implementation of the Caesar cipher algorithm.
  • README.md: The readme file with instructions and information about the project.

Compatibility

This Caesar cipher encryption/decryption tool should work on most modern web browsers that support JavaScript. No additional libraries or frameworks are required.

License

This project is licensed under the MIT License. Feel free to modify and use the code as per your needs.

Acknowledgments

This project was inspired by the concept of the Caesar cipher and was created for educational purposes.

About

Caesar cipher encryption and decryption

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published