mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
6 lines
213 B
PowerShell
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()
|