Skip to content
Back to all categories

Disk & file encryption

Full-disk and file encryption for computers, phones and cloud folders: which tools to trust, how to set them up and where they fall short.

Last reviewed 路 10 entries

Encryption at rest protects your data when a device is lost, stolen, seized or left with someone else: a repair shop, a hotel room, a border officer. Without it, anyone who removes the drive or boots another system can read every file. With it, they see random data unless they have your passphrase or key.

It only helps while the data is locked. A running, unlocked computer gives up its contents as easily as an unencrypted one, and no encryption tool stops malware or someone forcing you to type the password. This guide prefers open-source tools whose design can be checked, and rates closed built-in systems lower, especially where they upload recovery keys to the vendor by default.

ToolVerdictPlatforms
VeraCryptRecommended
LUKS (cryptsetup)Recommended
FileVaultNot recommended
BitLockerNot recommended
CryptomatorRecommended
ageRecommended
GnuPGRecommended
7-ZipUse with caution
PicocryptUse with caution
Hat.shNot recommended

What encryption protects against

  • Lost or stolen devices. The most common case. With full-disk encryption and a strong passphrase, a powered-off laptop or phone reveals next to nothing.
  • Seizure and searches. Police or border agents can copy an unencrypted drive in minutes. Encryption means they have to ask you for the key, and then the law of the country you are in decides what happens next (see Hidden volumes and compelled decryption).
  • Evil maid attacks. Someone with brief, unobserved access tampers with the unencrypted boot code or the hardware so that it captures your passphrase the next time you type it. Secure Boot, a pre-boot PIN and keeping devices with you reduce the risk.
  • Memory attacks. While a computer is on or asleep, the disk key sits in memory, where an attacker with physical access and the right tools may be able to extract it. Shut down or hibernate before leaving a device unattended.
  • Cloud providers. Files you sync are readable by the provider unless you encrypt them on your device first (see Files, folders and cloud storage).

Full-disk or file encryption?

Full-disk encryption covers a whole drive, including the operating system, temporary files, swap and hibernation files. You unlock it once at startup, and everything is protected when the device is off. File or container encryption protects chosen files or folders, for example before uploading them to cloud storage, sending them to someone or copying them to a USB stick. It does not protect the traces your system leaves elsewhere (thumbnails, temporary files, recent-file lists) unless the system drive is encrypted too. Most people should use both: full-disk encryption on every device, plus file encryption for data that leaves it.

Full-disk encryption: open source

Both tools encrypt a whole partition or drive and ask for your passphrase before the operating system starts, or before a data drive is mounted. Neither needs an account or sends keys anywhere.

Free, open-source successor to TrueCrypt. Encrypts the Windows system drive, whole partitions and USB drives, or creates encrypted container files that open on Windows, macOS and Linux. The old veracrypt.fr address now redirects to veracrypt.io.

June 2026: version 1.26.29 fixed a bug that could reveal hidden volumes created inside file containers with versions 1.26.6 to 1.26.28. If you rely on deniability, recreate those containers. Version 1.26.30 (October 2026) fixed further security issues.

Platform Support

WindowsmacOSLinuxCommand lineOpen sourceNo account

Advantages

  • Open source; audited by Quarkslab (2016) and Fraunhofer SIT for Germany's BSI (2020)
  • Hidden volumes and a hidden operating system for plausible deniability
  • Memory-hard Argon2id key derivation for non-system volumes since 1.26.29 (June 2026)
  • Containers and encrypted drives work across Windows, macOS and Linux
  • No account or online service involved

Drawbacks

  • System (boot drive) encryption is Windows-only and not supported on Windows on ARM
  • Many options; deniability is easy to undermine by mistake
  • No official mobile apps
  • macOS needs a third-party FUSE layer (macFUSE or FUSE-T)
  • Can go a year between releases (May 2025 to June 2026)

LUKS (cryptsetup)

Recommended
LUKS (cryptsetup) website (opens in a new tab)

The standard disk encryption format on Linux, managed with the cryptsetup tool. When a Linux installer offers to encrypt the disk, it almost always means LUKS.

Platform Support

LinuxCommand lineOpen sourceNo account

Advantages

  • Open source (GPLv2+) with regular releases (2.8.8, September 2026)
  • LUKS2 uses memory-hard Argon2id by default to slow passphrase guessing
  • Multiple key slots: passphrases, key files, FIDO2 keys or a TPM
  • Uses the kernel's hardware-accelerated AES

Drawbacks

  • Linux only; Windows and macOS cannot open LUKS volumes natively
  • Command-line tools outside the installer
  • TPM-only automatic unlock can be bypassed with brief physical access; add a PIN
  • A damaged header makes the data unrecoverable unless you backed it up

Built-in encryption: macOS and Windows

FileVault and BitLocker are convenient and far better than no encryption at all. Their code is closed, so outside experts cannot check how keys are handled, and both can tie disk recovery to the vendor's account system: BitLocker does so by default on personal PCs, FileVault as an option. That is why they rate below the open-source tools here.

FileVault

Not recommended
FileVault website (opens in a new tab)

Apple's full-disk encryption for macOS. On Macs with Apple silicon or a T2 chip, storage is always encrypted; turning FileVault on makes the key depend on your login password. It is the only practical way to encrypt a Mac's startup disk.

Platform Support

macOS

Advantages

  • Built in; keys are handled inside the Secure Enclave on Apple silicon and T2 Macs
  • Uses the hardware AES engine
  • You can keep a recovery key yourself instead of using iCloud

Drawbacks

  • Closed source: the implementation cannot be independently reviewed
  • Optional iCloud account unlock ties disk access to your Apple account
  • With FileVault off, the disk key is protected only by the hardware, not your password
  • Recovery key is stored in your keychain and syncs if iCloud Keychain is on

BitLocker

Not recommended
BitLocker website (opens in a new tab)

Microsoft's full-disk encryption for Windows. On many PCs it switches on automatically as "device encryption", and the recovery key is uploaded to the Microsoft account you sign in with.

January 2026: Microsoft gave the FBI BitLocker recovery keys for three seized laptops, and told Forbes it receives about 20 such requests a year. Keys stored in a Microsoft account can be handed over this way.

Platform Support

Windows

Advantages

  • Built in; Home editions get automatic device encryption on supported hardware
  • Supports a pre-boot PIN on top of the TPM (Pro, Enterprise and Education)
  • Hardware-accelerated mode with XTS-AES-256 on some new PCs (late 2025)

Drawbacks

  • Closed source
  • Recovery key uploaded to your Microsoft account by default on personal PCs
  • Microsoft has handed recovery keys to the FBI under a warrant
  • Default TPM-only unlock can be bypassed with physical access and hardware tools
  • YellowKey (2026): physical-access bypass via the recovery environment; patched June 2026
  • On PCs with only local accounts, automatic device encryption leaves the key unprotected

Files, folders and cloud storage

These tools encrypt individual files, folders or archives. Use them for files you upload to cloud storage, send to someone or carry on a USB stick, and on top of full-disk encryption for your most sensitive data. For cloud services that encrypt end to end themselves, see Cloud storage.

Encrypts a folder (a "vault") inside Dropbox, Google Drive, OneDrive or any other synced folder, file by file, so the cloud provider only stores encrypted data. Made by Skymatic GmbH in Bonn, Germany.

Platform Support

WindowsmacOSLinuxAndroidiOSOpen sourceNo account

Advantages

  • Open source (GPLv3); desktop app free
  • Encrypts file contents and file names with AES-256
  • Works with almost any sync service, because each file is encrypted separately
  • Android licence can be bought with Monero or cash through the reseller ProxyStore

Drawbacks

  • File sizes, timestamps and the number of files stay visible to the cloud provider
  • Mobile apps are read-only until you buy a licence for each platform
  • Audits linked from its website date from 2016 and 2017
  • Does not hide that you use Cryptomator

Small, modern command-line tool and file format for encrypting files with a passphrase or to someone's public key. A deliberately simple replacement for using PGP on files.

Platform Support

WindowsmacOSLinuxCommand lineOpen sourceNo account

Advantages

  • Open source, with no configuration options to get wrong
  • Hybrid post-quantum keys (ML-KEM-768 with X25519) since v1.3.0 (December 2025)
  • Can encrypt to SSH keys, or to YubiKeys through a plugin
  • Compatible implementations in Go, Rust (rage) and TypeScript

Drawbacks

  • Command line only; no official graphical app
  • Encrypts but does not sign, so it cannot prove who made a file
  • Post-quantum public keys are about 2,000 characters long

The long-standing free implementation of OpenPGP. Encrypts files to public keys or with a passphrase, and can sign them so recipients can check who sent them. Gpg4win packages it for Windows.

GnuPG 2.5 became the stable series in December 2025, and the 2.4 series was given six months until end of life. Update if your system still ships 2.4.

Platform Support

WindowsmacOSLinuxCommand lineOpen sourceNo account

Advantages

  • Open source (GPL); packaged by every major Linux distribution
  • Encrypts and signs, so recipients can verify the sender
  • Version 2.5, stable since December 2025, adds post-quantum Kyber (ML-KEM) encryption
  • Works offline with no account

Drawbacks

  • Complex, with many options and legacy defaults that are easy to misuse
  • OpenPGP has split: GnuPG backs LibrePGP, a rival to the IETF's RFC 9580 (2024)
  • For plain file encryption, age does the same job with far less to get wrong

7-Zip

Use with caution
7-Zip website (opens in a new tab)

Free archiver whose own .7z format can protect files and file names with AES-256 behind a password. A practical way to send someone an encrypted bundle, if you change the defaults.

Platform Support

WindowsmacOSLinuxCommand lineNo account

Advantages

  • Free; source code mostly under the LGPL
  • .7z archives use AES-256; header encryption also hides file names
  • Windows app plus Linux and macOS command-line versions

Drawbacks

  • File-name encryption is off by default; tick "Encrypt file names"
  • ZIP output defaults to weak ZipCrypto; choose AES-256 or use .7z
  • Password stretching uses SHA-256, not a memory-hard function: use a long passphrase
  • Over a dozen security fixes for opening archives since mid-2025; no automatic updates

Picocrypt

Use with caution
Picocrypt website (opens in a new tab)

Small, portable app for encrypting files and folders with XChaCha20 and Argon2id. Its developer archived it in September 2025 and no longer updates it.

Read-only since 7 September 2025. Files you already encrypted stay readable with the final release, but plan a move to a maintained tool such as age or Cryptomator.

Platform Support

WindowsmacOSLinuxOpen sourceNo accountAudited

Advantages

  • Open source; audited by Radically Open Security (2024)
  • Modern algorithms (XChaCha20, Argon2id) and a very simple interface

Drawbacks

  • Archived: no further bug or security fixes
  • The community fork Picocrypt NG is not endorsed by the original author
  • Picocrypt NG's new file format is not covered by the 2024 audit

Hat.sh

Not recommended
Hat.sh website (opens in a new tab)

Browser-based file encryption app built on libsodium. Its code has not changed since June 2022, and its main domain no longer serves the app.

As of October 2026, hat.sh redirects to a domain-parking page. Do not trust a site at that address with files or passwords.

Platform Support

WebNo account

Advantages

  • Encryption ran locally in the browser using libsodium

Drawbacks

  • No commits since June 2022
  • The hat.sh domain now shows a domain-parking page
  • A web app loads fresh code from whoever controls the domain on every visit

Phones and tablets

iPhones and Android phones encrypt their storage once you set a screen lock; there is nothing to install. Android has required file-based encryption on all devices launched with Android 10 or later. How much an attacker can get depends mostly on your passcode and on what state the phone is in.

Before and after first unlock

After a restart, most data stays encrypted until you enter your passcode for the first time. This state is called BFU (before first unlock). Once you have unlocked the phone, many keys stay in memory even after the screen locks again, so apps can keep working in the background. This is AFU (after first unlock). On iPhone, data from third-party apps is protected only until first unlock by default, and Android's credential-encrypted storage likewise opens at the first unlock. A phone in AFU state gives forensic tools far more to work with; see Digital forensics.

  • Use a long passcode. Phones limit guessing in hardware, but a longer passcode still helps if those limits are ever bypassed. An alphanumeric passcode is stronger than a short PIN.
  • Restart or power off the phone when it may be taken from you, for example before a border crossing or a protest. GrapheneOS can restart a locked phone automatically; the timer is 18 hours by default and can be shortened.
  • Turn off fingerprint and face unlock in risky situations. EFF notes that fingerprints are less protected than passwords, both legally and technically.
  • Encrypt files before they go to cloud backups you do not control, for example with Cryptomator.

Hidden volumes and compelled decryption

Encryption does not help if you can be made to hand over the password. Some countries make refusal a crime: in the UK, knowingly failing to comply with a decryption notice under section 49 of the Regulation of Investigatory Powers Act carries up to two years in prison, or five in national security and child indecency cases. In the US, courts are split on whether the Fifth Amendment protects you from being forced to reveal a password. Laws differ widely, so check the rules where you live and where you travel.

How VeraCrypt hidden volumes work

An encrypted VeraCrypt volume looks like random data. A hidden volume sits inside the free space of an ordinary (outer) volume and has its own password. The outer password opens decoy files; the hidden password opens the real ones, and it should not be possible to prove that the hidden volume exists. VeraCrypt can also hide a whole Windows installation behind a decoy system. See VeraCrypt's plausible deniability documentation.

Algorithms in plain language

You rarely need to change the defaults. Every tool in this guide uses well-studied ciphers; in practice, data is lost through weak passphrases, badly stored keys and bugs in the software around the cipher, not through broken algorithms.

TermWhat it isWhere you meet it
AES-256The worldwide standard cipher. Fast because most computers and phones accelerate it in hardware.BitLocker, FileVault, LUKS, VeraCrypt, Cryptomator, 7-Zip, Android
Serpent, TwofishFinalists in the competition that chose AES. Serpent was designed with a larger safety margin; both are slower than AES on hardware that accelerates AES.VeraCrypt, alone or in cascades
CascadeEncrypting with two or three ciphers in a row, so data stays safe if one of them is ever broken. Costs speed; no practical break of AES is known.VeraCrypt (for example AES-Twofish-Serpent)
ChaCha20, XChaCha20Fast ciphers that need no special hardware, usually paired with Poly1305 to detect tampering.age, Picocrypt
XTSThe usual mode for disk encryption. It hides contents but does not detect changes made to the encrypted disk.BitLocker, LUKS, VeraCrypt, Android
PBKDF2, Argon2idKey derivation: turns your passphrase into a key and deliberately slows down guessing. Argon2id also needs lots of memory, which makes mass guessing on graphics cards costlier.LUKS2 (Argon2id by default), VeraCrypt (PBKDF2, Argon2id optional), Picocrypt

What about quantum computers?

Quantum computers threaten public-key cryptography, not well-sized symmetric ciphers. The UK's NCSC says symmetric algorithms with at least 128-bit keys, such as AES, can continue to be used, and AES-256 adds margin. Disk encryption unlocked with a passphrase is therefore fine. Files encrypted to someone's public key are different: data recorded today could be decrypted later if large quantum computers arrive. Both age (since v1.3.0) and GnuPG (2.5 series) now offer hybrid post-quantum encryption.

Practical tips

  • Encrypt before you store sensitive data. Deleting files from an SSD or flash drive does not reliably erase them, because the drive moves data around internally. Starting with an encrypted drive avoids the problem.
  • Use a passphrase of six or more random words for disk encryption, generated with dice or a password manager rather than invented. See Passwords.
  • Add a pre-boot PIN or passphrase. TPM-only unlocking, the BitLocker default and common on Linux setups that unlock automatically, boots the computer without you, and has repeatedly been shown to be bypassable with physical access.
  • Shut down or hibernate before leaving a device. Sleep keeps the disk key in memory. Microsoft itself advises hibernating or shutting down before a device leaves your control.
  • Store recovery keys offline, printed or on a USB drive kept somewhere safe, and not in the cloud account of the company that makes the encryption.
  • Keep encrypted backups in more than one place, and test that you can restore them. A failed drive or a forgotten passphrase means the data is gone for good. For LUKS, also back up the header with cryptsetup luksHeaderBackup.
  • Encrypt external drives and USB sticks too. They are the easiest to lose, and Windows device encryption does not cover them.
  • Do not rely on a drive's built-in hardware encryption alone. In 2018, researchers found that many self-encrypting SSDs could be read without the password. Use software encryption on top.
  • Keep encryption software updated. VeraCrypt 1.26.29 added support for Microsoft's 2023 Secure Boot certificates, and 1.26.30 asks you to recreate the Rescue Disk after bootloader certificate changes. Windows system-encryption users should update before major Windows feature updates.

Common mistakes

  • Assuming a locked screen means encrypted data. While the computer is on, the disk is unlocked.
  • Not knowing where your recovery key is. On many Windows PCs it was uploaded to a Microsoft account during setup; on local-account PCs, automatic encryption may never have protected the key at all.
  • Keeping a large VeraCrypt container in a sync folder. Sync services may re-upload the whole file after every change, and older versions kept by the service can undermine hidden-volume deniability. Use Cryptomator for cloud folders.
  • Using ZIP encryption with default settings. Classic ZipCrypto is weak, and standard ZIP encryption does not hide file names.
  • Forgetting the copies. Thumbnails, temporary files and cloud backups can survive outside an encrypted container. Full-disk encryption covers the local ones; cloud copies need their own protection.
  • Relying on hidden volumes without reading their requirements. See Hidden volumes and compelled decryption.
  • Keeping only one copy of the key or passphrase. Strong encryption has no reset button.

Further reading