xxxxxxxxxx
For Windows: certutil -hashfile [file location] SHA256
Use certutil or Get-FileHash in powershell
xxxxxxxxxx
certutil -hashfile <filepath> SHA256
Example:
xxxxxxxxxx
certutil -hashfile C:\Users\Username\Downloads\software.zip SHA256
F0b6dfd30c70c9d91eaCedeee2900e16f8e918330da6ecb313cc799b4b893d37
OR
xxxxxxxxxx
Get-FileHash <filepath>
Example:
xxxxxxxxxx
PS C:\Users\UserName> Get-FileHash C:\Users\UserName\Downloads\software.zip
Algorithm Hash Path
--------- ---- ----
SHA256 BD94760347BABFB0B12ADFEB41FF01B90DD7F4C16F9B6C2088CD2526F6223898 C:\Users\UserName\Downloads\cd
xxxxxxxxxx
echo "b85286d9855f549ed9895763519f6a295a7698fb9c5c5345811b3eefadfb6f07 *ubuntu-22.04-desktop-amd64.iso" | shasum -a 256 --check