IT lexicon › Security › md5crypt

md5crypt

Security På svenska → Updated: 2026-11-09

The password hash with the $1$ prefix, written for FreeBSD in 1994 and still in use long after its author condemned it.

Classic Unix crypt was built on DES, which was both weak and caught up in US export controls. Poul-Henning Kamp therefore wrote a replacement for FreeBSD based on MD5: a salt of up to eight characters and a thousand rounds of hashing to make every guess more expensive. The $1$ prefix became the seed of what was later called the Modular Crypt Format.

Linux, Cisco and countless embedded systems picked it up. In 2012 Kamp himself declared md5crypt no longer safe — a thousand rounds was a lot in 1994 and nothing to a modern GPU — and asked everyone to migrate. It's still around anyway, because old hashes don't upgrade themselves.

← Back to the lexicon