From a527831d83dff056f31c5788393fe17ada46d142 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest <68295743+Szwendacz99@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:52:45 +0200 Subject: [PATCH] update cryptsetup options --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0e8bf53..44e555f 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,8 @@ For setting up different locale than pl check official guide ### ----------------- encryption (optional) ------------------ ### Setup the encryption of the system, don't use letters outside en-us keyboard like ąęć etc. for password -### Grub should now support luks2 -## pbkdf-memory is given in KB, and here it is about 4GiB (it is maximum amount allowed by cryptsetup, check if you have enaugh RAM) ->cryptsetup -c=aes-xts-plain64 --key-size=512 --hash=sha512 --iter-time=3000 --pbkdf=argon2id --pbkdf-parallel=4 --pbkdf-memory=4194304 --use-random luksFormat --type=luks2 /dev/sdX2 +### Grub have partial support for luks2 now, but can handle only pbkdf2 +>cryptsetup -c=aes-xts-plain64 --key-size=512 --hash=sha512 --iter-time=3000 --pbkdf=pbkdf2 --use-random luksFormat --type=luks2 /dev/sdX2 >cryptsetup luksOpen /dev/sdX2 MainPart