Skip to content

Instantly share code, notes, and snippets.

@mdPlusPlus
Created April 11, 2021 12:21
Show Gist options
  • Save mdPlusPlus/7eb5f9d43c5dfd4ce9faabf76f32585b to your computer and use it in GitHub Desktop.
Save mdPlusPlus/7eb5f9d43c5dfd4ce9faabf76f32585b to your computer and use it in GitHub Desktop.
cryptsetup LUKS2
cryptsetup luksFormat \
--type luks2 \
--cipher aes-xts-plain64 \
--key-size 512 \
--hash sha256 \
DEVICE [KEYFILE]
cryptsetup luksAddKey \
--type luks2 \
[-d EXISTING_KEYFILE] \
DEVICE [KEYFILE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment