We will create a basic GUI to allow the user to enter information, and the program can then be used to encrypt and decrypt it.
Using Tkinter to create graphical user interfaces
Getting ready
You must ensure that this file is placed in the same directory.
Since we are using Tkinter (one of many available add-ons for 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 it from the Python prompt, as follows:
  Python3
  >>> import tkinter
If it is not installed, an ImportError exception will be raised, in which case you can install it using the following command (use Ctrl +Â Z to exit...
  Python3
  >>> import tkinter
If it is not installed, an ImportError exception will be raised, in which case you can install it using the following command (use Ctrl +Â Z to exit...