OpenArchive / Save-app-ios

Secure Mobile Media Preservation
https://open-archive.org/
GNU General Public License v3.0
10 stars 3 forks source link

check how sha256 hashes are being encoded/stored #170

Closed n8fr8 closed 4 years ago

n8fr8 commented 4 years ago

There is some confusion about how the sha256 hash is being generated and stored.

sha256sum IMG_0097.PNG 46755ae2aa617da685f6bff69afad5bfd4236127943bf6bc248deb5f1b577c50 IMG_0097.PNG

The metadata SAVE iOS uploads shows this: { "originalFileName" : "IMG_0097.PNG", "dateCreated" : "2019-07-11T15:33:12Z", "hash" : "RnVa4qphfaaF9r\/2mvrVv9QjYSeUO\/a8JI3rXxtXfFA=", "contentType" : "image\/png", "contentLength" : 823338 }

tladesignz commented 4 years ago

Mine is BASE64 encoded. You want it to be changed to hexadecimal output?

n8fr8 commented 4 years ago

Yes, I think that will be the easiest for people attempting manual verification of the hash, using standard utilities like sha256sum.

n8fr8 commented 4 years ago

BASE16!

foundscapes commented 4 years ago

all about it!