mirror of
https://github.com/netchx/netch.git
synced 2026-04-05 19:45:05 +08:00
fix Check SHA256 sum
This commit is contained in:
@@ -96,9 +96,7 @@ namespace Netch.Utils
|
||||
{
|
||||
var SHA256 = SHA256Managed.Create();
|
||||
var fileStream = File.OpenRead(filePath);
|
||||
var s = string.Empty;
|
||||
SHA256.ComputeHash(fileStream).Select(b => s+=b.ToString("x2"));
|
||||
return s;
|
||||
return SHA256.ComputeHash(fileStream).Aggregate(string.Empty, (current, b) => current + b.ToString("x2"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user