15.06.2012, 12:23
Hello, example detailed, how to hash a passwords ?, i use mysql, and whirpool for hash password,
Waste of a plugin, honestly. MySQL offers md5 and sha1. Although both outdated, they can still be used in combination with salts. As of MySQL 5.5 it supports sha2 as well.
|
WP_Hash(wpHash, sizeof(wpHash), inputtext);
stock bernstein(string[])
{
new
hash = -1,
i,
j;
while ((j = string[i++]))
{
hash = hash * 33 + j;
}
return hash;
}
new tmphash = bernstein(password);
PlayerInfo[playerid][pKey] = INI_ReadInt("Key");
if(PlayerInfo[playerid][pKey] == tmphash);
MD5 is cracked and Whirlpool has never been cracked yet and so it is more secure I believe.
|