public void setPassword(String password) { this.password = Utilities.encryptString(password); }
public User(String name, String password, String email) { this.name = name; this.password = password == null ? password : Utilities.encryptString(password); this.email = email; }