- My first task in prodigy infotech
- Creating a python program that can encrypt and decrypt text using the Caesar Cipher algorithm. Allowing user to input a messsage and a shift value to perform encryption and decryption.
- it is one of the simplest and most well-known encryption techniques.
- It is also a type of substitution cipher in which each letter in a plaintext is shifted a fixed number of places in the alphabet. This shift value is known as the key.
- This algorithm implemented by python programming language ,since the caesar cipher algorithm is used for encryption and decryption of text or message by shifting the given text letteror message with fixed number of postions defined by user as shift value.
-
Encryption:
- Each letter in the input text is shifted forward in the alphabet by the specified shift value (key).
- Non-alphabetic characters (e.g., spaces, numbers, punctuation) remain unchanged.
- The program preserves the case of letters (uppercase stays uppercase, and lowercase stays lowercase).
-
Decryption:
- The program reverses the encryption process to restore the original text or message. Uses the same shift value to "unshift" letters.
-
User Interaction:
- The program prompts the user to input a message and shift value.
- It allows the user to choose between encryption and decryption.
-
Python Implementation:
- Simple and user-friendly implementation in Python.
-
Run the Python script.
-
Follow the interactive menu:
- Choose encryption or decryption.
- Enter the message or text.
- Specify the shift value (key).
-
View the encrypted or decrypted output.