SHA-384 explained in plain terms means understanding the hash function that sits in the middle of the SHA-2 family, a design that takes the SHA-512 compression function, starts it from different values, and trims the output down to 384 bits. The central question is why anyone would want a hash that is deliberately a shortened version of a bigger one, and the answer is that SHA-384 gives you a 384-bit fingerprint with the speed of SHA-512 and a comfortable margin of security above SHA-256.
SHA-384 is a cryptographic hash function designed by the National Security Agency and published by the National Institute of Standards and Technology in 2002, as part of the Federal Information Processing Standard 180-2. It produces a fixed 384-bit digest from an input of any size, and it is built so that finding two inputs with the same digest would take about 2 to the power of 192 tries, which is far beyond anything any computer can do.
This article explains what SHA-384 is, how it works, and where it is used in the real world.
Key takeaways
- SHA-384 is a SHA-2 hash function with a 384-bit digest.
- It is SHA-512 with different starting values, truncated to 384 bits.
- It processes data in 1024-bit blocks over 80 rounds.
- It offers 192 bits of collision resistance.
- It is used in TLS, certificates and DNSSEC.
What SHA-384 is
SHA-384 is a hash function that turns any message, file or password into a fixed fingerprint of 384 bits, which is 48 bytes usually written as 96 hexadecimal characters. The same input always produces the same fingerprint, and even a one-bit change in the input produces a completely different one, which is the avalanche effect that makes hash functions useful for checking that data has not been tampered with.
Its signature feature is that it is a truncation, not a separate design. SHA-384 runs exactly the same compression function as SHA-512, with the same 80 rounds and the same 1024-bit blocks, but it starts from a different set of initial values and throws away the last 128 bits of the result. That shared machinery is what makes the design trustworthy, because every hour of analysis spent on SHA-512 applies to SHA-384 as well.
The design was a reaction to a practical problem. When the SHA-2 family was standardised, SHA-256 gave a 256-bit digest and SHA-512 gave a 512-bit one, but some systems wanted a middle ground, a digest bigger than 256 bits without the full 512-bit output. SHA-384 filled that gap, and it did so without asking anyone to trust a brand-new design, since it reused the SHA-512 engine that was already being studied.
It became one of the standard hashes of the internet, and it is named in the specifications that run secure connections every day. TLS 1.2 and TLS 1.3 both list SHA-384 cipher suites, certificate authorities sign certificates with it, and DNSSEC uses it to fingerprint DNS keys, which means a large share of the secure web depends on this hash without most people ever hearing its name.
Its most famous property is the security margin it carries. A 384-bit digest means 192 bits of collision resistance, which is far more than the 128 bits that SHA-256 offers and far more than anyone needs today, and that margin is the whole point of the design: it is a hash chosen by people who would rather have too much security than just enough.
Our guide to SHA-3 explains the standard that followed SHA-2, and our guide to hashing explains how hash functions fingerprint data.
How SHA-384 works
Everything starts with padding, which turns the message into a whole number of 1024-bit blocks. A single 1 bit is added after the message, then enough zero bits to leave room for a 128-bit length field at the end, which means the padded message always ends with its own original length, and that length field is what stops an attacker from quietly extending the message.
Each block begins with the message schedule, which expands the block’s sixteen 64-bit words into eighty words. The first sixteen words are the block itself, and each later word is built from earlier ones with rotations, shifts and XORs, which means every word of the schedule depends on the message, and because the schedule runs before the rounds, the whole block is mixed before the compression even starts.
The compression function then runs eighty rounds over an eight-word state. Each round mixes two of the schedule words into the state with rotations, shifts, ANDs, XORs and additions modulo 2 to the power of 64, which means a small change in the input spreads through the whole state, and because there are eighty rounds, that spreading has plenty of time to finish.
The initial values are what make SHA-384 different from SHA-512. Both hashes run the same rounds, but SHA-384 starts from a different eight-word constant, one derived from the fractional parts of the square roots of the first eight primes, just as SHA-512 derives its own from the same source. Those different starting values mean the two hashes produce completely different digests for the same message, even though their engines are identical.
The final step is truncation, which is where the 384 comes from. After the last block is compressed, the eight-word state holds 512 bits, and SHA-384 simply keeps the first six words and discards the last two. That discarded part is not wasted work, since it still influenced the kept words during the rounds, and the result is a 384-bit digest that carries the full strength of the SHA-512 engine behind it.
The output stage produces a digest that is ready to use. The six kept words are written out as 48 bytes, usually shown as 96 hexadecimal characters, and that string is the fingerprint that systems compare, store and sign. The same message always gives the same string, and a different message gives a different one, which is the whole contract a hash function makes with the systems that rely on it.

Comparing SHA-384 with other SHA-2 hashes
SHA-384 is one of several hashes in the SHA-2 family, and each was built with a different emphasis. SHA-256 is the workhorse with a 256-bit digest and 512-bit blocks, SHA-512 is the big one with a 512-bit digest and 1024-bit blocks, and SHA-384 is the middle ground that pairs SHA-512’s engine with a shorter output, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | SHA-384 | SHA-256 | SHA-512 |
|---|---|---|---|
| Digest | 384 bits | 256 bits | 512 bits |
| Block size | 1024 bits | 512 bits | 1024 bits |
| Rounds | 80 | 64 | 80 |
| Collision resistance | 192 bits | 128 bits | 256 bits |
| Best for | TLS and signatures | General use | 64-bit speed |
The practical result is that SHA-384 is the right choice for TLS and signatures, SHA-256 suits general use everywhere else, and SHA-512 fits systems that want the longest digest instead.
Where SHA-384 is used
TLS uses it to protect web connections. When a browser negotiates a secure connection, SHA-384 is one of the hashes it can agree on for the handshake and for message authentication, and cipher suites built on it are among the strongest that TLS 1.2 and TLS 1.3 offer, which means a large share of encrypted web traffic is authenticated with this hash every day.
Certificates use it to sign identities. Certificate authorities issue X.509 certificates signed with SHA-384, and browsers check those signatures before they trust a website, which means the hash is part of the chain of trust that lets you know a site is really the site it claims to be.
DNSSEC uses it to fingerprint keys. The DNS Security Extensions record a digest of each zone’s signing key, and SHA-384 is one of the digest types a zone can choose, which means resolvers can check that a DNS answer comes from the right key without downloading the whole key first.
Digital signatures use it wherever a 384-bit digest is wanted. Signing a document or a software update means hashing it first and signing the hash, and SHA-384 is a common choice when the signer wants more than 256 bits of digest without moving all the way to 512, which makes it a favourite in government and enterprise systems.
Standards history uses it to mark the SHA-2 era. SHA-384 was part of the family that replaced SHA-1 after SHA-1 was broken, and it represents the middle path that standardisation explored, which means historians of the field return to it whenever they ask how the hash standards grew up.
Strengths and limits
The greatest strength of SHA-384 is its margin. A 384-bit digest with 192 bits of collision resistance is far beyond what any attacker can threaten, and that margin is real, measured in the decades of analysis behind SHA-2 and confirmed by the absence of any practical attack against the family.
It is also a strength that the design is shared with SHA-512. A hash that reuses a well-studied engine inherits all of that study, and that inheritance is worth more than novelty in a field where a new design needs years of public analysis before anyone trusts it.
The limits are real, though, and the biggest is length extension. Like every hash built on the Merkle-Damgard construction, SHA-384 lets an attacker extend a hashed message without knowing the original, which means it must never be used as a bare message authentication code, and systems that need authentication use HMAC with SHA-384 instead.
SHA-384 checklist
- Use SHA-384 for signatures and TLS, not for password storage.
- Remember it is SHA-512 with different starting values, truncated.
- Study its 80 rounds to understand the SHA-2 design.
- Compare it with SHA-256 to see the digest trade-off.
- Note its 192-bit collision resistance when choosing a hash.
- Use HMAC-SHA-384 for authentication, never bare SHA-384.
- Check for SHA-384 support in TLS cipher suites.
- Prefer a slow password hash for passwords, not SHA-384.
- Choose SHA-3 for any system that needs a sponge design today.
Frequently asked questions
What is SHA-384 in simple terms?
It is a hash function from the SHA-2 family that produces a 384-bit fingerprint, built by running the SHA-512 engine with different starting values and trimming the output.
Why is it called SHA-384?
After the size of its digest, 384 bits, which is six 64-bit words kept from the eight-word state that SHA-512 produces.
How is SHA-384 different from SHA-512?
Both run the same 80 rounds over 1024-bit blocks, but SHA-384 starts from different initial values and discards the last 128 bits of the result.
Is SHA-384 still secure?
Yes, no practical attack against it has been published, and its design has survived more than two decades of public analysis since 2002.
Where is SHA-384 used?
In TLS cipher suites, X.509 certificate signatures, DNSSEC key fingerprints and digital signatures wherever a 384-bit digest is wanted.
When should I use SHA-384?
When you need a digest larger than SHA-256, when a standard asks for it, or when you want SHA-512’s speed with a shorter output.
The bottom line
SHA-384 explained in one line is this: the middle child of SHA-2, a truncated SHA-512 that proved a shorter digest can still carry a big margin.
It is proof that reuse can be a strength, and the reason it still matters is that every secure connection that agrees on a SHA-384 suite is trusting a design that has earned its place.
This article is general information about how SHA-384 works, not advice about choosing encryption for a particular device or system.







