快速改变文件hash值的方法

查看哈希值命令

Linux : md5sum + 文件名

$ md5sum 1.png
fe5c3f5ef1d207bc1b646911b463c907 1.png 

 

Windows : certutil -hashfile 文件名 MD5

> certutil.exe -hashfile 1.png MD5

MD5 的 1.png 哈希:
332c21600730b5b02a160e1d287118ce
CertUtil: -hashfile 命令成功完成。

 

创建一个空文本

> echo "123" > abc.txt

 

合并

Linux

$ cat 1.png abc.txt > 2.png

 

Windows (请使用windows自带终端,比如 cmd)

> type 1.png abc.txt > 3.png


此时再查看文件的hash值,应该已经改变了。这里以图片为例,其他文件同理。

posted on 2019-07-19 17:21  wpjamer  阅读(6035)  评论(0编辑  收藏  举报

导航