in reply to Hiding DBI MySQL username and password values from win98 users

Any suggestions on where I can stash the username and password values so they won't be visible to the users?

You can do some simple username and password obscuring, but anyone who reverse engineers the script will get the username and password.

Consider a different approach. Use MySQL's GRANT to give that username INSERT and UPDATE privs on one table, and no privs to anything else (see GRANT and RESTRICT in the MySQL docs). That way, a malicious user can do nothing beyond making spurious updates to that one table. They won't have visibility to do other tinkering.

  • Comment on Re: Hiding DBI MySQL username and password values from win98 users