Convert MD5 array to String java

后端 未结 5 1013
一个人的身影
一个人的身影 2020-12-16 00:29

I know that there is a lot of similar topics, but still... can someone provide me a working example of method which generates MD5 String.
I\'m currently using MessageDig

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 00:54

    I'd use commons-codec

    • Base64 - Base64.encodeBase64(digestBytes)
    • Hex-string - Hex.encodeHex(digestBytes)

提交回复
热议问题