0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Duh... SHA<u8> returns what?

Last updated at Posted at 2022-10-20

SHA<u64>, let's for the purpose of this example say the u64 is set as the integer 256.
This hash function will always return a hexadecimal of length 256 bits.

Likewise for SHA512 and so on.

Rookie mistake...
First off, have a skim through
https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf

Furthermore, what is SHA-1 going to return? A single base16 bit? Have fun decoding that.

The key to understanding this, is to know that a hash is in binary and the hex string is just an encoding of that.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?