The safest way to store the password is to add some salt to it (please keep the salt somewhere safe and secure too!), encrypt the password using your favorite high-strength algorithm, then store the generated hash in the database. When you have to validate a password, put the attempted password through the same routine and compare the generated hash to what stored in the database. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome