05 // Unicode, Symbol & Encoding WorkbenchHASH-GENERATOR
SHA-256, SHA-384, SHA-512 & SHA-1 WebCrypto Digest Generator
Uses the browser's native W3C Web Cryptography API (`crypto.subtle.digest`) over exact UTF-8 bytes to compute NIST FIPS 180-4 SHA-2 digests instantaneously.
SHA-256 (HEX)
—
SHA-384 (HEX)
—
SHA-512 (HEX)
—
SHA-1 (HEX)
—
Was this tool helpful?
Reference Table
- 01Empty string `""` SHA-256 reference vector: `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`.
- 02Subresource Integrity (`integrity="sha384-..."`) attributes on `<script>` tags use Base64-encoded SHA-384 or SHA-512 digests.
Frequently Asked Questions
Should raw SHA-256 be used directly to hash user passwords?+
No — fast hashes like SHA-256 can be brute-forced at billions of guesses/sec on GPUs; use memory-hard Argon2id, scrypt, or PBKDF2-HMAC-SHA256 with a random salt for passwords.
Why is SHA-1 deprecated for TLS and digital signatures?+
Practical chosen-prefix collision attacks (SHAttered, 2017) broke SHA-1 collision resistance; use SHA-256 or SHA-512 for all security-critical integrity checks.
How do I generate an HTML Subresource Integrity (SRI) hash?+
Compute the SHA-384 Base64 digest and prefix it with `sha384-` inside `<script integrity="sha384-..." crossorigin="anonymous">`.