Hash Lab

Unkeyed cryptographic

SHA-384

A 384-bit hash function in the SHA-2 family. Same compression as SHA-512, but with a different initial hash value and the output truncated to 384 bits. The truncation grants length-extension immunity while keeping SHA-512’s speed on 64-bit CPUs.

At a glance

Output384 bits (48 bytes, 96 hex chars)
Block size1024 bits
Word size64 bits
Rounds80
StandardNIST FIPS 180-4
Collision security2192 generic
Length extensionNo
StatusRecommended

Where it shows up

Why pick SHA-384 over SHA-512?

Same speed, smaller output, and no length-extension. If you need the full 512 bits, pick SHA-512. If you need length-extension immunity at the 192-bit security level, SHA-384 is the right answer.

Why pick SHA-384 over SHA-256?

On 64-bit CPUs SHA-384 is faster per byte than SHA-256 because SHA-512’s 64-bit-word arithmetic uses native word sizes. The longer output is a free bonus.

References

Visualize

SHA-384 on your input

11 bytes · 0-bit digest

Hex digest

Bit grid (0 bits, teal = 1, slate = 0)

Byte pixel art (0 bytes, hue = byte value mod 360°)

Avalanche , flipping the lowest bit of the first input byte changed 0 of 0 output bits

Quick quiz

Test yourself on sha-384

10 multiple-choice questions. Pick an answer for each, then submit to see explanations.

  1. Q1.SHA-384 output size:

  2. Q2.Is SHA-384 vulnerable to length-extension?

  3. Q3.TLS 1.3 high-security cipher suite hash:

  4. Q4.Block size of SHA-384:

  5. Q5.Word size of SHA-384:

  6. Q6.SRI W3C recommendation:

  7. Q7.ECDSA curve usually paired with SHA-384:

  8. Q8.Generic collision security of SHA-384:

  9. Q9.On 64-bit CPUs, SHA-384 is...

  10. Q10.Rounds in SHA-384:

0 of 10 answered