Lowercase SHA256

This commit is contained in:
Connection Refused
2020-05-07 20:52:50 +08:00
parent b69ed09dd6
commit 0b46f8d8af

View File

@@ -1,5 +1,5 @@
param([string]$file)
$hash = [Security.Cryptography.HashAlgorithm]::Create( "SHA256" )
$stream = ([IO.StreamReader]$file).BaseStream
-join ($hash.ComputeHash($stream) | ForEach { "{0:X2}" -f $_ })
-join ($hash.ComputeHash($stream) | ForEach { "{0:x2}" -f $_ })
$stream.Close()