b2KIT

SHA-384 Hash Generator

Generate SHA-384 cryptographic hashes from text or file input using the WebCrypto API.

Tested tool guide Tested browser tools Checked August 16, 2026

What SHA-384 Hash Generator does, with a checked example

A SHA-384 hash is a 96-character hexadecimal string that changes beyond recognition when even one byte of the input changes. This tool produces that digest for any text you paste or file you pick, computing it in the browser with the WebCrypto API, so nothing you hash is uploaded anywhere. The most common misunderstanding: the digest covers exactly the bytes you enter, so an extra newline, a trailing space, or a different line ending yields a completely different hash, and no hash of any size can be reversed back into the original text.

Worked example

A concrete input and expected output from the current implementation.

Input

abc

Expected output

cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7

This is the standard test vector for SHA-384 defined in FIPS 180-4: the digest of the three ASCII bytes 0x61 0x62 0x63. Append a newline after the letters and the result changes completely, so the hash is only meaningful for the exact byte sequence you hashed.

How the result is produced

1

Text input and encoding

Pasted text is encoded as UTF-8 bytes before hashing, so the result depends on the exact characters and whitespace you typed. The WebCrypto digest operation returns 48 bytes for SHA-384, which the tool renders as 96 hexadecimal characters. The same input always produces the same digest, and a single changed byte produces an unrelated one.

2

Files and the fixed output size

The digest length never changes: SHA-384 always returns 384 bits, or 96 hex characters, whether the input is a single byte or a large file. The value is a fingerprint of the exact bytes processed, so it works as a checksum to confirm a file matches a reference digest, or to test whether two copies are byte-identical.

Good uses

  • Confirm a downloaded file matches the SHA-384 checksum published by its distributor, for example software whose download page prints a 'SHA384: ...' signature.
  • Check whether two files, or two pasted blocks of text, are byte-for-byte identical when you cannot or should not compare them visually.
  • Produce a repeatable fingerprint of a document or secret so you can match it later against the same fingerprint, such as verifying that two parties hold the same file without exchanging it.

Limits and checks

  • Whitespace counts: hashing 'abc' and hashing 'abc' followed by a newline produce completely different digests. Copying text from an editor or terminal can silently include a trailing line break.
  • SHA-384 is not a slice of SHA-512. The two share the same compression function, but SHA-384 starts from different initial values, so its digest is not the first 96 characters of the SHA-512 result for the same input.
  • A matching digest proves the bytes match the reference, not that the content is trustworthy. If an attacker can replace both the file and the published checksum, the check proves nothing; compare against a digest obtained from a source you trust.

Common questions

Can I use this tool to reverse a hash and recover the original text?

No. SHA-384 is a one-way function: computing the digest from the input is fast, but nothing can recover the input from the digest. For a short, guessable value such as a password, someone can hash likely candidates and compare, which is why raw hashes are not a substitute for a slow password-hashing scheme like bcrypt or Argon2.

Why does the hash change when I add a space or newline?

Because the input to the hash is the exact sequence of bytes, and whitespace is a byte like any other: 'abc' and 'abc ' hash differently because the byte sequences differ. When reproducing a published checksum, confirm you are hashing byte-for-byte the same content, including line endings and a trailing newline.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools