mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-05-24 06:26:06 +08:00
parent
659d769dba
commit
38b9a8d7cb
|
@ -35,6 +35,7 @@ namespace RevokeMsgPatcher.Utils
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string ComputeFileSHA1(string s)
|
public static string ComputeFileSHA1(string s)
|
||||||
{
|
{
|
||||||
|
File.SetAttributes(s, FileAttributes.Normal);
|
||||||
FileStream file = new FileStream(s, FileMode.Open);
|
FileStream file = new FileStream(s, FileMode.Open);
|
||||||
SHA1 sha1 = new SHA1CryptoServiceProvider();
|
SHA1 sha1 = new SHA1CryptoServiceProvider();
|
||||||
byte[] retval = sha1.ComputeHash(file);
|
byte[] retval = sha1.ComputeHash(file);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user