校验文件是否被篡改的方法(md5、sha……)

以前网上放出来的东西

基本上都会同时放出一个md5码

用来校验下载东西是否正确(主要是怕被篡改)

最近md5不是出问题了吗

据说是两个不同的东西能够生成一样的md5码

(有人已经试验成功了)

所以,最近有很多已经开始采用别的校验方式

比如有的文件后缀是SHA256

里面放的是sha2校验码

那么我们可以用命令

openssl dgst sha xxx.iso

同样

校验文件的md5码也可以用命令

openssl dgst md5 xxx.iso

来得到这个文件xxx.iso的sha2的校验码

 

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word