Jump to content

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 69
  • Created
  • Last Reply

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.