Created
July 26, 2021 07:31
-
-
Save lowleveldesign/f1afd42662ee8dabe07cf8cbfe25e6a1 to your computer and use it in GitHub Desktop.
A script to compute cryptographic hashes for the provided path (used for VERIFICATION.txt)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ([Parameter(Mandatory = $True, ValueFromPipeline = $True, Position = 0)][string]$FilePath) | |
$algs = "MD5","SHA1","SHA256" | |
$hashes = $algs | % { Get-FileHash -Algorithm $_ $FilePath } | |
for ($i = 0; $i -lt $hashes.Length; $i++) { | |
$hash = $hashes[$i] | |
"$($hash.Algorithm) = $($hash.Hash)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment