BonCodeAJP13.ServerPackets.BonCodeAJP13ForwardRequest.GetMD5Hash C# (CSharp) Method

GetMD5Hash() private method

Return a MD5 Hash of given text as base 64 string. This may be used with fingertprint operation of client.
private GetMD5Hash ( String sourceData ) : string
sourceData String
return string
        private string GetMD5Hash(String sourceData)
        {
            byte[] tmpSource;
            byte[] tmpHash;

            tmpSource = ASCIIEncoding.ASCII.GetBytes(sourceData);
            //Compute hash based on source string.
            tmpHash = new MD5CryptoServiceProvider().ComputeHash(tmpSource);

            return System.Convert.ToBase64String(tmpHash);
        }