cryptsetup Command Examples

Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes. More information: https://gitlab.com/cryptsetup/cryptsetup/.

cryptsetup luksFormat {{/dev/sda1}}

cryptsetup luksOpen {{/dev/sda1}} {{target}}

cryptsetup luksClose {{target}}

cryptsetup luksChangeKey {{/dev/sda1}}