Use Hexadecimal intead of Base64 string representation for SHA256

This commit is contained in:
Erik Sandström
2024-06-24 11:39:46 +02:00
committed by Caelan Sayler
parent a508f9f440
commit ad7ce6a75a

View File

@@ -178,7 +178,7 @@ namespace Velopack
public static string CalculateStreamSHA256(Stream file)
{
using (var sha256 = SHA256.Create()) {
return Convert.ToBase64String(sha256.ComputeHash(file));
return BitConverter.ToString(sha256.ComputeHash(file)).Replace("-", String.Empty);
}
}