public static @NotNull String encodePassword(char @Nullable [] password) {
    return password == null || password.length == 0 ? "" : encodePassword(new String(password));
  }
public static @NotNull String encodePassword(char @Nullable [] password)