Last active
August 29, 2015 14:27
-
-
Save azakordonets/9bf65036606b3c09f3c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| # Passwords will contain at least (1) upper case letter | |
| # Passwords will contain at least (1) lower case letter | |
| # Passwords will contain at least (1) number or special character | |
| # Passwords will contain at least (8) characters in length | |
| # Password maximum length is not limited | |
| def test_password(password): | |
| return re.match(r'?=^.{10,64}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$', password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment