Hard

Enterprise-Grade Password Strength Validator

Description

Develop a robust password validation function that enforces enterprise-level security standards for authentication systems.

Security Validation Criteria

Length Requirements

  • Minimum 12 characters long
  • Ensures substantial password complexity

Complexity Dimensions

Must contain at least:

  • One uppercase letter
  • One lowercase letter
  • One numeric character
  • One special character

Security Goals

  • Prevent weak credential selection
  • Mitigate common password vulnerabilities
  • Enhance authentication system resilience

Examples:

Strong Passwords:
- StrongPass123!
- C0mpl3x_P@ssw0rd
āŒ Weak Passwords:
- short
- onlyletters
- NO_COMPLEXITY123

Potential Use Cases

  • Financial platform authentication
  • Cloud service credential management
  • Enterprise security systems
  • User registration workflows

window code 2Test Cases

Input:

"StrongPass123!"

Expected Output:

{
  "isValid": true,
  "feedback": "Excellent password",
  "strengthScore": 6
}

Premium Question

This question is only available to premium users.

Looking to level up your coding skills? Upgrade to Premium to access premium questions, personalized learning paths, reports, and more!