Posted January 4Jan 4 Write a program that checks the strength of a password based on the following criteria: Password Strength Rules: Must be at least 8 characters long. Must contain at least one uppercase letter. Must contain at least one lowercase letter. Must contain at least one number. Must contain at least one special character (e.g., !@#$%^&*()). Program Requirements: Accept user input for the password. Check the password against the rules and rate it as: Weak if it meets 1-2 rules. Moderate if it meets 3-4 rules. Strong if it meets all 5 rules. Provide feedback to the user on what the password is missing. Bonus: Implement a feature to generate a strong password if the userโs input is weak. Use regular expressions for efficient rule checking. Example Output: Enter your password: password123 Your password is Moderate. Suggestions: Add a special character to make it stronger. Happy coding! ๐ CodeName: Jessica ๐ป Linux Enthusiastย | ๐ Adventurerย | ๐ฆ Unicornย ๐ My Siteย | ๐ข Join the Forum ย
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now