bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7313: sha1sum etc, output in base64


From: Pádraig Brady
Subject: bug#7313: sha1sum etc, output in base64
Date: Tue, 02 Nov 2010 17:15:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 02/11/10 16:20, Pádraig Brady wrote:
> env printf $(sha1sum file | sed 's/ .*//; s/\(..\)/\\x\1/g') | base64

I just dug out an old script of mine that did
low level manipulations like this, and I had used:

openssl dgst -sha1 -binary $file | openssl enc -base64

While that does show there is a need for this,
it also shows there are widely available tools
to do it already.

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]