Beispiel #1
0
        public static byte[] Compute(int offset, byte[] bytes, int eof)
        {
            byte[] mainBuffer = new byte[eof - offset];
            Array.Copy(bytes, offset, mainBuffer, 0, mainBuffer.Length);
            Md5Cng hash = new Md5Cng();

            return(hash.Compute(mainBuffer));
        }
Beispiel #2
0
        public byte[] Compute(byte[] bytes)
        {
            Md5Cng hash = new Md5Cng();

            return(hash.Compute(bytes));
        }