[FilterScript] Whirlpool without plugin - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Whirlpool without plugin (
/showthread.php?tid=536743)
Whirlpool without plugin -
EmpireSk - 11.09.2014
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, -1, 1};
format(newstr, 129, "%c%s", 1, what);
while(newlen < 128)
{
newstr[newlen] = newstr[newlen % (deflen + 1)];
newlen++;
}
for(new i=0; i<128; i++) changeval[0] += newstr[i];
changeval[1] -= (changeval[0] % 100) + newstr[deflen % 128];
changeval[2] = floatround(floatpower(changeval[0] % 216, changeval[1] % 4));
for(new i=0; i<128; i++)
{
out[i] = 65 + ((i + changeval[0] + changeval[1] + changeval[2]) % 26);
changeval[0] -= changeval[1];
changeval[1] -= i;
changeval[2] += changeval[0] % 5;
}
return out;
}
Re: Whirlpool without plugin -
Dangjai - 11.09.2014
Good job.
Re: Whirlpool without plugin -
Steel_ - 11.09.2014
That is definetly not a password hash.
Re: Whirlpool without plugin -
WhiteAngels - 12.09.2014
Please make the Tutorial !! and post Here
http://forum.sa-mp.com/forumdisplay.php?f=70
Re: Whirlpool without plugin -
LivingLikeYouDo - 12.09.2014
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!
Re: Whirlpool without plugin -
Kaperstone - 12.09.2014
This is not Whirlpool
Your codes hash result
Quote:
JQWDJSEUQQYONXQWPWTEHCQZBAWQKCWSRVCQLOBWDWCXFEUCEY OAJRWCJSFUPQYPNWQWQWSEHDQYBAXQJCWTRUCQMOAWDXCWFEVC DYOBJQWCKSEUPRYONWRWPWSFHCQY
|
real Whirlpool hash result
Quote:
9D46F581241D89C872166AD3B489D3BA017E0F497F65BDC323 4711A2EFADC18B2C2ECE3118207309DE822E9E44D1B02872FA 88B3F74B8757FBC81049F8E606E2
|
udb_hash is TERRIBLE!
Re: Whirlpool without plugin -
EmpireSk - 12.09.2014
Quote:
Originally Posted by xkirill
|
so I changed it to another example for xkirill_hash
Re: Whirlpool without plugin -
EmpireSk - 12.09.2014
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