cryptsetup
Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes. tldr-pages
On Linux
Linux
Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes. Some subcommands such as luksFormat have their own usage documentation.
Initialize a LUKS volume with a passphrase (overwrites all data on the partition)
cryptsetup luksFormat /dev/sdXYIdentifyOpen a LUKS volume and create a decrypted mapping at /dev/mapper/mapping_name
cryptsetup open /dev/sdXY mapping_nameIdentifyDisplay information about a mapping
cryptsetup status mapping_nameIdentifyRemove an existing mapping
cryptsetup close mapping_nameIdentifyChange a LUKS volume's passphrase
cryptsetup luksChangeKey /dev/sdXYIdentifyDisplay LUKS header information and key slot metadata of an encrypted device
cryptsetup luksDump /dev/sdXYIdentify