udb_hash - 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: udb_hash (
/showthread.php?tid=580571)
udb_hash -
nezo2001 - 06.07.2015
What steps does udb_hash use to change to password to numbers
PHP код:
stock udb_hash(buf[])
{
new length=strlen(buf);
new s1 = 1;
new s2 = 0;
new n;
for (n=0; n<length; n++)
{
s1 = (s1 + buf[n]) % 65521;
s2 = (s2 + s1) % 65521;
}
return (s2 << 16) + s1;
}
Re: udb_hash -
liquor - 06.07.2015
What do you wanna do?
I'd suggest using Whirlpool or another encryption method instead.
Re: udb_hash -
Excel™ - 06.07.2015
The code gives you the full explanation of steps LOL!!'
Re: udb_hash -
nezo2001 - 06.07.2015
I wanna hash the password with php :/
So I want to know the steps.
Re: udb_hash -
!damo!spiderman - 06.07.2015
Quote:
Originally Posted by nezo2001
I wanna hash the password with php :/
So I want to know the steps.
|
You can pretty much copy and paste that code in PHP and only change a few things like variables.