CSharp examples for System:Byte Array
Get Hash for byte array
using System.Text.RegularExpressions; using System.Collections.Specialized; using System.Threading; using System.Collections.Generic; using System.Text; using System.Net; using System.IO;// w w w .ja v a 2 s . c om using System; using System.Collections; public class Main{ public static byte[] GetHash(byte[] bytes) { using (var hash = System.Security.Cryptography.HashAlgorithm.Create("sha256")) { return hash.ComputeHash(bytes); } } }