快速改變文件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值,應該已經改變了。這里以圖片為例,其他文件同理。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM