开发者

Library providing various hash algorithms (MD5, SHA1, SHA256, etc) in Java?

Is there a simple library out there for Java in a Maven repository that will gi开发者_StackOverflowve me simple, one-liner hash methods for the popular hash functions such as MD5, SHA1, SHA256, and SHA512? I'd really hate to have to reinvent the wheel to do this.


The DigestUtils class of Apache Commons Codec is suitable for the purpose of simplifying the use of the MessageDigest class, which appears to be what you are attempting to use in the first place.


It's built-in: java.security.MessageDigest

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜