Quantcast
Channel: Chilkat Forum - latest questions
Viewing all articles
Browse latest Browse all 1061

MD5 hash required from classic ASP chilkat encryption

$
0
0

I need to prepare an MD5 hash for a login system. They have provided me with a c# function for producing it but I want to use my classic ASP Chilkat. This is the C# function

//C# MD5 hash function

public static string MD5Hash(string input)   
{  
  System.Security.Cryptography.MD5CryptoServiceProvider x = new    System.Security.Cryptography.MD5CryptoServiceProvider();  
  byte[] bs = System.Text.Encoding.UTF8.GetBytes(input);  
  bs = x.ComputeHash(bs);  
  System.Text.StringBuilder s = new System.Text.StringBuilder();  
  foreach (byte b in bs)  
  {  
    s.Append(b.ToString("x2").ToLower());  
  }  
  return s.ToString();  
}

The Problem I am having is which crypt.EncodingMode should i use as there are a few possibles :- "quoted-printable", "base64", "url", and "hex"

Cheers


Viewing all articles
Browse latest Browse all 1061

Trending Articles