in reply to How to store a password in a file

Don't store the passwords in the source code. Instead either pass them in on the command line, obtain them from the user at run time or obtain them from a secure (encrypted) configuration file only accessible to the credentials the script is running under.

You may get better answers if you better describe what you are doing.

True laziness is hard work