String md5Hex = DigestUtils.md5Hex("abc"); System.out.println(md5Hex); String sha256Hex = DigestUtils.sha256Hex("abc"); System.out.println(sha256Hex);