# 使用MD5做加密 如果用Spring boot的話,可以使用下面的方法 ```java= public static String encryptToMD5(String str) { return DigestUtils.md5Hex(str); } ``` ###### tags: `JAVA`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up