in reply to Crypt::OpenPGP - determining which cipher to use
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.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Crypt::OpenPGP - determining which cipher to use
by hv (Prior) on Feb 02, 2004 at 15:31 UTC | |
by hardburn (Abbot) on Feb 02, 2004 at 16:37 UTC | |
by hv (Prior) on Feb 02, 2004 at 17:17 UTC |