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

2020-10-15 Thread momchil
: Wednesday, September 30, 2020 12:14 AM To: cryptography-dev@python.org Subject: Re: [Cryptography-dev] private_key.decrypt painfully slow 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

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