Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: encrypt and decrypt textby davido (Cardinal) |
on Feb 08, 2005 at 05:42 UTC ( [id://428934]=note: print w/replies, xml ) | Need Help?? |
What level of security is needed? For strong security there is Crypt::GPG. For weak obfuscation from casually prying eyes, there's ROT13, which could be written easily as "$string =~ tr/A-Za-z/N-ZA-Mn-za-m/;". Applied once, you rot-13 the standard English alphabet so that it can't be casually read. Applied a second time, and you undo the previous rotation. What is your ultimate objective, bullet proof security, mild obfuscation, ASCII encoding of binary data, or what? Dave
In Section
Seekers of Perl Wisdom
|
|