If I understand your requirements correctly, you need to be able to retrieve the password but you don't want to store it in plaintext. One-way hashing algorithms such as the crypt function or the MD5 module won't help there (my favourite quote to illustrate this point is "you can wind a sausage machine backwards but it won't give you pigs" - if only I could remember who said it).
Actually, nothing is going to be really secure since if someone can read your script they will have all the info they need to decrypt the password.
If you just want to slow someone down, encode it using MIME::Base64 like this:
perl -MMIME::Base64 -le "print encode_base64('p4assw0rd')"In reply to Re: Password Encryption
by grantm
in thread Password Encryption
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |