13.02.2018, 18:50
Hi guys
I use now udb_hash function for password security
Is there any way to convert all this passwords to SHA256_PassHash ( https://sampwiki.blast.hk/wiki/SHA256_PassHash ) .Because i want to use
(I use MySQL)
I use now udb_hash function for password security
Код:
stock udb_hash(buf[]) //HASH PASS
{
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;
}
(I use MySQL)



)