Answers for "get sha1 of file c#"

C#
0

get sha1 of file c#

FileStream fop = File.OpenRead(@"C:\test.bin");
string hash = BitConverter.ToString(System.Security.Cryptography.SHA1.Create().ComputeHash(fop));
Posted by: Guest on April-30-2021
0

get sha1 of file c#

using(var cryptoProvider = new SHA1CryptoServiceProvider())
{
    string hash = BitConverter
            .ToString(cryptoProvider.ComputeHash(buffer));
}
Posted by: Guest on April-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language