From 8fc4e3151f40fdc9de5c19d14ea91dbf5121188c Mon Sep 17 00:00:00 2001 From: Amazing_DM Date: Thu, 19 Mar 2020 22:28:47 +0800 Subject: [PATCH] Create GetSHA256.ps1 --- GetSHA256.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 GetSHA256.ps1 diff --git a/GetSHA256.ps1 b/GetSHA256.ps1 new file mode 100644 index 00000000..6cea9d0b --- /dev/null +++ b/GetSHA256.ps1 @@ -0,0 +1,5 @@ +param([string]$file) +$hash = [Security.Cryptography.HashAlgorithm]::Create( "SHA256" ) +$stream = ([IO.StreamReader]$file).BaseStream +-join ($hash.ComputeHash($stream) | ForEach { "{0:X2}" -f $_ }) +$stream.Close()