Hash
A calculation that turns any data into a short, fixed-length value that is always the same for the same input.
A hash function turns data of any size into a short, fixed-length value called a hash. The same input always gives the same hash, and a good cryptographic hash such as SHA-256 makes it practically impossible to work back to the input or to find two inputs with the same hash (a collision). Hashes are used to check that files haven’t changed, to store passwords, and as a short fingerprint of a key; a checksum is a simpler cousin that catches accidents but not tampering. A hash doesn’t hide an input that can be guessed: anyone can hash each likely value and compare. Older hashes such as SHA-1 are no longer considered safe.
See also
- Public-key cryptography
- Encryption
- Handshake
- Key rotation
- Offline password cracking
- TLS
- VPN
- WireGuard
Sources
- Hash function (glossary)NIST CSRCofficial healthy, checked 2026-11-15 archived copy
- FIPS 180-4: Secure Hash Standard (SHS)NIST healthy, checked 2026-11-15 archived copy
- Hash functionWikipedia healthy, checked 2026-11-15 archived copy
In security catalogues
- CWE-328 Use of Weak HashCWE healthy, checked 2026-11-15 archived copy