Determines the strength of a password.