Getting Whirlpool hashes in PHP
#8

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
SeanDenZYR you already asked that question, when you got somebodys gamemode with database there isnt no need for you to see others passwords.
when you want to check if players enterd password matches with hashed password in database, you just hash player entered password and compare hashes.
Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Today I did it, I had the same question, so I found it! Just use Whirlpool and hash password.
Something like this:

At the top of your gamemode:
PHP код:
native WP_Hash(buffer[], len, const str[]); 
To your OnPlayerDialog (if your login/register (It's the same in the both- login and register) system is using that else just replace inputtext with the variable you want):
PHP код:
new HashedPassword[129];
WP_Hash(HashedPasswordsizeof(HashedPassword), inputtext); 
And you have to use the same hashing method in PHP!

Like this:
PHP код:
$ThePassword strtoupper(hash("whirlpool"$_POST['Password'])); 
You have to download Whirlpool plugin firstly!
firstly, understand my post. secondly, my problem is done.
Reply


Messages In This Thread
Getting Whirlpool hashes in PHP - by SeanDenZYR - 19.05.2018, 13:09
Re: Getting Whirlpool hashes in PHP - by kovac - 19.05.2018, 13:33
Re: Getting Whirlpool hashes in PHP - by SeanDenZYR - 19.05.2018, 14:19
Re: Getting Whirlpool hashes in PHP - by DarkSkull - 19.05.2018, 14:44
Re: Getting Whirlpool hashes in PHP - by CodeStyle175 - 19.05.2018, 15:02
Re: Getting Whirlpool hashes in PHP - by SeanDenZYR - 21.05.2018, 10:37
Re: Getting Whirlpool hashes in PHP - by Kraeror - 21.05.2018, 10:44
Re: Getting Whirlpool hashes in PHP - by SeanDenZYR - 21.05.2018, 11:18

Forum Jump:


Users browsing this thread: 2 Guest(s)