Password hashing between sa-mp and PHP
#4

There is no "way" to unhash. The entire principle of hashing is that it's one way only.

You will need to hash the input of the user exactly the same way when someone logs in via the control panel.

Note that PHP, by default, uses capital letters for the letters in the hash. Make sure to use toupper() to adjust for this in the script.

EDIT: Whirlpool hashing can be done in PHP by just changing the first parameter of the PHP hash() function.

PHP код:
hash('whirlpool''The quick brown fox jumped over the lazy dog.'); 
Reply


Messages In This Thread
Password hashing between sa-mp and PHP - by Mystique - 02.03.2015, 16:10
Re: Password hashing between sa-mp and PHP - by Vince - 02.03.2015, 16:17
Re: Password hashing between sa-mp and PHP - by Mystique - 02.03.2015, 16:18
Re: Password hashing between sa-mp and PHP - by Sithis - 02.03.2015, 16:19
Re: Password hashing between sa-mp and PHP - by Mystique - 02.03.2015, 16:21
Re: Password hashing between sa-mp and PHP - by Tamer - 02.03.2015, 16:23
Re: Password hashing between sa-mp and PHP - by Mystique - 02.03.2015, 16:36
Re: Password hashing between sa-mp and PHP - by Sithis - 02.03.2015, 16:49

Forum Jump:


Users browsing this thread: 4 Guest(s)