mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Use Hexadecimal intead of Base64 string representation for SHA256
This commit is contained in:
committed by
Caelan Sayler
parent
a508f9f440
commit
ad7ce6a75a
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user