Skip to content

Instantly share code, notes, and snippets.

@hgirish
Created April 6, 2023 02:15
Show Gist options
  • Save hgirish/c805261034871b667cced9aa23a642d5 to your computer and use it in GitHub Desktop.
Save hgirish/c805261034871b667cced9aa23a642d5 to your computer and use it in GitHub Desktop.
# default SHA256
(Get-FileHash -Path filepath).Hash -eq "SHA256Hash"
# MD5 Hash
(Get-FileHash -Path filepath -Algorithm MD5).Hash -eq "MD5hash"
# SHA512 Hash
(Get-FileHash -Path filepath -Algorithm MD5).Hash -eq "SHA512hash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment