in reply to Encryption in Perl?

I wrote (with the help of these nice perl monks) a script the other day to encrypt a file using blowfish. Blowfish is accepted around the world, but only slightly less than PGP. Encryption can be acceived using the crypt::cbc module. It allows you to use all sorts of different types. Search it on google, i think the first or second site shows use and example code. :) -Jack C jack@crepinc.com

Replies are listed 'Best First'.
Re^2: Encryption in Perl?
by Fletch (Bishop) on Jul 19, 2004 at 15:24 UTC

    Of course since blowfish is a symetric algorithm you'd need to arrange a secure channel for exchanging keys (say by using a public key algorithm like El Gamal or RSA). And you'd have to come up with a message format. Then to avoid tampering you'd want a MAC. And . . . and . . . and . . . . At which time you'd have probably reimplemented something resembling PGP.

    Just remember, doing crypto correctly is hard even for people that know what they're doing. Going with something standard that's been gone over by many eyeballs is more than likely going to be more secure than rolling your own.

Re^2: Encryption in Perl?
by danielcid (Scribe) on Jul 19, 2004 at 15:09 UTC

    Blowfish is an excellent choice. However, if you are
    looking for something widely accepted, you should look at
    Rijndael, the new AES (Advanced encryption standard).
    http://search.cpan.org/~dido/Crypt-Rijndael-0.05/Rijndael.pm

    -DBC