mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Lowercase SHA256
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user