FileStream fs = new FileStream(Server.MapPath("Web.config"), FileMode.Open, FileAccess.Read, FileShare.Read, 8192);
SHA256 hasher = SHA256.Create();
byte[] data = hasher.ComputeHash(fs);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < data.Length; i++)
{
sb.Append(data[i].ToString("x2"));
}
SHA256 hasher = SHA256.Create();
byte[] data = hasher.ComputeHash(fs);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < data.Length; i++)
{
sb.Append(data[i].ToString("x2"));
}