Skip to content

Commit 9e7841c

Browse files
authored
Harden ingest of user-provided passphrase
1 parent b502d26 commit 9e7841c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configs/airootfs/root/configurator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ user_form() {
121121
done
122122

123123
# Hash the password using yescrypt
124-
password_hash=$(openssl passwd -6 "$password")
124+
password_hash=$(openssl passwd -6 pass:"$password")
125125

126126
full_name=$(gum input --placeholder "Used for git authentication (hit return to skip)" --prompt.foreground="#845DF9" --prompt "Full name> ")
127127
email_address=$(gum input --placeholder "Used for git authentication (hit return to skip)" --prompt.foreground="#845DF9" --prompt "Email address> ")

0 commit comments

Comments
 (0)