CentOs文件的完整性校验

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 命令成功完成。

猜你喜欢

转载自www.cnblogs.com/tsing0520/p/9948299.html