Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The best way is probably to use the Compat option. Crypt::OpenPGP should pick good defaults based on that. Public key crypto is quite computationally expensive, but block ciphers are usually pretty quick. Instead of encrypting the entire message with the public key, most implementations will create a one-time session key for use in a block cipher, encrypt that key at the beginning of the message using the public key, and then encrypt the rest of the message with the block cipher key. So what KeyRing/KeyBlock types you have has nothing to do with what kind of block cipher you use. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated In reply to Re: Crypt::OpenPGP - determining which cipher to use
by hardburn
|
|