Since sha1sum
doesn't provide an option for binary output you'll likely need to find an utility which does the opposite of od
and pipe them. Taking suggestion by fschmitt to use xxd
with 'reverse' and 'plain dump' flags it will look like this:
sha1sum | cut -f1 -d\ | xxd -r -p | base64