FileStream fop = File.OpenRead(@"C:\test.bin");
string hash = BitConverter.ToString(System.Security.Cryptography.SHA1.Create().ComputeHash(fop));
using(var cryptoProvider = new SHA1CryptoServiceProvider())
{
string hash = BitConverter
.ToString(cryptoProvider.ComputeHash(buffer));
}