public generateKeyPair() as RSAKeyPair throws CryptoException:
import klyn.cryptography generator = RSAKeyPairGenerator() print(generator.generateKeyPair().publicKeyPem)