1
0
mirror of synced 2025-12-14 10:28:13 +08:00
This commit is contained in:
huiyadanli
2022-06-19 19:27:05 +08:00
parent 659d769dba
commit 38b9a8d7cb

View File

@@ -35,6 +35,7 @@ namespace RevokeMsgPatcher.Utils
/// <returns></returns>
public static string ComputeFileSHA1(string s)
{
File.SetAttributes(s, FileAttributes.Normal);
FileStream file = new FileStream(s, FileMode.Open);
SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] retval = sha1.ComputeHash(file);