org.apache.commons.codec.digest.DigestUtils

 

 

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

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

  

posted @ 2023-10-09 14:17  草木物语  阅读(79)  评论(0编辑  收藏  举报