morbrilliant.blogg.se

Crypt of tomorrow font
Crypt of tomorrow font






crypt of tomorrow font

I rather have problems verifying the password in my function: This is how it was before fretburner adviced me to use the build in function: $hash = password_hash("$password", PASSWORD_DEFAULT). I try to follow the advise from fretburner using the build-in password function I have no problem hashing the password, i.e. $stmt->execute(array(':username' => $username, 'password' => md5($password))) īut how do I do that using salt and hased?įor some reason I am struggling to make this work.

crypt of tomorrow font

The only problem I have is how to validate the password within the login function with the hashed password in combination with salt. $sql= "INSERT INTO operators (v_naam, a_naam, username, password, salt) VALUES (:username,:hashed ,:salt)" $salt = 'zandzeepsodemineraalwatersteenstralen' However, some members of the forum told me that this was not really safe. $data = array(':username' => $username, :hashed' => $hashed) $q = "INSERT INTO users (username,password)VALUES (:username,:hashed)" For password storage, I always used MD5 hash.








Crypt of tomorrow font