02.03.2015, 16:19
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.
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.');