2012-08-14, 07:37 AM
Hello all;
Heres a quick snippet to intergrate your forum with .PAWN files;
Heres a quick snippet to intergrate your forum with .PAWN files;
#include <md5>
new salt[128];
stock hashit(string[])
{
new hashed[128],saltnstring[256];
format(saltnstring,sizeof(saltnstring),"%s%s",MD5_Hash(salt),MD5_Hash(string));
format(hashed,sizeof(hashed),"%s",MD5_Hash(saltnstring));
return hashed;
}
public scriptload()
{
salt = "zh~2X";
print("\n--------------------------------------");
printf("MD5x3+SALT HASH TEST: %s", hashit("test"));
print("--------------------------------------\n");
return 1;
}