[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


Messages In This Thread
Whirlpool without plugin - by EmpireSk - 11.09.2014, 20:42
Re: Whirlpool without plugin - by Dangjai - 11.09.2014, 20:46
Re: Whirlpool without plugin - by Steel_ - 11.09.2014, 20:49
Re: Whirlpool without plugin - by WhiteAngels - 12.09.2014, 11:08
Re: Whirlpool without plugin - by LivingLikeYouDo - 12.09.2014, 11:39
Re: Whirlpool without plugin - by Kaperstone - 12.09.2014, 11:57
Re: Whirlpool without plugin - by EmpireSk - 12.09.2014, 13:32
Re: Whirlpool without plugin - by EmpireSk - 12.09.2014, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)