Beispiel #1
0
        public static byte[] GetMd5Bytes(byte[] data) {
            MD5Digest digest = new MD5Digest();
            digest.BlockUpdate(data, 0, data.Length);
            byte[] hash = new byte[16];
            digest.DoFinal(hash, 0);

            return hash;
        }
Beispiel #2
0
        public static byte[] GetMd5Bytes(byte[] data)
        {
            MD5Digest digest = new MD5Digest();

            digest.BlockUpdate(data, 0, data.Length);
            byte[] hash = new byte[16];
            digest.DoFinal(hash, 0);

            return(hash);
        }
Beispiel #3
0
 public void Update(byte[] chunk)
 {
     digest.BlockUpdate(chunk, 0, chunk.Length);
 }