This library is excellent, but some quick benchmarking with a small message on my machine shows decryption taking ~200ms, encryption ~100ms (using Uncompressed). Is this to be expected with PGP, which was created for email back in the day? Or is it the Python implementation? Can anything be done to optimize, maybe on my side?
This library is excellent, but some quick benchmarking with a small message on my machine shows decryption taking ~200ms, encryption ~100ms (using
Uncompressed
). Is this to be expected with PGP, which was created for email back in the day? Or is it the Python implementation? Can anything be done to optimize, maybe on my side?Using 2048 bit RSA keys created like this:
Edit: by comparison, the GnuPG wrapper around
gpg
encrypts and decrypts 10x faster with the same key and message.