[英]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 give me simple, one-liner hash methods for the popular hash functions such as MD5, SHA1, SHA256, and SHA512? 我真的很討厭不得不重新發明輪子來做到這一點。
它是內置的: java.security.MessageDigest
Apache Commons Codec的 DigestUtils class 適用於簡化 MessageDigest class 的使用,這似乎是您首先嘗試使用的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.