Linux has some cool tools for getting file hashes like md5sum and sha1sum, but Windows 7 and 10 has “certutil”. It is easy to use with simply running
CertUtil -hashfile <path to file> <hash algorithm>So a simple example to run it on the file notepad.exe located in C:\Windows\System32, would be
certutil -hasfile c:\windows\system32\notepad.exe MD5
certutil -hasfile c:\windows\system32\notepad.exe SHA1For the hash algorithms, you have your choice of MD2-4, SHA1, SHA256, SHA364 and SHA512.