[FilterScript] Whirlpool without plugin
#1

Hi, I created a script for you is the same with Whirlpool but without plugin

PHP код:
stock udb_hash(what[])
{
    new 
newstr[129];
    new 
out[129];
    new 
deflen strlen(what);
    new 
newlen deflen;
    new 
changeval[3] = {0, -11};
    
format(newstr129"%c%s"1what);
    while(
newlen 128)
    {
        
newstr[newlen] = newstr[newlen % (deflen 1)];
        
newlen++;
    }
    for(new 
i=0i<128i++) changeval[0] += newstr[i];
    
changeval[1] -= (changeval[0] % 100) + newstr[deflen 128];
    
changeval[2] = floatround(floatpower(changeval[0] % 216changeval[1] % 4));
    for(new 
i=0i<128i++)
    {
        
out[i] = 65 + ((changeval[0] + changeval[1] + changeval[2]) % 26);
        
changeval[0] -= changeval[1];
        
changeval[1] -= i;
        
changeval[2] += changeval[0] % 5;
    }
    return 
out;

Reply
#2

Good job.
Reply
#3

That is definetly not a password hash.
Reply
#4

Please make the Tutorial !! and post Here http://forum.sa-mp.com/forumdisplay.php?f=70
Reply
#5

Do you really know the difference between whirlpool and udb hashes?
This is totally wrong.

First of all, this is not whirlpool in any kind.
Second, whirlpool can't be scripting in PAWN filterscripts, as it is a complete independent plugin.
Also, this is an insecure hash and totally copy=paste work.
So, not a great work!
Reply
#6

This is not Whirlpool

Your codes hash result
Quote:

JQWDJSEUQQYONXQWPWTEHCQZBAWQKCWSRVCQLOBWDWCXFEUCEY OAJRWCJSFUPQYPNWQWQWSEHDQYBAXQJCWTRUCQMOAWDXCWFEVC DYOBJQWCKSEUPRYONWRWPWSFHCQY

real Whirlpool hash result
Quote:

9D46F581241D89C872166AD3B489D3BA017E0F497F65BDC323 4711A2EFADC18B2C2ECE3118207309DE822E9E44D1B02872FA 88B3F74B8757FBC81049F8E606E2

udb_hash is TERRIBLE!
Reply
#7

Quote:
Originally Posted by xkirill
Посмотреть сообщение
This is not Whirlpool

Your codes hash result


real Whirlpool hash result



udb_hash is TERRIBLE!
so I changed it to another example for xkirill_hash
Reply
#8

Quote:
Originally Posted by LivingLikeYouDo
Посмотреть сообщение
Do you really know the difference between whirlpool and udb hashes?
This is totally wrong.

First of all, this is not whirlpool in any kind.
Second, whirlpool can't be scripting in PAWN filterscripts, as it is a complete independent plugin.
Also, this is an insecure hash and totally copy=paste work.
So, not a great work!
this is my work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)