private GenerateProof ( string challenge1, string challenge2 ) : string | ||
challenge1 | string | First challenge key |
challenge2 | string | Second challenge key |
return | string |
private string GenerateProof(string challenge1, string challenge2)
{
// Generate our string to be hashed
StringBuilder HashString = new StringBuilder(PasswordHash);
HashString.Append(' ', 48); // 48 spaces
HashString.Append(PlayerNick);
HashString.Append(challenge1);
HashString.Append(challenge2);
HashString.Append(PasswordHash);
return HashString.ToString().GetMD5Hash(false);
}