[Cryptography-dev] private_key.decrypt painfully slow

2020-09-29 Thread momchil
Hello, New guy. Not much of a python dev but I managed to put together some code to encrypt/decrypt files using RSA But like the entire fine, not just some intermediate password public_key.encrypt of 11 Mb ( ~47 000 * 190 byte pieces) file took about 8 seconds private_key.decrypt of t

Re: [Cryptography-dev] private_key.decrypt painfully slow

2020-09-29 Thread Paul Kehrer
Yes, you want a hybrid encryption scheme here. Generate a symmetric key, use that to encrypt the payload, and encrypt the key itself under the public key. Composing this in a safe manner is tricky though, so you may want to consider PyNaCl for this. On Tue, Sep 29, 2020 at 4:03 PM wrote: > Hell