1. 程式人生 > >CentOs文件的完整性校驗

CentOs文件的完整性校驗

inux spa centos span util 成功 c11 ash code

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

CentOs文件的完整性校驗