{
  "slug": "luks2-reencryption",
  "term": "LUKS2 reencryption",
  "aliases": [
    "LUKS2 re-encryption"
  ],
  "definition": "LUKS2 reencryption transforms an encrypted data area in place to change its volume key or encryption parameters.",
  "note": "Under cryptsetup v2.8.1's default mapping detection, an active mapping selects online operation; otherwise reencryption runs offline. A passphrase change alone does not replace the volume key. The --keep-key option explicitly preserves it during parameter changes. [reencrypt] [faq] [options]\n\nAbrupt interruption can require recovery during open or repair; continuing the remaining transformation uses reencrypt. Recovering the interrupted state is not completing the migration. [reencrypt]\n\nThe default checksum resilience mode records ciphertext-sector checksums for the working region and requires atomic device-sector writes. Journal mode saves that region in the binary area; none supplies no crash protection. These are migration-recovery mechanisms, not persistent payload authentication or an independent backup. [options]\n\nThe format's reencrypt keyslot reserves recovery information, not a decryption key. Its area is temporary and is wiped on completion; it is distinct from a credential-bearing luks2 keyslot. [luks2-format]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "In-place encryption and decryption transitions can expose plaintext; reliable backups remain necessary.",
      "citationIds": [
        "reencrypt"
      ]
    }
  ],
  "related": [
    "luks",
    "luks-keyslot",
    "luks-header-backup",
    "key-rotation",
    "dm-crypt",
    "authenticated-encryption",
    "backup"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "reencrypt",
      "title": "cryptsetup v2.8.1: reencrypt, LUKS2 operation and recovery",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.8.1/man/cryptsetup-reencrypt.8.adoc",
      "accessed": "2026-12-05"
    },
    {
      "id": "options",
      "title": "cryptsetup v2.8.1: keep-key, resilience and resume-only options",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.8.1/man/common_options.adoc",
      "accessed": "2026-12-05"
    },
    {
      "id": "faq",
      "title": "cryptsetup v2.8.1 FAQ: passphrase and volume-key distinction, sections 1.2 and 6.15",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.8.1/FAQ.md",
      "accessed": "2026-12-05"
    },
    {
      "id": "hesela-reencryption",
      "title": "Hesela: What LUKS2 reencryption recovery establishes",
      "url": "https://hesela.com/analyses/checksums-identity-and-lost-writes/#luks2-reencryption",
      "accessed": "2026-12-05"
    },
    {
      "id": "luks2-format",
      "title": "Milan Broz: LUKS2 On-Disk Format Specification 1.1.4, sections 3.2.2 and 4.9",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.8.1/docs/on-disk-format-luks2.pdf",
      "accessed": "2026-12-05"
    }
  ],
  "updated": "2026-12-05",
  "provenance": [
    "Version-pinned documentation synthesis, not a reencryption or power-loss experiment. No device, key or ciphertext was modified.",
    "The three named resilience modes describe the ordinary case; implicit datashift has additional constraints. [reencrypt] [options]"
  ]
}
