Jump to content

Programming Challenge: Enterprise Password Policy Enforcer (Jan 18, 2025)

Featured Replies

Posted

Challenge:

Create a Password Policy Enforcer that checks whether a given password meets enterprise security standards. The program should validate passwords based on complexity requirements and provide feedback to users.

Basic Requirements:

  1. Validate that a password meets the following enterprise security rules:

    • At least 12 characters long

    • Contains at least one uppercase letter

    • Contains at least one lowercase letter

    • Contains at least one number

    • Contains at least one special character (!@#$%^&*()_+-=[]{}|;:'",.<>?/)

  2. Provide feedback to the user if the password fails any checks.

  3. Allow users to generate a strong password if their input is weak.

Bonus Features:

Add configurable rules (e.g., allow admins to set custom password policies).
Implement a password strength meter (e.g., "Weak", "Moderate", "Strong").
Support real-time validation where users see what's missing as they type.
Store previous passwords in a file and prevent password reuse.
Extend it to integrate with Active Directory or LDAP for enterprise environments.

Example Output:

Enter your password: P@ssword1
Weak password! Missing at least 12 characters.

Enter your password: StrongP@ssw0rd123!
Strong password! Meets all security requirements.
  • Views 147
  • Created
  • Last Reply

Create an account or sign in to comment

Important Information

Terms of Use Privacy Policy Guidelines We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.