Check if a password meets strength requirements (8+ chars, uppercase, lowercase, number, special).
Code
General[[ ${#password} -ge 8 && "$password" =~ [a-z] && "$password" =~ [A-Z] && "$password" =~ [0-9] && "$password" =~ [@\$!%*?&] ]] && echo "true" || echo "false"Parameters
Password to check
Server
More Bash Snippets
Is Alpha Only
Check if a string contains only alphabetic characters.
Is Alphanumeric
Check if a string contains only letters and numbers.
Is Empty
Check if a value is empty.
Is Numeric
Check if a string represents a valid number.
Validate Email
Check if a string is a valid email address.
Validate Hex Color
Check if a string is a valid hex color code.