GNU bug report logs - #7313
sha1sum etc, output in base64

Previous Next

Package: coreutils;

Reported by: Caleb Cushing <xenoterracide <at> gmail.com>

Date: Tue, 2 Nov 2010 13:26:04 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 7313 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Caleb Cushing <xenoterracide <at> gmail.com>
Cc: 7313 <at> debbugs.gnu.org
Subject: Re: bug#7313: sha1sum etc, output in base64
Date: Tue, 02 Nov 2010 17:15:40 +0000
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.




This bug report was last modified 6 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.