Hash Generator
Generate SHA-1, SHA-256, SHA-384, SHA-512 and MD5 digests of text or a local file, compare them with an expected checksum, and sign with HMAC-SHA256, HMAC-SHA384 or HMAC-SHA512.
Runs entirely in your browser — nothing you paste is uploaded.
Hash reference
quick reference- 32 / 40 / 64 / 128
- Hex digest lengths of MD5, SHA-1, SHA-256, and SHA-512 in characters.
- MD5
- Fast and still common for cache keys and checksums, but broken for security use.
- SHA-1
- Deprecated for signatures and certificates since practical collisions were shown.
- SHA-256
- The default choice for checksums, content addressing, and signatures.
- crypto.subtle.digest
- Web Crypto API call that returns an ArrayBuffer for hashing in the browser.
- HMAC
- A keyed hash for message authentication; a plain hash can never prove who sent a value.
Frequently asked questions
answered below the toolWhich hash should I use for a checksum?
SHA-256. MD5 and SHA-1 remain fine for cache keys but are broken for anything security-related.
Is a hash the same as encryption?
No. A hash is one-way and cannot be reversed; a password needs a deliberately slow hash such as bcrypt or Argon2.
Why does my hash differ from the server's?
One differing byte changes everything: check for a trailing newline, a BOM or a different character encoding first.
Related Go syntax guides
All Go guidesGo: cannot find main module and where go.mod is looked up
The go command searched upward and found no module. Create it at the right level, join modules with go.work, and check GOMOD before guessing.
GoGo: build constraints exclude all Go files in a package
The package vanished for this platform, not the code. Read the ignored file list, then rename a suffix or pass the tag.
GoGo: cgo: C compiler "gcc" not found in a minimal image
Why a project with no C fails on a C compiler, how to prove which package pulls cgo, and what changes when a library really needs it.
GoGo 1.26: go fix rewrites, errors.AsType and go.mod surprises
go fix now modernizes code, errors.AsType compiles instead of panicking, and go mod init writes the previous minor on purpose.