@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user