Python script to encrypt and decrypt with One Time Pad algorithm
I used this script for school use, where I explained the whole One time pad encryption / decryption algorithm, and then I launched this script to demonstrate with more hands-on how it works.
pip3 install onetimepad
sudo apt-get install python3-pil python3-pil.imagetk
sudo apt-get install python3-tk
python3 otp_app.py
chmod +x otp_app.py
and then ./otp_app.py
You will see a output like this one:
And then you just need to write your message / text and write your key to encrypt this message / text.
And then will open up a UI with boxes to insert your text and you just need to encrypt or decrypt that.
Something like this:
If you have some issue or problem, feel free to contact me!
Thank you for the attention! 😊