I have a suggestion, in all of your databases make sure the type of field is appropriate for example you may want a small number so use int(3) instead of varchar(20). Another example, you're running a small CMS for yoursite and its all completed except the CMS in your database you use varchar(255), which is a big mistake, unless your title will be 255 characters.
Htmlspecialchars, stripslashes, wordwrap are all very good at securing database before submitting it to the database. I'd recommend using MD5 over SHA1 because rumor has it that an algorithm has been discovered for SHA1 which means its not viable to use as a solid encryption algorithm.
Brute forcing is the act of using a piece of software to send password "guesses" to the database and once the brute force attacker is in depending on what the control panel is, your site may cease to exist. In order to detour brute forcing be sure to only allow X amount of failed login attempts. In addition also make sure that you have the person's IP address even if he or she is on a proxy server. IP ban if you have to.
Here are some good tutorials to help with security:
http://www.pixel2life.com/tutorials/PHP_Co...d=1&ss=security
Edited by Hacker-X, 06 May 2006 - 07:46 AM.