Find out Hash of a File

How to see or verify hash file after download or if you need to share a big file with someone else

The hash is a cryptographic string associated with a file. If you have a large file to share or download online, it can be useful to generate the hash of this file so you can verify the file’s integrity by comparing the two hashes taken before and after the download.

How to get hash in Windows

Using Windows you have to use the following command in PowerShell:

Get-FileHash nomefile

By default it user algorithm SHA256.

Using pipe format-list the output is more clear

Get-FileHash c:\temp\ostrich.txt | Format-List

Algorithm : SHA256
Hash      : 98IU5TDEC145EZZZZD592266BE193E5BE53443138EE6AB6CA09FF20DF6098TY6
Path      : c:\temp\ostrich.txt

Official documentation here

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash?view=powershell-7.4