14.12.2018, 08:09
Because the sha256 function doesnt return any value so its useless to store it https://sampwiki.blast.hk/wiki/SHA256_PassHash
If you want the player to confirm his password you gonna need to hash the text he input second time and compare with the hash stored in the password variable from the first dialog(using same salt)
Which means when player want to login in the future you gonna need to fetch his hashed password and his salt from the database and compare them with the input he make in the dialog( player saved salt must be used when you hash the dialog input)
Or you can use BCrypt https://sampforum.blast.hk/showthread.php?tid=453544
If you want the player to confirm his password you gonna need to hash the text he input second time and compare with the hash stored in the password variable from the first dialog(using same salt)
Which means when player want to login in the future you gonna need to fetch his hashed password and his salt from the database and compare them with the input he make in the dialog( player saved salt must be used when you hash the dialog input)
Or you can use BCrypt https://sampforum.blast.hk/showthread.php?tid=453544