Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. # PASSWORD VALIDATOR TEMPLATE: REPLACE THIS LINE WITH YOUR FILE HEADER
  2.  
  3. def validate(password):
  4. """ Analyzes an input password to determine if it is "Secure", "Insecure", or "Invalid" based on the assignment description criteria.
  5.  
  6. Arguments:
  7. password (string): a string of characters
  8.  
  9. Returns:
  10. result (string): either "Secure", "Insecure", or "Invalid".
  11. """
  12. pass
  13.  
  14. def generate(n):
  15. """ Generates a password of length n which is guaranteed to be Secure according to the given criteria.
  16.  
  17. Arguments:
  18. n (integer): the length of the password to generate, n >= 8.
  19.  
  20. Returns:
  21. secure_password (string): a Secure password of length n.
  22. """
  23. pass
  24.  
  25. if __name__ == "__main__":
  26. # Any code indented under this line will only be run
  27. # when the program is called directly from the terminal
  28. # using "python3 validator.py". This can be useful for
  29. # testing your implementations.
  30. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement