Files
netch/GetSHA256.ps1
Connection Refused 0b46f8d8af Lowercase SHA256
2020-05-07 20:52:50 +08:00

6 lines
213 B
PowerShell

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