this is my life now. infinite frustration cast upon me by an evil curse \
This commit is contained in:
@@ -127,7 +127,7 @@ audit_passphrase() {
|
||||
echo "❌ REJECTED: Passphrase is too short ($pass_len characters). Minimum length required is 35."
|
||||
return 1
|
||||
fi
|
||||
echo " [PASS] Length verification satisfied ($pass_len characters)."
|
||||
echo "[PASS] Length verification satisfied ($pass_len characters)."
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# GATE 2: Local Dictionary Check (cracklib-check)
|
||||
@@ -144,7 +144,7 @@ audit_passphrase() {
|
||||
echo "❌ REJECTED by cracklib-check: $cracklib_result"
|
||||
return 1
|
||||
fi
|
||||
echo " [PASS] Local dictionary and structural complexity audit clear."
|
||||
echo "[PASS] Local dictionary and structural complexity audit clear."
|
||||
fi
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
@@ -251,14 +251,6 @@ printf "auditing attribution passphrase"
|
||||
audit_passphrase "$attribution_passphrase" "$attribution_passphrase_check"
|
||||
checkcode $?
|
||||
|
||||
if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then
|
||||
echo -e "\n\n\033[0;31mAttribution passphrases do not match! Exiting!\033[0m\n\n"
|
||||
exit 1
|
||||
else
|
||||
echo -e "attribution_passphrase: \033[0;32mOK!\033[0m"
|
||||
echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt"
|
||||
fi
|
||||
|
||||
printf "unsetting attribution_passphrase_check"
|
||||
unset attribution_passphrase_check > /dev/null 2>&1
|
||||
checkcode $?
|
||||
@@ -310,13 +302,6 @@ printf "auditing keystore passphrase..."
|
||||
audit_passphrase "$keystore_passphrase" "$keystore_passphrase_check"
|
||||
checkcode $?
|
||||
|
||||
if [[ "$keystore_passphrase" != "$keystore_passphrase_check" ]]; then
|
||||
echo -e "\n\n\033[0;31mKeystore passphrases do not match! Exiting!\033[0m\n\n"
|
||||
exit 1
|
||||
else
|
||||
echo -e "keystore passphrases... \e[1;32mOK!\e[0m"
|
||||
fi
|
||||
|
||||
printf "unsetting keystore passphrase check"
|
||||
unset keystore_passphrase_check > /dev/null 2>&1
|
||||
checkcode $?
|
||||
|
||||
Reference in New Issue
Block a user