sha384 hash generator online

Recommended

Create the sha384 hash of any text: 96 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

Compare, hash a file, copy any format

Type text in the tool above or choose a file. Case, spaces and prefixes like sha384: don't matter.

Formats for hello world
Hex
fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd
HEX (upper case)
FDBD8E75A67F29F701A4E040385E2E23986303EA10239211AF907FCBB83578B3E417CB71CE646EFD0819DD8C088DE1BD
Base64
/b2OdaZ/KfcBpOBAOF4uI5hjA+oQI5IRr5B/y7g1eLPkF8txzmRu/QgZ3YwIjeG9
SRI (integrity attribute)
sha384-/b2OdaZ/KfcBpOBAOF4uI5hjA+oQI5IRr5B/y7g1eLPkF8txzmRu/QgZ3YwIjeG9

Files are read in your browser and never uploaded.

In short

What is SHA-384?

SHA-384 is SHA-512 with different start values, cut to 384 bits (96 hex characters). Because the output is cut, it is not open to length-extension attacks. It is the usual choice for Subresource Integrity (SRI) attributes in HTML.

SecureNo practical attacks known. Fine for integrity checks and signatures.
Where you meet it
  • Subresource Integrity (SRI)
  • TLS cipher suites
  • Certificates with ECDSA P-384
Try it

Change one letter, see what happens

A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.

Hash A…
Hash B…

Calculating…

Use it in code

The same result in your code

Every snippet prints fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd for hello world, the same as the tool. They are run against PHP's hash() before each release.

PHP
echo hash('sha384', 'hello world');
Python
import hashlib

print(hashlib.sha384("hello world".encode()).hexdigest())
Node.js
import { createHash } from "node:crypto";

console.log(createHash("sha384").update("hello world").digest("hex"));
Browser
const data = new TextEncoder().encode("hello world");
const buf = await crypto.subtle.digest("SHA-384", data);
console.log([...new Uint8Array(buf)].map((b) => b.toString(16).padStart(2, "0")).join(""));
Java
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.util.HexFormat;

public class Hash {
  public static void main(String[] args) throws Exception {
    byte[] digest = MessageDigest.getInstance("SHA-384")
        .digest("hello world".getBytes(StandardCharsets.UTF_8));
    System.out.println(HexFormat.of().formatHex(digest)); // Java 17+
  }
}
Go
package main

import (
	"fmt"
	"crypto/sha512"
)

func main() {
	fmt.Printf("%x\n", sha512.Sum384([]byte("hello world")))
}

crypto/sha3 is in the standard library since Go 1.24.

Command line
printf '%s' 'hello world' | sha384sum

# macOS: printf '%s' 'hello world' | shasum -a 384
# File on Windows: certutil -hashfile file.zip SHA384
Test values

SHA-384 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputsha384
empty string38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b
abccb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7
hello worldfdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd
The quick brown fox jumps over the lazy dogca737f1014a48f4c0b6dd43cb177b0afd9e5169367544c494011e3317dbf9a509cb1e5dc1e85a941bbee3d7f2afbc9b1
Common mistakes

Why your SHA-384 doesn't match

Not for passwords

A fast hash lets attackers try billions of guesses per second. Store passwords with Argon2id, bcrypt or scrypt, which are slow on purpose and use a salt.

A line break sneaks in

echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.

Same text, different bytes

The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.

Upper or lower case

Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".

This tool trims and uses CRLF

Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.

Compare

The SHA-2 family side by side

The same text, every SHA-2 algorithm. Shown for hello world; type in the tool above to use your text.

AlgorithmHashBits
sha2242f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b224
sha256b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9256
sha384fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd384
sha512/22422e0d52336f64a998085078b05a6e37b26f8120f43bf4db4c43a64ee224
sha512/2560ac561fac838104e3f2e4ad107b4bee3e938bf15f2b15f009ccccd61a913f017256
sha512309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f512
Measured on your device

How fast is SHA-384?

Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.

FAQ

Questions about SHA-384

Can SHA-384 be decrypted?

No. SHA-384 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" SHA-384 look the hash up in large tables of known inputs, which only works for short or common strings.

How long is a SHA-384 hash?

A SHA-384 hash is always 384 bits, written as 96 hexadecimal characters (48 bytes), no matter how long the input is.

Is SHA-384 secure?

Yes. No practical attack on SHA-384 is known, and it is approved for integrity checks and signatures. For passwords use a slow password hash instead.

Should I hash passwords with SHA-384?

No. SHA-384 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.