MyBB Community Forums

Full Version: PAWN Intergration code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all;

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;
}