The simplest case: you want to create a text file that says: "MD5 hash of this file is FOOBARHASH." How do you insert a hash knowing that the inline hash value and the file hash are interconnected?
for example, Cisco embeds hash values ββin its IOS images, which can be verified as follows:
cisco # verify s72033-advipservicesk9_wan-mz.122-33.SXH7.bin
MD5 Embedded Hash: D2BB0668310392BAC803BE5A0BCD0C6A
Calculated Hash MD5: D2BB0668310392BAC803BE5A0BCD0C6A
Maybe I'm wrong, but trying to figure out how to do this, this is my mind.
I initially stated that ISO Ubuntu has a text file containing an MD5 hash of the entire ISO file. This was incorrect: in the second image, the md5sum.txt file contains hashes for individual files.
source share