in reply to Accessing passwords in a script

this along with the other responses to it's parent should be of interest to you.