5 messages in com.mysql.lists.perlRe: password encryption
FromSent OnAttachments
Subramanyam Malepati20 May 2004 02:23 
lei shen20 May 2004 05:01 
Jochen Wiedmann20 May 2004 06:17 
lei shen24 May 2004 05:22 
Greg Meckes24 May 2004 15:03 
Subject:Re: password encryption
From:Jochen Wiedmann (joch@freenet.de)
Date:05/20/2004 06:17:03 AM
List:com.mysql.lists.perl

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