LumiSoft.Net.AUTH.AuthHelper.Cram_Md5 C# (CSharp) Method

Cram_Md5() public static method

Calculates CRAM-MD5 authentication compare value.
public static Cram_Md5 ( string password, string hashKey ) : string
password string Password.
hashKey string Hash calculation key
return string
        public static string Cram_Md5(string password,string hashKey)
        {
            /* RFC 2195 AUTH CRAM-MD5
             *
             * value = Hex(HmacMd5(hashKey,password))
            */

            return Hex(HmacMd5(hashKey,password));
        }