SHA-384 hash generator
Compute the SHA-384 hash of text or a file, in hex or Base64 for subresource integrity.
Runs in your browser. Your input is not uploaded.
SHA-384
What it does
SHA-384 is a truncated form of SHA-512, producing a 384-bit digest (96 hex characters). Its most common web use is subresource integrity: integrity="sha384-…" on a script or stylesheet, which uses the Base64 form.
How to use it
- Type text or choose a file.
- Choose Base64 for an SRI value, or hex for a checksum.
- Copy the result. For SRI, prefix it with
sha384-.
Things to watch for
- The SRI hash must be of the exact bytes the CDN serves. Hash the downloaded file, not a copy you reformatted.
- SRI needs the CDN to send CORS headers and the tag to have
crossorigin="anonymous".
Questions
- How do I make an SRI hash?
- Choose the file, pick Base64 and copy the SRI line, which adds the
sha384-prefix for you. - Is the file uploaded?
- No. It is read and hashed in your browser. Files up to 512 MB are supported.
- Why is my hash different from another tool’s?
- Usually a trailing new line (
echoadds one; useprintf %s), a different character encoding, or Windows line endings. This tool hashes the exact UTF-8 bytes of the text. - Can a hash be reversed?
- No. But short or common inputs can be found by guessing, which is why plain hashes are not suitable for passwords.