On Tue, 2016-02-09 at 03:11 +0000, Pitucha, Stanislaw Izaak wrote: > You probably need to use hazmat, but it has a pretty nice API. > There's a short example in the docs: > https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/#s > igning
And to build the key he should do something like this: from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.backends import default_backend def generate_key(modulus_b64, exp_b64): [...] pub_num = rsa.RSAPublicNumbers(exp, mod) return pub_num.public_key(default_backend()) _______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev