LUKS is the standard Linux disk encryption format, managed by cryptsetup on top of dm-crypt. It is offered by most Linux installers and is actively maintained, with LUKS1 and LUKS2 headers. Several passphrases can unlock one volume key.
Overview
A LUKS volume starts with a header containing the magic LUKS 0xBA 0xBE, version, cipher name and mode, hash, payload offset, master key digest and up to 8 key slots. LUKS1 key slots use PBKDF2 and anti-forensic splitting. LUKS2 stores JSON metadata, supports Argon2 and additional segments.
History
Designed by Clemens Fruhwirth in 2004 for cryptsetup.
LUKS2 was introduced with cryptsetup 2.0 (2018).
Structures
Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.