Cryptographic Hash & HMAC Generator
Compute SHA-256, SHA-512, SHA-384, SHA-1, and MD5 digests simultaneously in your browser using hardware-accelerated Web Crypto (`crypto.subtle.digest`) and pure TypeScript MD5. Toggle Hex (lowercase/uppercase) or Base64 encoding, sign payloads with an optional HMAC secret key, and verify expected checksums with zero server uploads.
#How to Use This Tool
#Mathematical Formula & Standards
#Edge Cases & Technical Considerations
Hashing vs. Encryption vs. Encoding
Encoding (Base64, URL percent-encoding) is reversible without a key. Encryption (AES, RSA) is reversible with a decryption key. Cryptographic hashing (SHA-256, SHA-512) is one-way by design—there is no "decrypt" operation for a SHA-256 digest.
MD5 & SHA-1 Collision Deprecation
Both MD5 (128-bit) and SHA-1 (160-bit) have documented collision vulnerabilities and must never be used for TLS certificates, code signing, or password storage. Keep them strictly for legacy checksum verification and use SHA-256 or SHA-512 for modern integrity checks.
UTF-8 Byte Normalization
Hashes are computed over exact UTF-8 byte sequences (`TextEncoder`). A trailing newline (`\n`) or different Unicode normalization form produces a completely different digest due to the avalanche effect.
#Frequently Asked Questions
Q:Can a SHA-256 or MD5 hash be reversed or decrypted?
No. Cryptographic hash functions are mathematically one-way. You cannot decrypt a digest back into the original text; verification works by hashing a candidate input and comparing digests.
Q:Why are MD5 and SHA-1 labeled as Legacy?
Practical collision attacks exist against both MD5 and SHA-1, meaning two different inputs can produce the same hash. Use SHA-256 or SHA-512 for security-sensitive integrity checks.
Q:Are my input strings or HMAC secret keys sent to a server?
Never. SHA-1, SHA-256, SHA-384, and SHA-512 run natively via your browser Web Crypto API (crypto.subtle), MD5 runs in local TypeScript, and HMAC secret keys are excluded from shared URLs.
Q:Should I use SHA-256 directly to store user passwords?
No. Fast digests like SHA-256 are vulnerable to GPU brute-force attacks on passwords. Production password storage requires slow, salted memory-hard key derivation functions such as Argon2id, bcrypt, or scrypt.
Have feedback or feature requests?
Help us improve this utility. Share suggestions, report edge cases, or request new features directly.
#Related Utilities
Explore complementary tools running on-device with zero server upload.
Cryptographic Password Generator — Secure & Client-Side
Engineered to meet NIST SP 800-63B standards, this utility leverages your browser’s cryptographically secure pseudo-random number generator (window.crypto.getRandomValues). All credentials are generated strictly in memory and are never persisted in cookies, local storage, or transmitted across the network.
JWT Generator & Signer — Zero-Upload Online Mock Token Builder
Create, configure, and cryptographically sign JSON Web Tokens (JWT) directly inside your browser. Generate mock authorization tokens for local backend APIs, Postman integration testing, and microservice debugging with zero server upload.
JWT Decoder & Inspector — Zero-Upload Online JWT Token Viewer
Decode, inspect, and verify JSON Web Tokens (JWT) directly inside your browser. No auth tokens or secret keys are ever transmitted over the network or logged to cloud servers, satisfying strict enterprise privacy, SOC2, and GDPR Article 28 compliance.