read_secret

This commit is contained in:
Marc Beninca 2024-11-20 10:06:58 +01:00
parent 4cf5783562
commit c2a3a130d1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -13,10 +13,10 @@ not() {
} }
read_passphrase() { read_passphrase() {
read_secret "PassPhrase: " sh_read_secret "PassPhrase: "
} }
read_secret() { sh_read_secret() {
local prompt="${1}" local prompt="${1}"
local secret local secret
printf "%s" "${prompt}" 1>&2 printf "%s" "${prompt}" 1>&2