Google.SafeBrowsing.API.ComputeHash C# (CSharp) 메소드

ComputeHash() 개인적인 메소드

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

            SHA256 algo = new SHA256Managed();

            return algo.ComputeHash(bytes);
        }