isSecure function

bool isSecure(
  1. String password
)

This method returns a boolean value (either true or fasle) that sums up whether a password is secure or not.

Implementation

bool isSecure(String password) {
  bool result = false;
  int passwordRating = passwordStrength(password);
  if (passwordRating > 8) {
    result = true;
  } else {
    result = false;
  }
  return result;
}