Thursday, October 1, 2020

Powershell: calculate file hash - MD5, SHA256, SHA1


 > Get-FileHash <file-name>

By default, it outputs the SHA256 of the file.


To get the file's MD5:

> Get-FileHash <file-name> -a md5


To get the file's SHA1:

> Get-FileHash <file-name> -a sha1


No comments:

 
Get This <