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



Duble salted hash in mysql - DRIFT_HUNTER - 30.01.2012

Can anyone format for me mysql query that contain duble salted sha1 password?

the way its done in PHP:
$hash = sha1($salt.sha1($salt.sha1($pass)));

I just cant figure out the way these salt thing works....
Thx for your help

In case you wondering why i need it than its WoltLab Burning Board user's password hash and i want to connect forum with my server


Re: Duble salted hash in mysql - jamesbond007 - 30.01.2012

lol a hash like that would take 100000000 years to crack on best gpu's prob


Re: Duble salted hash in mysql - DRIFT_HUNTER - 30.01.2012

Quote:
Originally Posted by jamesbond007
View Post
lol a hash like that would take 100000000 years to crack on best gpu's prob
Well im not cracking it i just want to hash password on server same as on forum so my players can login with their forum username and password


Re: Duble salted hash in mysql - DRIFT_HUNTER - 31.01.2012

Come on someone must know how to double hash these in with mysql query...

BUMP


Re: Duble salted hash in mysql - Vince - 31.01.2012

This is what I make of it, not sure if it'll work but it's worth a try:
PHP Code:
sha1(CONCAT($saltsha1(CONCAT($saltsha1($pass)))))