Skip to content

Commit 401446d

Browse files
authored
Merge pull request #54 from wolfgangw/patch-1
Harden ingest of user-provided passphrase
2 parents b502d26 + 9e7841c commit 401446d

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)