GetHash() public static method

public static GetHash ( byte input ) : byte[]
input byte
return byte[]
コード例 #1
0
 private static string GetServerHash(AsyncServerClient commands)
 {
     return(BitConverter.ToString(MD5Core.GetHash(Encoding.UTF8.GetBytes(commands.Url))));
 }
コード例 #2
0
        /// <summary>
        /// Generates an MD5 Hash of the passed in string.
        /// </summary>
        /// <param name="data">The unhashed string.</param>
        /// <returns>The MD5 hash string.</returns>
        public static string MD5Hash(string data)
        {
            byte[] hashedBytes = MD5Core.GetHash(data, Encoding.UTF8);

            return(BitConverter.ToString(hashedBytes).Replace("-", String.Empty).ToLower()); //System.Globalization.CultureInfo.InvariantCulture);
        }
コード例 #3
0
ファイル: FipsEncryptor.cs プロジェクト: stvoidmain/ravendb
 public byte[] Compute16(byte[] bytes, int offset, int length)
 {
     return(MD5Core.GetHash(bytes, offset, length));
 }
コード例 #4
0
ファイル: FipsEncryptor.cs プロジェクト: ravendb/silverlight
 public byte[] Compute16(byte[] bytes)
 {
     return(MD5Core.GetHash(bytes));
 }
コード例 #5
0
 public byte[] ComputeMD5Hash(byte[] data)
 {
     byte[] hashed = MD5Core.GetHash(data);
     return(hashed);
 }