Hello everyone, I am wondering what the best or a good way to keep passwords secure was. Currently I have password field in a users table but the passwords are text. Is this a bad idea and if so what other alternatives are there? Thank you
md5... Encrypt the password with md5 (php: md5() function) When someone try to log in, you simply read the form password and encrypt thar too. So: if ( md5($formpassword) === $database_stored_password ) { print 'successful login'; } else { print 'YOU SUCK!!!'; } Code (markup): Cheers,