Android Question Private and Public key cryptography


Active Member
Licensed User

I have been looking in the forum for an example that uses a public key encryption system and private key. The closest I've been is with this post.

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.

¿Could someone help me with a simple algorithm?