code: public static String digest(final String alg, final byte[] data) {
          return EncodingUtils.hexEncode(rawDigest(alg, data));
      }
docs: Computes hex encoded digest.
  
  @param alg  Digest algorithm to use
  @param data data to be hashed
  @return hex encoded hash