Z

What is Hash function?

A hash function maps input data of any size to a fixed-size string of bytes (the hash or digest). The same input always produces the same output, small input changes produce very different outputs, and the process is one-way — you cannot reverse a hash back to its input.

Good cryptographic hashes are deterministic, one-way, and collision-resistant (it is infeasible to find two inputs with the same hash). Examples include MD5 and SHA-1 (now broken for security) and SHA-256 (the modern standard).

Hashes are used for file-integrity checks, digital signatures, deduplication and — with a salt and a slow KDF like bcrypt or argon2 — password storage.

Hash function tools

Frequently asked questions

Can you reverse a hash?

No — hashing is one-way. You can only verify by hashing a candidate input and comparing, or brute-force/guess for weak inputs.

Which hash function should I use?

SHA-256 for security. MD5 and SHA-1 are broken and should only be used for non-security checksums.