Win has asked for the wisdom of the Perl Monks concerning the following question:

Is there anyway I can use Perl to password protect files in a Windows 2000 folder? There is surely a way, but it is the best way I'm interested in.

Replies are listed 'Best First'.
Re: Using Perl to password protect files
by jettero (Monsignor) on Mar 23, 2007 at 11:01 UTC
    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