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."
|
echo "❌ REJECTED: Passphrase is too short ($pass_len characters). Minimum length required is 35."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo " [PASS] Length verification satisfied ($pass_len characters)."
|
echo "[PASS] Length verification satisfied ($pass_len characters)."
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# GATE 2: Local Dictionary Check (cracklib-check)
|
# GATE 2: Local Dictionary Check (cracklib-check)
|
||||||
@@ -144,7 +144,7 @@ audit_passphrase() {
|
|||||||
echo "❌ REJECTED by cracklib-check: $cracklib_result"
|
echo "❌ REJECTED by cracklib-check: $cracklib_result"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo " [PASS] Local dictionary and structural complexity audit clear."
|
echo "[PASS] Local dictionary and structural complexity audit clear."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
@@ -251,14 +251,6 @@ printf "auditing attribution passphrase"
|
|||||||
audit_passphrase "$attribution_passphrase" "$attribution_passphrase_check"
|
audit_passphrase "$attribution_passphrase" "$attribution_passphrase_check"
|
||||||
checkcode $?
|
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"
|
printf "unsetting attribution_passphrase_check"
|
||||||
unset attribution_passphrase_check > /dev/null 2>&1
|
unset attribution_passphrase_check > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
@@ -310,13 +302,6 @@ printf "auditing keystore passphrase..."
|
|||||||
audit_passphrase "$keystore_passphrase" "$keystore_passphrase_check"
|
audit_passphrase "$keystore_passphrase" "$keystore_passphrase_check"
|
||||||
checkcode $?
|
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"
|
printf "unsetting keystore passphrase check"
|
||||||
unset keystore_passphrase_check > /dev/null 2>&1
|
unset keystore_passphrase_check > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|||||||
Reference in New Issue
Block a user