code: public static function isPasswd($passwd, $size = Validate::PASSWORD_LENGTH)
      {
          return self::getPasswordComplexity($passwd, $size) >= self::PASSWORD_COMPLEXITY_MEDIUM;
      }
docs: Check for password validity
  
  @param string $passwd Password to validate
  @param int $size
  
  @return boolean Validity is ok or not