maxdraco

Hash

A calculation that turns any data into a short, fixed-length value that is always the same for the same input.

Concept Cryptography

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 Cryptography that uses a pair of keys: a public one you can share and a private one you keep secret.
  • Encryption Scrambling data with a key so only someone holding the right key can read it.
  • Handshake The opening exchange of messages in which two devices agree to talk and set up how.
  • Key rotation Replacing a password, key or token with a new one and retiring the old one.
  • Offline password cracking Guessing a password by testing candidates against a stolen copy of something derived from it, away from the system it protects.
  • TLS Transport Layer Security: the encryption that protects data on its way across a network (the S in HTTPS).
  • VPN An encrypted tunnel that joins a device to a network it isn't physically on.
  • WireGuard Simple, fast, modern VPN protocol and software.

Sources

  1. Hash function (glossary)NIST CSRCofficial healthy, checked 2026-11-15 archived copy
  2. FIPS 180-4: Secure Hash Standard (SHS)NIST healthy, checked 2026-11-15 archived copy
  3. Hash functionWikipedia healthy, checked 2026-11-15 archived copy

In security catalogues