SA-MP Forums Archive
Whirlpool Hash Problem [SAMP/PHP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Whirlpool Hash Problem [SAMP/PHP] (/showthread.php?tid=602044)



Whirlpool Hash Problem [SAMP/PHP] - Glenn332 - 01.03.2016

So I am currently facing the issue of helping someone that has a saltpot on his hashed passwords however a part of this saltpot does not convert into whirlpool hash the same way as a PHP whirlpool hash see:

PHP:
Код:
String that is hashed: 
^@!p¦§¶ѕ????Dd[}<;®}«{ў$m

Hashed value:
1EAD7D22B3C9F1EADA368E82D22289A63ED83036B688402EB4C3A0D98CCD8C8B2A4B9F60B46BBC7ABF348BB3AFC7842EE31EE7E66C2ABAC22F3F6BC093E7B4C3
SAMP Whirlpool:
Код:
String that is hashed: 
^@!p¦§¶ѕ????Dd[}<;®}«{ў$m

Hashed value:
A0D8F3334715D8ED3E3DB44FD8A9785DDED9C4B8C5168E7F17079ECAD57F9B6DF2440B16F3EAFE36516C3D6F94EA5388C9B3C731949C7DB077782620BF55B6E4
I tried removing each character seperately on the php side to see if maybe one of the characters are not supported on the samp plugin but it always hashes differently, Does anyone know how I can get both of these identical strings hashed to the same value?

Maybe two characters are not supported?

PS. I just tried one character at a time and as soon as the character
Код:
 ¦
gets added it goes wrong and im pretty sure that with other characters it does the same, Just need to find out what SAMP Whirlpool gives as value for these characters I already tried the ASCII value


Re: Whirlpool Hash Problem [SAMP/PHP] - Crayder - 01.03.2016

******'s Whirlpool plugin is a legit whirlpool algorithm. This situation just shows that it doesn't support all characters.

The source is around here somewhere...


Re: Whirlpool Hash Problem [SAMP/PHP] - Glenn332 - 01.03.2016

Quote:
Originally Posted by Crayder
Посмотреть сообщение
******'s Whirlpool plugin is a legit whirlpool algorithm. This situation just shows that it doesn't support all characters.

The source is around here somewhere...
Alright so it seems that I have replace their password with an easier saltpot'ed one on login.