Perl Monk, Perl Meditation | |
PerlMonks |
Re: Mention password in the script -encrypted formby Lawliet (Curate) |
on Feb 19, 2009 at 22:10 UTC ( [id://745210]=note: print w/replies, xml ) | Need Help?? |
If you just want to obfuscate it a little (in case you have to open the file in front of untrustworthy people), I suggest to use a combination of map, ord, and chr. You have to first create a test script and run the password through some ord's and chr's to get an obscure string. Then, reverse the previous algorithm and place it in your script. I would give you an example of how I did this but it is not with me right now. :( And you didn't even know bears could type.
In Section
Seekers of Perl Wisdom
|
|