udb_hash
#1

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=0n<lengthn++)
    {
       
s1 = (s1 buf[n]) % 65521;
       
s2 = (s2 s1)     % 65521;
    }
    return (
s2 << 16) + s1;

Reply
#2

What do you wanna do?
I'd suggest using Whirlpool or another encryption method instead.
Reply
#3

The code gives you the full explanation of steps LOL!!'
Reply
#4

I wanna hash the password with php :/
So I want to know the steps.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)