in reply to Hiding passwords in scripts

Why not just create limited privilege users in your database? Not only does it devalue the importance of knowing the password but if you accidentally introduce any SQL injection insecurities the scope of damage is limited.

For example, if all you are doing is select and update then only give select and update privileges.