How to use GnuPG to generate sha512sum hash?

Todd Zullinger tmz at pobox.com
Fri Aug 31 10:38:51 CEST 2007


Moses wrote:
> I want hash some strings by using GnuPG, I know GPG have hash
> function, but I can't find how to do it in the manuals or other
> documentations on the official website. What's parameters used by
> GPG for hash?
> 
> Furthermore, I would like use sha-512 hash strings from standard
> input, rather than from files, is it possible? If not, is there any
> other app can do this for me?

Perhaps this:

echo "some string" | gpg --print-md SHA512

is what you're looking for?

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The best cure for insomnia is to get a lot of sleep.
    -- W.C. Fields

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : /pipermail/attachments/20070831/1c03689e/attachment-0001.pgp 


More information about the Gnupg-users mailing list