What is SHA-384?
SHA-384 is SHA-512 with different initial values, truncated to 384 bits (96 hex characters). Because it is truncated, it is not open to length-extension attacks, and it is the hash of the TLS 1.3 suite TLS_AES_256_GCM_SHA384.
The most common place to need SHA-384 is Subresource Integrity: the integrity attribute of a CDN script is sha384- plus the Base64 of the file’s SHA-384.
This page opens the hash generator with SHA-384 on top and highlighted. The text is encoded as UTF-8 and hashed in your browser as you type; nothing is sent anywhere.
SHA-384 at a glance
| SHA-384 | |
|---|---|
| Digest size | 384 bits (96 hex characters) |
| Standard | FIPS 180-4 |
| Published | 2001 |
| Secure against attackers | yes |
| Where it is used | TLS 1.3, Subresource Integrity (integrity="sha384-…"), ECDSA P-384 signatures |
| Good for passwords | no: use bcrypt or Argon2 |
How to generate a SHA-384 hash
- Type or paste the text in the input box.
- Read the SHA-384 row, at the top of the list; it updates as you type.
- To check a known SHA-384, paste it in the comparison field: the matching row lights up.
Example
SHA-384 of three inputs, computed by the same code as the tool:
| Input | SHA-384 (hex) |
|---|---|
hello world | fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd |
| (empty text) | 38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b |
stdlib.tools | cc196b87039dd753835fc2ad1e8fb0ae207761c6f81ea79ade1f13c7224613f92f30880806afae03fbc2041e1501882c |
A single invisible line break changes everything: hello world followed by a newline (what echo prints) gives 6b3b69ff0a404f28d75e98a066d3fc64fffd9940870cc68bece28545b9a75086b343d7a1366838083e4b8f3ca6fd3c80. When your value does not match, check trailing spaces and line breaks first.
In Base64, the form used by Subresource Integrity, the SHA-384 of hello world is /b2OdaZ/KfcBpOBAOF4uI5hjA+oQI5IRr5B/y7g1eLPkF8txzmRu/QgZ3YwIjeG9.
SHA-384 in code
Node.js
import { createHash } from 'node:crypto';
createHash('sha384').update('hello world').digest('hex');Python
import hashlib
hashlib.sha384(b"hello world").hexdigest()Bash
printf 'hello world' | sha384sum
# SRI value of a file: openssl dgst -sha384 -binary app.js | openssl base64 -AFrequently asked questions
Is SHA-384 still secure?
Yes. Typical uses today: TLS 1.3, Subresource Integrity (integrity="sha384-…"), ECDSA P-384 signatures.
How long is a SHA-384 hash?
384 bits: 96 hexadecimal characters, or 64 characters in Base64 (with padding), such as /b2OdaZ/KfcBpOBAOF4uI5hjA+oQI5IRr5B/y7g1eLPkF8txzmRu/QgZ3YwIjeG9 for hello world.
Why does my SHA-384 differ from another tool?
The input differs: a trailing newline, spaces or another text encoding (UTF-8 here). Hex is case-insensitive.