Dropbox Api Content Hash and Raspberry PI OS Bash

Everyone! I’ve been trying to replicate the example on the Dropbox Developer Reference on my raspberry pi, using as guide the wonderful script Dropbox-Uploader by Andrea Fabrizi, but I am unable to get the same result.

The part where I fall short is when it says “then hex-encode the result” as I don’t know how to do this but the code mentioned above does this with

shaHex=$(echo $SHA_CONCAT | sed 's/([0-9A-F]{2})/\x1/gI')

Where $SHA_CONCAT is the concatenation of every sha-sum of the 4 MB blocks. Is this correct? Can anyone please explain me what “hex-encode the result” means?

Thanks!

Read more here: Source link