SHA-384 hash generator

Computes SHA-384 from the SHA-2 family in FIPS 180-4, common in Subresource Integrity values and elliptic-curve TLS certificates.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter text or bytes and input type.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

It runs the SHA-512 algorithm with 64-bit words and 80 rounds on 1024-bit blocks, but with different initial values, and keeps the first 384 bits.

Example

Inputs: Input type = Text (UTF-8). Result: SHA-384 digest (hex): cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7; Input size: 3 bytes; Digest length: 384 bits.

abc
cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7

Limits and caveats

  • The digest covers the text exactly as typed: a trailing space or newline changes it completely, and line breaks count as LF.
  • An integrity value for a JavaScript file is computed over the file bytes, so paste its content complete and unchanged.

Questions about this tool

How do I write an integrity value from the result?

Write sha384- followed by the Base64 output, so the attribute reads integrity="sha384-" plus the output on a script or link tag.

How does SHA-384 differ from SHA-512?

They share one algorithm, but SHA-384 starts from different initial values and truncates the output to 384 bits.

Why is SHA-384 a little slower here?

It works on 64-bit words emulated with BigInt in JavaScript. That does not affect the correctness of the result.