Utility for validating user passwords and generating random passwords.