in reply to Using Perl to password protect files

You can use Crypt::CBC to do this. It does a rather nice job actually. I'd recommend a passphrase rather than a single word, but otherwise the answer is yes, use Crypt::CBC.

Of course you have to choose a cipher. I usually choose Crypt::Blowfish for historical and/or fanboi reasons. There are probably better choices (see the wiki entry for reasons), but for what you're doing (and the types of things I usually do); it's plenty crypto-power.

-Paul

  • Comment on Re: Using Perl to password protect files