Click here to get back home

(ANNOUNCE) Crypt::FileHandle

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
(ANNOUNCE) Crypt::FileHandle PhilBurt 10-24-2004
Posted by PhilBurt on October 24, 2004, 12:08 am
Please log in for more thread options
All,

I have a module that I've written and still tweaking, but I would like to upload
it to CPAN to make it available to everyone. I believe it is very useful for
anyone who does simple encryption with files using FileHandles.

The module returns a pseudo-FileHandle which isn't really attached to a file,
but uses TIEHANDLE to become associated with the real FileHandle that is
attached to the real file. It can be used in the same manner of a real
FileHandle, such as:

my $fh = new Crypt::FileHandle '> myfile.dat';

All data written to the real filehandle is encrypted and all data read from
the real filehandle is decrypted. All that is required before using the
Crypt::FileHandle is declaration of an encryption key. Crypt::CBC is used
to perform the encryption, so any module that Crypt::CBC accepts can also
be optionally specified, as well as an IV and some other options.

All reads are properly buffered, so sysread and readline can be used together,
as well as syswrite and print.

I'm still working out some minor bugs, and may have some recommendations to
enhance TIEHANDLE (such as incorporating Fcntl for locking).

Please let me know if there's anything wrong with me submitting this module.
I believe it can be very useful, as I've already been using it to protect
some data of my own. I'm not using my real e-mail address (obviously) so please
visit PAUSE to figure out how to contact me if that is neccessary, or you can
post
a response on here and I will look for it.

Also, if there is a better namespace for this module, please let me know.

Thank you,
PhilBurt


Similar ThreadsPosted
Printing Expect.pm debug output to another filehandle? January 11, 2005, 5:35 pm
Crypt::DH Crypt::Random install problem May 9, 2005, 5:25 am
help with module naming: filehandle-tie for size-limited/rotating logfile March 18, 2007, 5:44 am
Crypt::Tea becomes Crypt::Tea_JS January 17, 2005, 1:14 pm
Crypt::RC5 128 April 5, 2006, 10:31 am
Crypt::RSA March 10, 2007, 6:43 pm
RFC: Crypt::Skip32 [try 3] September 24, 2007, 12:51 am
Des::Crypt Will not Compile On Solaris 8 Using GCC December 7, 2005, 2:58 pm
Crypt::SSLeay + OpenSSL 0.9.8 July 21, 2006, 5:31 am
Crypt::SSLEay for Windows March 7, 2007, 1:08 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap