We will create a small GUI to allow the user to enter information, and the program can then be used to encrypt and decrypt it.
You will need to ensure that you have completed the instructions in the There's more… section of the Working with text and strings recipe in Chapter 2, Starting with Python Strings, Files, and Menus, where we created the reusable module
encryptdecrypt.py. You must ensure that this file is placed in the same directory as the following script.
Since we are using Tkinter (one of many available add-ons of Python), we need to ensure that it is installed. It should be installed by default on the standard Raspbian image. We can confirm it is installed by importing ...