if (passwordInput.length() >= minPasswordLength) {
baseScore = 50;
Password password = analyzePassword(passwordInput, minPasswordLength);
baseScore = calculateComplexity(password, baseScore);
} else {
throw new InvalidPasswordLength("The password is incorrect length [minPasswordLength=" + minPasswordLength + ";passwordInputLength=" + passwordInput.length() + ";]");
}
return PasswordComplexity.calculateComplexity(baseScore);
}