V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-07-25 16:45:03 +02:00
parent 967ddc54ed
commit b61eef5c74

View File

@@ -27,7 +27,7 @@ generate_salt() {
declare var_salt=""
while :; do
# shellcheck disable=SC2312
var_salt=$(tr -dc 'A-Za-z0-9' < /dev/random | head -c 16) || return "${ERR_GENERATE_SALT}"
var_salt=$(head -c 12 /dev/random | base64 | tr -dc 'A-Za-z0-9' | head -c 16) || return "${ERR_GENERATE_SALT}"
[[ ${#var_salt} -eq 16 ]] && break
done
printf '%s%b' "${var_salt}" "${NL}"