• MD5
    python -c "import hashlib,sys;print hashlib.md5(open(sys.argv[1],'rb').read()).hexdigest()" Shadowsocks.exe
  • SHA-1
    python -c "import hashlib,sys;print hashlib.sha1(open(sys.argv[1],'rb').read()).hexdigest()" Shadowsocks.exe

  • SHA-256
    python -c "import hashlib,sys;print hashlib.sha256(open(sys.argv[1],'rb').read()).hexdigest()" Shadowsocks.exe

  • SHA-512
    python -c "import hashlib,sys;print hashlib.sha512(open(sys.argv[1],'rb').read()).hexdigest()" Shadowsocks.exe

windows平台还可以用certutil
1. SHA1
certutil.exe -hashfile msg.dll

  1. SHA256:
    certutil.exe -hashfile msg.dll SHA256

  2. MD5:
    certutil.exe -hashfile msg.dll MD5
    还有跟多certutil的用法请瞅:http://www.webbaozi.com/qjyq/77.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注