Initial update to .net core 6 rc2, haven't run it yet
This commit is contained in:
@@ -13,7 +13,9 @@ namespace AyaNova.Util
|
||||
{
|
||||
using (FileStream stream = File.OpenRead(filePath))
|
||||
{
|
||||
SHA256Managed sha = new SHA256Managed();
|
||||
|
||||
//SHA256Managed sha = new SHA256Managed();
|
||||
var sha= SHA256.Create();
|
||||
byte[] checksum = sha.ComputeHash(stream);
|
||||
return BitConverter.ToString(checksum).Replace("-", String.Empty);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user