Hi I am a beginner and I am looking to develop a website in PHP that has login for members. I want to know how can I make sure that the username and password won’t get hacked. I mean what measures should I take to prevent this scenario. I have heard people talking about MD5 and SHA but I dont really know how to implement them. I am using mysql as backend.
thank you very much.
I would appreciate any efforts
You should save in the database the password hashed with an hash algo + a salt unique for each record.
Example:
$pass = sha256/512( $pass . md5($user) . WEBSITE_SALT_KEY );But this won’t save you possibility hijack attempts. The best way to guarantee a good security is to use
SSL