Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Best Crypt:: for Certain Situations

by r.joseph (Hermit)
on Feb 04, 2001 at 01:36 UTC ( [id://56249]=perlquestion: print w/replies, xml ) Need Help??

r.joseph has asked for the wisdom of the Perl Monks concerning the following question:

Hey all! I am writing a quick program that is going to encypt sensitive client data (very sensitve) and store it in a text data file. My question is: on search.cpan.org, there is a multitude of Crypt:: modules that implement many different encyption algorithims, all of which I assume are very useful. But I need to know which is best for my situation: encrypting what could end up being large amounts of text which can quickly and easily be decypted for display later on. Which module would my knowledgeable brethren recommend? Thanks a ton!

R.Joseph

Replies are listed 'Best First'.
Re: Best Crypt:: for Certain Situations
by kschwab (Vicar) on Feb 04, 2001 at 02:23 UTC
    You didn't really give a lot of detail on your needs. Here's my take:

    Since you are working with a client, and not a company-internal data exchange, this sounds like a job for public key encryption.

    The de-facto standard for this (AFAIK) is GnuPG.

    There are two modules on CPAN for GnuPG, GnuPG and GnuPG::Interface. Personally, I've used the former, and had good luck with it.

    Update:Looks like there is another option: Crypt::GPG.

      Sorry about that, I guess I didn't provide enough detail.

      Here is what I am doing: The encrypted data file will be read by this program only, so I don't think I have a need for public key encryption. It is actually going to end up being a CGI program that allows the client to log in, enter some data, and retrieve this data later, all of which will be stored in this encypted data file.

      Hope that helps a little more - thanks!

      R.Joseph

      Update: I have found that using Crypt::Blowfish for the encryption along with Crypt::CBC to allow me to encrypt large files without having to manually break them into 8-byte chunks work wonderfully. And it is fast, too!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://56249]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-16 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found