linux与windows文件的完整性校验

linux

md5sum hero.png 
fefd01c9db6e3e83b978eff1b7a67c02  hero.png

 

sha1sum hero.png 
f1e929db9cef34a8786ee4b6246fb739566c799d  hero.png

 

sha256sum hero.png 
5b654b2297f17d9106388db31c1190240cfb359144925e892468b40d692c780f  hero.png

 

 

windows

E:\>certutil -hashfile hero.png md5
MD5 哈希(文件 hero.png):
fefd01c9db6e3e83b978eff1b7a67c02
CertUtil: -hashfile 命令成功完成。

 

E:\>certutil -hashfile hero.png SHA1
SHA1 哈希(文件 hero.png):
f1e929db9cef34a8786ee4b6246fb739566c799d
CertUtil: -hashfile 命令成功完成。

 

E:\>certutil -hashfile hero.png SHA256
SHA256 哈希(文件 hero.png):
5b654b2297f17d9106388db31c1190240cfb359144925e892468b40d692c780f
CertUtil: -hashfile 命令成功完成。

 

posted @ 2018-11-12 18:47  tsing0520  阅读(505)  评论(0编辑  收藏  举报