Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Encrypting Largish Files

by wog (Curate)
on Sep 23, 2001 at 07:28 UTC ( [id://114132]=note: print w/replies, xml ) Need Help??


in reply to Encrypting Largish Files

You probably do not want to try encrypting largish files all at once, to save yourself RAM. You can look at Crypt::CBC which allows you to encrypt a file as you read it without needing to worry about the encryption algorithm's blocksize and without needing to keep it all in memory. (With Crypt::CBC you can use Twofish, Blowfish, DES, and IDEA, at least.)

The key for any of these encryption algorithms is usually just random data. You are probably better off using a key composed of random data, since it will probably be longer and more random (especially since non-printable characters would be included) and thus harder to brute force. But, a password should work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found