I need to base64 encode a binary sha1 hash. What is the best way to do this? I imagine this would involve piping binary data into base64. Unfortunately sha1sum does not have a binary output option. Any ideas?
This is what I need to do:
echo mydata|sha1sum --binary-output|base64
sha1sum does not have a --binary-output option though.