code: @Sensitive
      protected static String digest(@Sensitive String input, String algorithm) {
          return digest(input, algorithm, DEFAULT_CHARSET);
      }
docs: generate hash code by using specified algorithm If there is some error,
  log the error.