Re: how to create a sha256 hash

Previous thread: Re: Richard Stallman... by Unix Fan on Friday, January 4, 2008 - 9:05 pm. (1 message)

Next thread: Re: how to create a sha256 hash by Jason George on Friday, January 4, 2008 - 10:46 pm. (2 messages)
From: Jon
Date: Friday, January 4, 2008 - 10:30 pm

hi
 how to create a sha256 value for file in openbsd ?

 can you please provide the command similar to

    sha1 foobar

or

    md5 foobar



thanks

From: Antti Harri
Date: Friday, January 4, 2008 - 10:43 pm

From sha1(1):

      The sha1 command is shorthand for

            cksum -a sha1

      The cksum(1) command can also be used to compute digests from the SHA-2
      family: sha256, sha384 and sha512.

-- 
Antti Harri

From: Mike Erdely
Date: Friday, January 4, 2008 - 10:46 pm

man 1 cksum

From: William Boshuck
Date: Friday, January 4, 2008 - 11:23 pm

See the "-a" option to cksum(1).

or

Type "apropos sha256" at the prompt, pick something that
looks promising (e.g., SHA256_Init) and open its man page.
Don't get dejected if the first thing you try isn't what
you might have hoped to see.  Take a peek at the "SEE ALSO"
section of the man page for something that looks promising.
Continue as necessary.


The first works in this case, but the second (supported by
the FAQ, the various mailing list archives and a bit of
patience) seems to work pretty much all the time (mutatis
mutandis).  At least it does on OpenBSD.

Previous thread: Re: Richard Stallman... by Unix Fan on Friday, January 4, 2008 - 9:05 pm. (1 message)

Next thread: Re: how to create a sha256 hash by Jason George on Friday, January 4, 2008 - 10:46 pm. (2 messages)