In the example, the Keygenerator generates a key and then shows it. Unfortunately, the example does not work for me. I want to be able to generate both the public and the private keys, and be able to share the public, to develop a simple application that allows a secure communication.