BF2Statistics.Gamespy.GpcmClient.GenerateProof C# (CSharp) Method

GenerateProof() private method

Generates an MD5 hash, which is used to verify the clients login information
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);
        }