I just want a small snippet of code. All that needs to be done is a simple user interface that will run something like this...
User generates a private and private key
User uses their private key to encrypt a string
This results in an encrpted message printed out.
This encrypted message can then be entered in a text field.
In order to decrypt it the public key of the original user must be used.
I want the code to be VERY clear and well documented. Should take someone more than 2 hours to build nicely.