Generate SHA1 checksum of a file function

suggest change
First you add System.Security.Cryptography and System.IO to your project
public string GetSha1Hash(string filePath)
   {
       using (FileStream fs = File.OpenRead(filePath))
       {
           SHA1 sha = new SHA1Managed();
           return BitConverter.ToString(sha.ComputeHash(fs));
       }
   }

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents