Skip to content

Hash

The result of a hash function: arbitrary data is input, and a fixed-length string is output. This is the 'fingerprint' of the data.

Properties

  • Determinism — the same input always produces the same hash;
  • Fixed Length — independent of the size of the input;
  • Sensitivity — the slightest change in input completely changes the hash.
  • MD5 — fast, but vulnerable to collisions;
  • SHA-1, SHA-256 — more secure.

Usage

  • File integrity checks;
  • Password storage;
  • Quick check if data has changed;
  • Cache and deduplication.

See Also

← All Terms