|Pathologically Eclectic Rubbish Lister|
Password Encryption and Decryptionby slayedbylucifer (Scribe)
|on Mar 23, 2012 at 19:10 UTC||Need Help??|
slayedbylucifer has asked for the
wisdom of the Perl Monks concerning the following question:
I have simple question for you. I am newbie at Perl. I want to have apassword encryption and decryption mechanism in my perl script. Write now hte password that I use in my script is a clear text passwordand my scripts works fine wiht it. so, I want to get rid of the clear text password.
So far after doing a lot of googling, I came accorss following 3 modules whihc could be useful for my use case
I am just not able to get it right with either of them. Eeither I am too naive to understand these modules OR I am running after the wrong stuff.
So, this is what i want to:
1) encrypt the password in a dedicated perl script 2) Use this encrypted password in my perl script (where right now I have clear text password), tun a subrouting to decrypt this password and then retunr the necessary password to the caller so that my Perl script continue to execute.
Could you give me guidance on how to proceed. Thanks.