What sort of encryption do you need?
For public key encryption (where the public key encrypts and the private key decrypts), I like Crypt::OpenPGP (though it has a massive ammount of dependencies, including the annoying-to-install Math::Pari).
For good-old block cipher encryption, you probably want Crypt::CBC using Crypt::Rijndael as the underlieing block cipher. Unless you have a need for another cipher mode (if you don't know what this means, look it up, or just use CBC).
For stream ciphers, there is Crypt::RC4. RC4 might have some problems, but there aren't really any better stream ciphers (though most of the time you can drop in a block cipher instead).
If you're just storing some passwords, you probably only need a digest, not a cipher. Try Digest::SHA1.
----
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
In reply to Re: Encryption/Decryption
by hardburn
in thread Encryption/Decryption
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |