How to generate a SHA-384 hash
- Type or paste text into the box, or switch to File and drop any file up to 512 MB.
- The SHA-384 hash (highlighted) and the four other common hashes appear as you type.
- Pick hex or Base64 output, and turn on HMAC if you need a keyed signature.
- Press Copy, or paste a published checksum into Compare to check a download.
SHA-384 at a glance
| Digest size | 384 bits (96 hex characters) |
|---|---|
| Published | 2001 (SHA-2 family, FIPS 180-2) |
| Designed by | NSA |
| Security | Secure: no practical attacks are known |
| Common uses | TLS cipher suites, government and high-assurance systems |
SHA-384 is SHA-512 run with different starting values and cut down to 384 bits. Because part of the internal state is dropped, it resists the length-extension attacks that affect MD5, SHA-1, SHA-256 and SHA-512 when they are misused as a MAC. The NSA's CNSA suite for protecting classified information calls for SHA-384 or larger, so you meet it in government systems and high-security TLS configurations.
SHA-384 examples
The SHA-384 of The quick brown fox jumps over the lazy dog is:
ca737f1014a48f4c0b6dd43cb177b0afd9e5169367544c494011e3317dbf9a509cb1e5dc1e85a941bbee3d7f2afbc9b1
The SHA-384 of an empty input (zero bytes) is:
38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b
If you ever see the second value, the program hashed nothing, usually because a file path was wrong or a variable was empty. Change a single character of the input and the whole hash changes, which is what makes hashes good at detecting modified files.
Why your SHA-384 hash doesn't match
A hash is calculated from bytes, not from what you see on screen. Two inputs that look identical can produce different hashes:
- A trailing newline.
echo "abc" | sha384sumhashesabcplus a line break. Useecho -norprintf. - Line endings. Windows saves text with CRLF, macOS and Linux with LF, so the same text file hashes differently.
- Text encoding. This tool hashes text as UTF-8, the web standard. PowerShell strings and some Windows APIs use UTF-16.
- Hex or Base64 input. If your input is already bytes written as hex or Base64 (for example a key), set Input is to match.
- Letter case doesn't matter.
CA737F10…andca737f10…are the same hash.
Check a file's SHA-384 checksum on your computer
The File tab works for most files. To check very large files, or to script it, use the built-in command on your system:
| System | Command |
|---|---|
| Windows (PowerShell) | Get-FileHash file.zip -Algorithm SHA384 |
| Windows (Command Prompt) | certutil -hashfile file.zip SHA384 |
| macOS | shasum -a 384 file.zip |
| Linux | sha384sum file.zip |
| Any (OpenSSL) | openssl dgst -sha384 file.zip |
| Text, macOS/Linux | printf '%s' 'your text' | sha384sum |
Generate SHA-384 in code
| Language | Code (UTF-8 text → hex) |
|---|---|
| Python | hashlib.sha384("text".encode()).hexdigest() |
| Node.js | crypto.createHash("sha384").update("text").digest("hex") |
| PHP | hash("sha384", "text") |
| C# (.NET 5+) | Convert.ToHexString(SHA384.HashData(Encoding.UTF8.GetBytes("text"))) |
| Java | MessageDigest.getInstance("SHA-384").digest(text.getBytes(UTF_8)) |
For an HMAC, use hmac.new(key, msg, hashlib.sha384) in Python or crypto.createHmac("sha384", key) in Node.js.
HMAC-SHA-384: hashing with a secret key
A plain hash proves a file hasn't changed, but anyone can recompute it. An HMAC (hash-based message authentication code, RFC 2104) also mixes in a secret key, so only someone who holds the key can produce the right value. Webhooks from payment and messaging services, signed API requests and JSON Web Tokens (HS256) all work this way. Turn on HMAC with a secret key, enter the key, and compare the result with the signature you received.
MD5 vs SHA-1 vs SHA-256 vs SHA-384 vs SHA-512
| Algorithm | Output | Hex length | Collision-resistant? | Use it for |
|---|---|---|---|---|
| MD5 | 128 bits | 32 | No (broken 2004) | Non-security checksums |
| SHA-1 | 160 bits | 40 | No (broken 2017) | Legacy compatibility only |
| SHA-256 | 256 bits | 64 | Yes | The default for integrity and signatures |
| SHA-384 | 384 bits | 96 | Yes | High-assurance and government systems |
| SHA-512 | 512 bits | 128 | Yes | Large files on 64-bit systems |
Passwords are different. All five are built to be fast, which helps attackers guess billions of passwords a second. Store passwords with Argon2id, bcrypt or scrypt, and use our password generator to create them.
Comments 0
No comments yet.