public boolean equals(String password){
  if (password == null) {
    return false;
  }
  if (!isEncrypted(password)) {
    password=encrypt(algorithm,password);
  }
  if (!password.startsWith(algorithm + SEPERATOR)) {
    throw new IllegalArgumentException("Algorithm mismatch");
  }
  return value.equalsIgnoreCase(password);
}

public boolean equals ( String password ) { if ( password == null ) { return false ; } if ( ! isEncrypted ( password ) ) { password = encrypt ( algorithm , password ) ; } if ( ! password . startsWith ( algorithm + SEPERATOR ) ) { throw new IllegalArgumentException ( "Algorithm mismatch" ) ; } return value . equalsIgnoreCase ( password ) ; }
returns true if the passed password equals the current password
