Sent messages: Amazon S3 and checksum , How to encode base64 md5 in BASH
I need to load a tar file from a restricted S3 bucket. [Mostly access permissions granted only for download]
After downloading, I have to check the md5 verification amount of the downloaded file for the MD5-Check sum for the data presented in the metadata in S3
I am currently using the S3 file browser to manually mark the "x-amz-meta-md5" content header and check this value compared to the calculated md5 of the downloaded file.
I would like to know if there is a programmatic way to use boto to capture the value of the md5 hash of the S3 file, referred to as metadata.
from boto.s3.connection import S3Connection conn = S3Connection(access_key, secret_key) bucket=conn.get_bucket("test-bucket") rs_keys = bucket.get_all_keys() for key_val in rs_keys: print key_val, key_val.**HOW_TO_GET_MD5_FROM_METADATA(?)**
Please correct if my understanding is incorrect. I am looking for a way to capture header data programmatically
user1652054
source share