This repository contains a Python script that demonstrates a simple encryption and decryption algorithm using a shuffled character set.
- Encrypts a given plaintext message.
- Decrypts an encrypted message back to the original plaintext.
- Python 3.x
-
Clone the repository:
git clone https://github.com/codes-elle/Encryption-and-Decryption-Algorithm-in-Python.git
-
Navigate to the project directory:
cd Encryption-and-Decryption-Algorithm-in-Python
-
Run the script:
python "Encryption Algorithm in Python.py"
-
Encryption:
- Enter the plaintext message when prompted.
- The script will output the original and encrypted messages.
-
Decryption:
- Enter the encrypted message when prompted.
- The script will output the encrypted and original messages.
-
Character Set:
- The script uses a combination of ASCII letters, digits, punctuation, and space.
- The character set is shuffled to create a key for encryption and decryption.
-
Encryption:
- Each character in the plaintext is replaced with the corresponding character from the shuffled key.
-
Decryption:
- Each character in the encrypted message is replaced with the corresponding character from the original character set.
Enter message you want to encrypt: hello
original message: hello
encrypted message: $m88&
Enter message you want to decrypt: $m88&
encrypted message: $m88&
original message: hello
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to open an issue or submit a pull request.
For any questions or suggestions, please contact the repository owner.
Check out the code here.