// what EFS actually doesPer-file encryption, tied to a user.
Distinct from BitLocker, yet frequently confused with it.
Unlike BitLocker, which encrypts an entire volume and allows unlocking during bootup, Encrypting File System encrypts single files & folders, and it does so based on the certificate of the user who encrypted them.
Each file gets a random symmetric key, called the File Encryption Key (FEK), which is used to encrypt the file's content. The File Encryption Key is encrypted using the user's public key and stored as metadata on the file. When opening the file, the File Encryption Key is decrypted using the user's private key and then the file's content is decrypted using the File Encryption Key.
Which leads to the problem: lose access to that user’s private key — e.g., due to a deleted profile; or a rebuild on their machine; or an ex-employee; or corruption of a certificate store — and those files are unreadable even though they are sitting in plain sight in the normal file system with typical filenames.