Google.SafeBrowsing.API.ComputeHash C# (CSharp) Method

ComputeHash() private method

private ComputeHash ( CanonicalURL url ) : byte[]
url CanonicalURL
return byte[]
        private byte[] ComputeHash(CanonicalURL url)
        {
            byte[] bytes = Encoding.ASCII.GetBytes(url.ToString());

            SHA256 algo = new SHA256Managed();

            return algo.ComputeHash(bytes);
        }