code: public static String digest(CharSequence self, String algorithm) throws NoSuchAlgorithmException {
          final String text = self.toString();
  
          return digest(text.getBytes(StandardCharsets.UTF_8), algorithm);
      }
docs: digest the CharSequence instance
  @param algorithm the name of the algorithm requested, e.g. MD5, SHA-1, SHA-256, etc.
  @return digested value
  @throws NoSuchAlgorithmException if the algorithm not found
  @since 2.5.0
  @see MessageDigest#getInstance(java.lang.String)