UCP De-hashing Help
#6

PHP код:
$hashedpw hash('sha256'$_SESSION['user-password']); //+ what ever your salt is
//compare hashedpw to the one in the database
//may not be valid code
$getuserpw $connection->prepare('SELECT `password` FROM `users` WHERE `username` = "$user-name");
if (password_verify($getuserpw , $hashedpw)) //or $row['
password'] i don't know
{
//do whatever
}
else
{
//do whatever

this code will not work but it is an example of what you're trying to do so don't copy and paste it
https://stackoverflow.com/questions/...sunderstanding
http://php.net/manual/en/function.password-verify.php
Reply


Messages In This Thread
UCP De-hashing Help - by Speaker - 23.02.2018, 07:41
Re: UCP De-hashing Help - by Chocopie - 23.02.2018, 08:05
Re: UCP De-hashing Help - by Speaker - 23.02.2018, 08:13
Re: UCP De-hashing Help - by Logic_ - 23.02.2018, 10:03
Re: UCP De-hashing Help - by Speaker - 23.02.2018, 10:16
Re: UCP De-hashing Help - by rfr - 23.02.2018, 10:19
Re: UCP De-hashing Help - by Speaker - 23.02.2018, 10:29
Re: UCP De-hashing Help - by kingmk - 23.02.2018, 11:09
Re: UCP De-hashing Help - by Speaker - 23.02.2018, 12:18
Re: UCP De-hashing Help - by kingmk - 23.02.2018, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)