From 8faf4bc4ec38654841d4b552a447a0f0e2c0b942 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 23 Feb 2025 02:26:38 +0100 Subject: [PATCH] linux: improved luks encryption parameters --- wiki/linux/arch-linux/installation.md | 2 +- wiki/linux/dm-crypt.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/linux/arch-linux/installation.md b/wiki/linux/arch-linux/installation.md index fcb3a73..bdf7c9b 100644 --- a/wiki/linux/arch-linux/installation.md +++ b/wiki/linux/arch-linux/installation.md @@ -84,7 +84,7 @@ The right partition has the label `Linux filesystem`. For this guide this partition is assumed to be `/dev/sda2`. ```sh -cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2 +cryptsetup -c aes-xts-plain -s 512 -y -v luksFormat /dev/sda2 ``` Afterwards confirm with `YES`. Now you can assign a passphrase. diff --git a/wiki/linux/dm-crypt.md b/wiki/linux/dm-crypt.md index eaf34f6..b69394b 100644 --- a/wiki/linux/dm-crypt.md +++ b/wiki/linux/dm-crypt.md @@ -7,7 +7,7 @@ DM-Crypt can create and manage encrypted devices. ### Creating an Encrypted Devices To create a encrypted device simply run: -`cryptsetup -y -v luksFormat /dev/sda2`. +`cryptsetup -c aes-xts-plain -s 512 -y -v luksFormat /dev/sda2`. Where `/dev/sda2` is the device to be created. ### Create/Add a Key File to an encrypted volume