mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-05-23 05:46:07 +08:00
parent
659d769dba
commit
38b9a8d7cb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user