Think about Loose Coupling | |
PerlMonks |
Re: Crypt::OpenPGP - determining which cipher to useby hardburn (Abbot) |
on Feb 02, 2004 at 15:12 UTC ( [id://325869]=note: 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 Section
Seekers of Perl Wisdom
|
|