enoch has asked for the wisdom of the Perl Monks concerning the following question:
I have been hunting around looking for a module that will encrypt binary data. There are tons of modules that encrypt plaintext, but I could not find one that would encrypt a binary file (say a MS Word document or a PDF file).
What I would like is a module that could encrypt binary data without the use of an external program. (A pure Perl implementation would be nice, but I'll take what I can get.) Does anyone know of such a module where I could use syntax similar to:use Imaginary::Crypt; $cipher = Imaginary::Crypt->new($key); # $fileName is the path to the file to encrypt # and $newFileName is where the now encrypted # file would reside $cipher->encrypt($fileName, $newFileName);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Encrypt Binary Data
by ichimunki (Priest) on Jul 26, 2002 at 18:56 UTC | |
Re: Encrypt Binary Data
by cephas (Pilgrim) on Jul 26, 2002 at 19:26 UTC | |
Re: Encrypt Binary Data
by Fletch (Bishop) on Jul 27, 2002 at 01:21 UTC | |
Re: Encrypt Binary Data
by gmpassos (Priest) on Jul 27, 2002 at 05:38 UTC |