Get the App
SLTechnology News&Howtos  ›  Network Security  › 

MD5sum fingerprint comparison

Shulou Source: shulou.com Published: 2022-06-01 05:09:45 10月04日 Update

Cmz@leco:~/test$ echo'1' > file1 # start file1 put 1cmz file1 echo'2'> file2 # start file2 put 2cmz collect Lectra stop md5sum file1 file2 > f1f2.md5 # put file1 and file2 fingerprint library in f1f2.md5 file cmz@leco:~/test$ ls Campus-tomcat f1f2.md5 file1 file2 fileCompression.sh logscmz@leco:~/test$ cat f1f2.md5 # check the contents of the fingerprint library b026324c6904b2a9cb4b88d6d61c81d1 file126ab0db90d72e28ad0ba1e22ee510510 file2cmz@leco:~/test$ md5sum-- check f1f2.md5 # check the fingerprint library file1: OKfile2: OK# the following view changes file 1. Change the contents of any one of the files 2. Change the contents of all files conclusion: no matter which file is changed, the fingerprint library will be checked. The description document has been tampered with. Cmz@leco:~/test$ echo "11" > file1cmz@leco:~/test$ md5sum-check f1f2.md5 file1: FAILEDfile2: OKmd5sum: WARNING: 1 computed checksum did NOT matchcmz@leco:~/test$ echo "1" > file1cmz@leco:~/test$ md5sum-check f1f2.md5 file1: OKfile2: OKcmz@leco:~/test$ echo "12" > file2cmz@leco:~/test$ md5sum-check f1f2.md5 file1: OKfile2: FAILEDmd5sum: WARNING: 1 computed checksum did NOT matchcmz@leco:~/test$ echo "2" > file2cmz Leco:~/test$ md5sum-- check f1f2.md5 file1: OKfile2: OKcmz@leco:~/test$ echo "11" > file1cmz@leco:~/test$ echo "12" > file2cmz@leco:~/test$ md5sum-- check f1f2.md5 file1: FAILEDfile2: FAILEDmd5sum: WARNING: 2 computed checksums did NOT matchcmz@leco:~/test$ echo "1" > file1cmz@leco:~/test$ echo "2" > file2cmz@leco:~/test$ md5sum-- check f1f2.md5 file1: OKfile2: OK

The above scheme can be used in static web pages, static files on the server, manually Mr. into the fingerprint library, and then compare the fingerprint library in all files. Easy to deal with to prevent documents from being tampered with.

Tags: File fingerprint content middle static check manual scheme server conclusion web page view service generation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux Shulou Information NVidia Xiaomi