TLSharp.Core.MTProto.Crypto.MD5.GetMd5Bytes C# (CSharp) Method

GetMd5Bytes() public static method

public static GetMd5Bytes ( byte data ) : byte[]
data byte
return byte[]
        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;
        }