Quantcast
Channel: How can I get a base64 encoded shaX on the cli? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 6

Answer by alex for How can I get a base64 encoded shaX on the cli?

$
0
0

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


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>