docs: public static String digest(String string, String digestAlgo, String encoding) {
          try {
              MessageDigest digester = MessageDigest.getInstance(digestAlgo);
              digester.update(string.getBytes(encoding));
              return hex(digester.digest());
          } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {
              throw new RuntimeException(e);
          }
      }