PyCriptoNita is a simple Python script designed to encrypt and decrypt text messages using a randomly generated substitution cipher.
- Key Generation: A unique key is created by randomly shuffling all possible characters (letters, digits, punctuation, and special characters).
- Encryption: Each character in the input message is replaced with the corresponding character in the key, shifted by one position to the right.
- Decryption: The encrypted message is decrypted by reversing the encryption process, shifting each character in the encrypted message one position to the left.
- Run the script: Execute the
main.py
file. - Enter your message: The script will prompt you to input the message you want to encrypt or decrypt.
- View the result: The encrypted or decrypted message will be displayed on the console.
You can also use the run
shell script to start the program if you want. (bash and python will be required)
# this will run the shell script
bash run.sh
Enter your message: Hello, world!
Encrypted message: Ifmmpx, yxovl!
- The security of this encryption method is limited.
- The script assumes that the same key is used for both encryption and decryption. In a real-world application, the key should be securely distributed to authorized parties.
- Implement different encryption algorithms.
- Allow users to choose the key.
- Provide options for saving and loading encrypted messages.
- Add a graphical user interface for easier interaction.