cryptsetup
Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes. More information: <https://gitlab.com/cryptsetup/cryptsetup/>.
Install
- All systems
-
curl cmd.cat/cryptsetup.sh
- Debian
-
apt-get install cryptsetup-bin - Ubuntu
-
apt-get install cryptsetup-bin -
Alpine
-
apk add cryptsetup - Arch Linux
-
pacman -S cryptsetup - Kali Linux
-
apt-get install cryptsetup-bin - CentOS
-
yum install cryptsetup - Fedora
-
dnf install cryptsetup - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install cryptsetup-bin - Raspbian
-
apt-get install cryptsetup-bin - Docker
-
docker run cmd.cat/cryptsetup cryptsetuppowered by Commando
Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes. More information: <https://gitlab.com/cryptsetup/cryptsetup/>.
-
Initialize a LUKS volume (overwrites all data on the partition):
cryptsetup luksFormat /dev/sda1 -
Open a LUKS volume and create a decrypted mapping at `/dev/mapper/target`:
cryptsetup luksOpen /dev/sda1 target -
Remove an existing mapping:
cryptsetup luksClose target -
Change the LUKS volume's passphrase:
cryptsetup luksChangeKey /dev/sda1
© tl;dr; authors and contributors