On Fri, Aug 31, 2007 at 04:38:51AM -0400, Todd Zullinger wrote:
> 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?

...or, certainly, echo -n "some string" if you want just the string
without the terminating newline :)  At least on most POSIX-like systems,
that is.

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED]    [EMAIL PROTECTED]    [EMAIL PROTECTED]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This sentence every third, but it still comprehensible.

Attachment: pgpBbNMwT9mbl.pgp
Description: PGP signature

_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to