A laptop that no longer starts, an external drive that is no longer recognised, a server volume that will not open: when the disk is encrypted, the failure comes with a second question, the key. Disk encryption (BitLocker on Windows, FileVault on macOS, LUKS on Linux) protects data from unauthorised reading, including by whoever is trying to recover it. This article explains how it works, what the recovery key is for, what laboratory work can do, and what it cannot.

How disk encryption protects data

An encrypted disk does not hold your files in plain form: it holds data transformed by an algorithm, usually AES. BitLocker, for example, uses AES with 128-bit or 256-bit keys, according to Microsoft’s documentation. Without the matching key, the contents of the disk are a stream of meaningless bytes.

To make this usable day to day, systems stack several keys. With BitLocker, data is encrypted by a full volume encryption key, which is itself encrypted by a volume master key. That master key is in turn protected by one or more “protectors”: the computer’s TPM chip, a PIN, a password, a key on a USB drive, or the recovery key. The principle is the same elsewhere: with LUKS, the passphrase unlocks a volume key chosen at random when the disk was created, and with FileVault, each APFS volume has its own key, protected by the user’s password and by a hardware identifier in the chip.

Several protectors can open the same volume: this is precisely what allows a recovery key to exist.

Diagram of the access chain of an encrypted disk, left to right: protectors (password, PIN, TPM chip or recovery key), volume master key, data encryption key, then readable data. The first three links are marked as secret. Two boxes show where a laboratory can step in: upstream, repairing the physical media and cloning it (the clone stays encrypted); once the volume is unlocked, rebuilding the encryption metadata, the partitions and the file system. A note states that the laboratory does not replace any secret link in the chain.

The recovery key: a fallback planned in advance

The recovery key is a fallback created when encryption is turned on, for the case where the usual means of access stops working. Its format depends on the system:

  • BitLocker: a 48-digit recovery password, or a key file saved on removable media. Microsoft lists among the triggers for recovery a PIN entered wrongly too many times, a drive moved to another computer, a firmware (BIOS or UEFI) upgrade, or a cleared TPM.
  • FileVault: a 24-character recovery key, generated when FileVault is turned on. It can replace the password in macOS recovery or at the login window. It is kept in the keychain, and synchronised with iCloud if iCloud Keychain is used; otherwise the user must keep it somewhere safe (Apple documentation).
  • LUKS: the volume relies on key slots located in a header at the start of the disk: several passphrases can open the same volume key, and a backup of that header acts as a safety net.

Microsoft also describes a “key package”: combined with the recovery password, it allows portions of a BitLocker volume with damaged structures to be decrypted, using the dedicated repair tool. This package is not generated automatically and must have been exported before the failure.

Encryption that may be active without you having set it up

Many users discover encryption only when something fails. On Windows, Microsoft describes a feature called device encryption that turns BitLocker on automatically on eligible devices. Since Windows 11 version 24H2, the prerequisites tied to direct memory access (DMA) and to HSTI or Modern Standby have been removed, which makes more devices eligible. At the end of setup, the disk is encrypted with a key left in the clear (the equivalent of suspended BitLocker), then protection is finalised once the recovery key has been backed up.

Where the key is saved depends on the type of sign-in. For a device joined to Microsoft Entra ID or to an Active Directory domain, the key is stored in the directory. For a personal device, a Microsoft account with administrator rights is needed, and the key is then saved to that online account. If the device uses only local accounts, the documentation states that it stays unprotected even though the data is encrypted. These conditions vary with the configuration: the only reliable check is to look at the encryption status on your own machine.

On a Mac, Apple states that on Apple silicon and T2 Macs the internal volumes stay encrypted even when FileVault is off, their key being protected only by the chip’s hardware identifier. Turning FileVault on adds the user’s password to that protection.

Why nobody can decrypt without the key or password

This is not a limit of any tool: it is the purpose of encryption. Microsoft says it plainly in its FAQ: BitLocker is designed to make the encrypted drive unrecoverable without the required authentication. Apple states for its part that without valid credentials or a recovery key, the internal volumes remain encrypted, even if moved to another computer. The cryptsetup project FAQ (LUKS) points the same way: in most cases of lost access caused by a damaged header there is nothing that can be done for those affected, and overwriting the header, in part or in full, is the most common reason for permanent loss.

One simple principle follows: the laboratory works on the media and on the structures, not on the secret. There is no laboratory procedure that replaces a lost key. On a device protected by TPM and PIN, repeated random guesses may also lock access.

What a laboratory can and cannot do

The failure of an encrypted disk is handled in two stages: get a readable medium back, then use its contents with the key you hold. Encryption does not prevent the first stage.

  • Repair the physical medium. Failing read heads on a hard drive, the controller or memory of an SSD: the medium is made readable, whatever the contents of its sectors.
  • Clone the disk. A sector-by-sector copy, encrypted areas included, makes it possible to work on the clone and preserve the original. The clone stays encrypted: it unlocks with the same elements as the original.
  • Rebuild the structures. Once the volume is unlocked with your key or password, partition tables and the file system can be analysed and rebuilt as on an ordinary disk. For BitLocker, a key package exported beforehand and the recovery password make it possible to decrypt portions of a volume whose metadata is damaged.
  • Handle complex volumes. Encryption on a NAS or a RAID array may first require the array to be reassembled, as in a RAID rebuild, before the key even comes into play.

What remains impossible: decrypting data without the key, the password or an equivalent element, replacing a completely destroyed volume header, or finding a key that no longer exists anywhere. Not to be confused with encryption imposed by an attack: for files encrypted by malware, the situation is different and falls under ransomware recovery.

Hardware encryption on SSDs

Some drives encrypt data themselves using a dedicated circuit in the controller. Microsoft describes these encrypted hard drives: encryption is always on, the encryption key is generated by the drive and never leaves it, and authentication is checked by the drive before it unlocks, independently of the operating system. If that key is changed or erased, data encrypted with it is irrecoverable, the documentation states.

Two important points. First, Microsoft distinguishes encrypted hard drives that comply with specific protocols (TCG and IEEE 1667) from self-encrypting drives in general, which do not have those requirements: the presence of a hardware encryption feature does not say everything about how unlocking works. Second, if the relevant settings are not configured or are disabled, BitLocker uses software encryption even on a drive capable of encrypting itself. To know what really protects a given SSD, check the encryption status on the machine, not only the manufacturer’s data sheet.

For recovery, this means the controller is part of the access chain: feasibility depends on the model and on the failure, and can only be judged after a diagnosis.

Where to keep the recovery key

Microsoft asks that recovery information be stored securely, separately from the devices it protects. In practice:

  • Online account or directory. For an individual or a freelancer, the Microsoft account; for a company, Entra ID or Active Directory, with a defined recovery procedure. For FileVault, iCloud Keychain or a written copy of the key.
  • Paper copy or USB drive, away from the computer. A key saved only on the disk it protects would be of no use after a failure: it must exist somewhere other than on that disk.
  • A safe or protected password manager, with limited and documented access for companies.
  • A backup of the LUKS header, stored safely: the cryptsetup FAQ recommends it before any risky operation, while noting that it gives access to the data and must be protected.
  • Periodic checks. Make sure the stored key still exists and matches the volume: the identifier shown on the recovery screen helps find the right one.

A recovery key does not replace a data backup. If the disk is destroyed, the key is of no further use: the two protections complement each other.

With the key or without: what to do

In every case, avoid writing to the disk: no formatting, no full decryption, no reset or automatic file system repair, and no repeated random password attempts. The diagram below sums up the most common situations.

Decision tree with two branches. Starting question: do you have the password or the recovery key? Yes branch: is the disk readable? If yes, unlock it and copy the files to another medium; if no (physical failure or damaged structures), call a laboratory that repairs the medium, clones the disk, then unlocks the clone with your key. No branch: look for the key (Microsoft account, Entra ID or directory, iCloud account, paper, USB drive, LUKS header backup); if found, follow the yes branch; if it cannot be found, recovering the encrypted data is not possible, and only an unencrypted copy or a backup can help.

If the disk is readable and the key is available, copying the files to another medium is often enough. If the disk no longer responds while the key is available, a quick opinion from a specialist avoids making the failure worse: the laboratory repairs the medium, clones it, then works on the clone. If the key cannot be found, start with the places listed above: the key is sometimes held in an online account that is no longer in regular use.

Encryption is a protective choice, and it keeps its promise on both sides: it closes access to a third party, and it also closes the door on whoever loses the key. As long as the key exists, a failure is handled like that of an unencrypted disk, with one unlocking step more. A diagnosis shows which part of the chain is affected.