1、macbash
一、md5ui
openssl md5 /path/to/filespa
新的macOS默认支持:md5 filenamemd5
二、sha256ssl
openssl dgst -sha256 /path/to/fileopenssl
三、sha1hash
openssl sha1 /path/to/filezsh
四、别名设置class
不妨在 .bashrc 或者 / .zshrc 里加入一行alias sha256="openssl dgst -sha256"来实现经过sha256 /path/to/file校验 SHA256file
2、Window命令以下
certutil -hashfile filename MD5
certutil -hashfile filename SHA1
certutil -hashfile filename SHA256