SA-MP Forums Archive
Best hash in SA-MP - 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: Best hash in SA-MP (/showthread.php?tid=415287)



Best hash in SA-MP - ajwar - 12.02.2013

Need sa-mp hash to use for passwords which can be used also for server website. Not intrested in md5 or sha. Thank's.


Re: Best hash in SA-MP - DaRk_RaiN - 12.02.2013

Whirlpool hash plugin


Re: Best hash in SA-MP - ajwar - 12.02.2013

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Is it possible to use this with PHP ?


Re: Best hash in SA-MP - ReVo_ - 12.02.2013

http://php.net/manual/en/book.hash.php

http://www.php.net/manual/en/function.hash-algos.php <= hashing algorithms

Use:
PHP код:
hash("whirlpool""what"); 
Anyway, if u want to compare this hash with samp hash you should use strtoupper (http://php.net/manual/en/function.strtoupper.php).
PHP код:
$what strtoupper(hash("whirlpool""what"));

if (
$what == $samp)
{
// correct