...
You can verify the integrity of a download from Swarm by checking the Content-MD5 published in an object’s header metadata with the base64 encoded MD5 digest of the downloaded object. An example of how this is performed using the ‘openssl’ utility is outlined below:
...