http://qs321.pair.com?node_id=1183260

Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:

Not strictly a Perl problem.

Say you have a script, on a Linux machine, which needs to communicate with a database. It needs a username and password.

Hard-coding the password into the script isn't secure, and also the password will change.

I'm sure this is a solved problem, but I can't think what the solution is. Can the script request a password from another place without a coder who is editing the script being able to view the password?