Encrypting partitions with Linux Unified Key Setup (LUKS)
Being able to encrypt individual files can be handy, especially if you want to share sensitive files with other users. But, other types of encryption are also available:
- Block encryption: We can use this for either whole-disk encryption or to encrypt individual partitions.
- File-level encryption: We’d use this to encrypt individual directories without having to encrypt the underlying partitions.
- Containerized encryption: Using third-party software that doesn’t come with any Linux distribution, we can create encrypted, cross-platform containers that can be opened on either Linux, macOS, or Windows machines.
Linux Unified Key Setup (LUKS) falls into the first category. It’s built into pretty much every Linux distribution, and directions for use are the same for each. LUKS is now the default encryption mechanism for pretty much all of the newest Linux distros.
You...