From 0b46f8d8affaeddd4a541929ea2f85437fe36e16 Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Thu, 7 May 2020 20:52:50 +0800 Subject: [PATCH] Lowercase SHA256 --- GetSHA256.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GetSHA256.ps1 b/GetSHA256.ps1 index 6cea9d0b..71051256 100644 --- a/GetSHA256.ps1 +++ b/GetSHA256.ps1 @@ -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()