sha2 utilities: Print or check SHA-2 digests

David Shaw dshaw at jabberwocky.com
Sat Jun 10 00:08:34 CEST 2006


On Fri, Jun 09, 2006 at 03:57:59PM -0600, rmyster wrote:
> On Fri, 9 Jun 2006 at 08:04:35 -0400, David Shaw wrote:
> 
> > > Coreutils is installed but there isn't any sha224sum, sha256sum,
> > > sha384sum or sha512sum commands available.  Is sha2 utilities part
> > of  some other package?
> > 
> > I'm not sure if I fully understand your question (coreutils has
> > nothing to do with GnuPG), but GnuPG does have the SHA2 hashes:
> > 
> > gpg --print-md sha256 (thefile)
> > gpg --print-md sha384 (thefile)
> > gpg --print-md sha512 (thefile)
> > 
> > The next version of GPG will add:
> > 
> > gpg --print-md sha224 (thefile)
> > 
> > David
> > 
> 
> The question was how to obtain these values with the commands listed in
> the coreutils documentation. Could point me to where you obtained these
> options since they aren't listed in the gpg docs(man gpg,info gpg,
> etc)? 

Man page:

       --print-md algo [files]
       --print-mds [files]
              Print message digest of algorithm ALGO for all  given files  or
              stdin.   With  the  second  form  (or  a deprecated "*" as algo)
              digests for all available algorithms are printed.

David



More information about the Gnupg-users mailing list