Last active
April 10, 2019 12:51
-
-
Save gravcat/fb08962a977acbcb6d255923e0cb4fab to your computer and use it in GitHub Desktop.
call script, input filename, receive bacon (or a sha256sum by default)
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 ( | |
[String] | |
$File, | |
[String] | |
$Alg = SHA256 | |
) | |
(Get-FileHash $File -Algorithm $Alg).Hash.ToLower() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i made this because most processes are expecting checksums in lowercase form, at least in my neck of the woods. sha256 by default
usage:
output example: