Beispiel #1
0
def encrypt(message, n, e):
    pub_key = RSALite.PublicKey(n, e)
    return base64.b64encode(RSALite.encrypt(message, pub_key))