As your freedom is dependent on this application, you want to minimize the risks! Therefore, you want to use the
Thread class to have a very exhaustive control over the execution of the different threads. But, first, you want to make the encryption function run in just one thread. Later, you will align the threads with the number of cores.
Now, we are going to make some changes to the application, and we will encrypt the messages in a new independent thread created and configured using the
Textproperty to Run in a thread.