Windows
certutil -hashfile <文件名> <hash类型>
certutil支持的算法有:MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512
macOS
md5 /works/Hello.txt
openssl dgst -sha1 /works/Hello.txt
openssl dgst -sha256 /works/Hello.txt
Linux
md5sum /works/Hello.txt
sha1sum /works/Hello.txt
sha256sum /works/Hello.txt