Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created June 20, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/4f6b218d7e79c0341b5f4dadd3c9701f to your computer and use it in GitHub Desktop.
Save Allwin12/4f6b218d7e79c0341b5f4dadd3c9701f to your computer and use it in GitHub Desktop.
from password_strength import PasswordPolicy
policy = PasswordPolicy.from_names(
strength=0.66 # need a password that scores at least 0.5 with its strength
)
print(policy.test('V3ryG00dPassw0rd?!'))
# -> [] -- empty list means a good password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment