簡體   English   中英

在 Java 中提供各種 hash 算法(MD5、SHA1、SHA256 等)的庫?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM