uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
374 stars 100 forks source link

support for computing hashes locally #11

Closed jose1711 closed 11 years ago

jose1711 commented 12 years ago

could you please add support for computing hashes of archives locally so these can be matched against those computed by amazon to verify upload? https://github.com/MoriTanosuke/glacieruploader has it, for instance. ty, jose

uskudnik commented 12 years ago

Will do :)

offlinehacker commented 12 years ago

Aren't we doing that already, we are sending locally computed hashes to amazon first for every part and latter tree hashes for everything, what am i missing here? Do you mean saving hashes in process of bookkeeping?

uskudnik commented 11 years ago

Hm, yes, my bad, indeed we do - @jose1711 see https://github.com/uskudnik/amazon-glacier-cmd-interface/blob/master/glacier/glaciercorecalls.py#L285

Or did you have something else in mind?

uskudnik commented 11 years ago

Computing hashes locally before uploading is a requirement by Amazon API itself to ensure the integrity of data - see http://docs.amazonwebservices.com/amazonglacier/latest/dev/api-upload-part.html for more information on this.

Closing.