Use argon2id for the PBKDF

This commit is contained in:
Kevin MacMartin 2020-11-18 12:19:11 -05:00
parent 2f7067c728
commit d5610d4c32

View file

@ -111,7 +111,7 @@ function create_image {
# Initialize encryption on the image
while (( 1 )); do
if cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat "$loopdev"; then
if cryptsetup -c aes-xts-plain64 --pbkdf argon2id -y -s 512 luksFormat "$loopdev"; then
break
else
printf '%s' "${c_w}Failed to encrypt the image, press return to try again or ctrl+c to exit$c_c"