Is MD5 safe to use for password storage?▾
No. MD5 (and SHA-1) are cryptographically broken for password hashing purposes. They are fast to compute, which makes brute-force and rainbow-table attacks practical. For password storage, use a slow, salted algorithm like bcrypt, scrypt, or Argon2.
What is the difference between SHA-256 and SHA-512?▾
Both are members of the SHA-2 family and are considered secure. SHA-256 produces a 256-bit (64 hex character) digest; SHA-512 produces a 512-bit (128 hex character) digest. SHA-512 is marginally stronger and may be faster on 64-bit processors, but SHA-256 is more widely used in practice.
Why does my hash not match the expected value?▾
The most common causes are trailing whitespace or a newline at the end of the input, a different character encoding (UTF-8 vs Latin-1), or uppercase vs lowercase hex output. Ensure the input is identical — including encoding — to what was hashed originally.
Can two different inputs produce the same hash (collision)?▾
In theory, yes — hash functions map infinite inputs to finite output spaces. In practice, SHA-256 and SHA-512 have no known practical collision attacks. MD5 and SHA-1 do have known collision vulnerabilities and should not be used for security-critical purposes.
Can I hash binary data or files with this tool?▾
The text input computes hashes of the UTF-8 byte representation of the string you type. For binary files, use the file-input option which reads the raw bytes locally before hashing, producing the same result as sha256sum on the command line.
Is HMAC the same as a regular hash?▾
No. HMAC (Hash-based Message Authentication Code) is a hash computed over both the message and a secret key using a specific construction. A plain hash has no key. HMAC is used to verify both integrity and authenticity; a regular hash verifies integrity only.
Are hashes reversible?▾
No. Hash functions are one-way by design. Given a hash output, you cannot mathematically reverse it to recover the original input. What attackers do is pre-compute hashes for common inputs (rainbow tables) and look up matches — which is why salting passwords before hashing is essential.
Why does the SHA-256 hash computed here match sha256sum on Linux?▾
The tool uses the browser's SubtleCrypto.digest('SHA-256', ...) API with the UTF-8 byte representation of your string, which produces the same result as echo -n 'your string' | sha256sum (note the -n flag, which omits the trailing newline that echo adds by default).