Is there any method to generate MD5 hash of a string in Java?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Another implementation: Fast MD5 Implementation in Java
You can try following. See details and download codes here: http://jkssweetlife.com/java-hashgenerator-md5-sha-1/
There is an article on Codingkit about that. Check out: http://codingkit.com/a/JAVA/2013/1020/2216.html
Found this solution which is much cleaner in terms of getting a String representation back from an MD5 hash.
The code was extracted from here.
No need to make it too complicated. DigestUtils works fine and make you comfortable while working with md5 hashes.
or
Either you can use any other encryption methods such as sha or md.