lei shen wrote:
Hi! Dose anyone know how to encryption the password in perl? i do not want
to show the database password in my file. thank you very much.
As you need to encrypt and decrypt the password, you would typically need
some kind of "key". However, to perform the decryption, access to the key
is required. So you end up with the same problem: How to protect the key?
A typical solution for the problem is to store the credentials in a separate
file with proper permissions. For example, if root is running the program in
question, then one would use a file readable by root only.
Jochen