sha1sum outputs a hex encoded format of the actual sha. I would like to see a base64 encoded variant. possibly some command that outputs the binary version that I can pipe, like so: echo -n "message" | <some command> | base64 or if it outputs it directly that's fine too.
| ||||
|
feedback
|
|
If you have the command line utility from OpenSSL, it can produce a digest in binary form, and it can even translate to base64 (in a separate invocation).
| |||||
feedback
|
|
Since
| |||||||||||
feedback
|
|
Perl has a base64 module (in the base distribution since 5.7.1).
If you have the
| ||||
feedback
|
|
I'm not completely sure I understand what you want, but I think something like the following should work:
Basically, I take the hex output, use We can confirm that the final output corresponds to the same hash with the following exercise:
Visual inspection shows that our base64 value matches the original hex. Note that if you use | ||||
|
feedback
|
