We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322225e commit 27ea5e7Copy full SHA for 27ea5e7
src/ImageWizard.Core/Caches/Hash/SHA256CacheHash.cs
@@ -10,9 +10,7 @@ public class SHA256CacheHash : ICacheHash
10
{
11
public async Task<string> CreateAsync(Stream stream)
12
13
- using SHA256 sha256 = SHA256.Create();
14
-
15
- byte[] hash = await sha256.ComputeHashAsync(stream);
+ byte[] hash = await SHA256.HashDataAsync(stream);
16
17
return Convert.ToHexString(hash);
18
}
0 commit comments