Update luks.sh

main
Bensuperpc 12 months ago committed by GitHub
parent c1ad6e1f74
commit a1ae8bfcd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,7 +47,7 @@ if (( $# == 2 )); then
UUID=$(uuidgen)
echo "UUID: ${UUID}"
sudo umount "$PARTITION" || true
sudo cryptsetup -v --type luks2 --pbkdf argon2id --cipher aes-xts-plain64 --key-slot 1 --key-size 512 --hash sha512 --iter-time 2000 --use-urandom --verify-passphrase luksFormat --label="$LABEL" "$PARTITION"
sudo cryptsetup -v --type luks2 --pbkdf argon2id --cipher aes-xts-plain64 --key-slot 1 --key-size 512 --integrity hmac-sha512 --hash sha512 --iter-time 2000 --use-urandom --verify-passphrase luksFormat --label="$LABEL" "$PARTITION"
sudo cryptsetup luksHeaderBackup "$PARTITION" --header-backup-file "$LABEL-luks_header_backup"
sudo cryptsetup -v luksOpen "$PARTITION" "${UUID}"

Loading…
Cancel
Save