Exemplo n.º 1
0
        // Token: 0x06000296 RID: 662 RVA: 0x0000A688 File Offset: 0x00008888
        public static string GetMd5Hash(string source)
        {
            HashAlgorithm hashAlgorithm = new MD5CryptoServiceProvider();

            byte[] bytes = Encoding.ASCII.GetBytes(source);
            return(DecryptHelper.GetHexString(hashAlgorithm.ComputeHash(bytes)).Replace("-", string.Empty));
        }
Exemplo n.º 2
0
 public static string GetMd5Hash(string source)
 {
     return(DecryptHelper.GetHexString((IList <byte>) new MD5CryptoServiceProvider().ComputeHash(Encoding.ASCII.GetBytes(source))));
 }