Don't have Telegram yet? Try it now!
https://eureka.ykyuen.info/2010/04/24/java-creating-an-rsa-key-pair-in-java/
Java - Creating an RSA key pair in Java