Skip to content

Commit

Permalink
OnewayEncryption 改成public fix #699
Browse files Browse the repository at this point in the history
OnewayType 改成public 并且完善javadoc  fix #698
  • Loading branch information
venusdrogon committed Feb 4, 2024
1 parent 8de38b1 commit ecf9059
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
* @see com.feilong.lib.codec.digest.DigestUtils
* @see org.springframework.util.DigestUtils
*/
//无访问控制符修饰的内容可以被同一个包中的类访问,
final class OnewayEncryption{
public final class OnewayEncryption{

/** Don't let anyone instantiate this class. */
private OnewayEncryption(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
* </ol>
*
* </blockquote>
*
*
* @author <a href="https://github.com/ifeilong/feilong">feilong</a>
* @version 1.0.0 2012-3-25 上午7:19:44
* @version 1.0.2 2013-1-14 20:27 增加 SHA-1、 SHA-256、SHA-384,和SHA-512
* @see java.security.MessageDigestSpi
* @see com.feilong.lib.codec.digest.MessageDigestAlgorithms
* @since 4.0.8 update to public
*/
//无访问控制符修饰的内容可以被同一个包中的类访问,
enum OnewayType{
public enum OnewayType{

/**
* Message Digest algorithm 5,信息摘要算法.
Expand All @@ -104,7 +104,29 @@ enum OnewayType{
* 据国家密码管理局表示,其安全性及效率与SHA-256相当。
* </pre>
*
* <h3>说明:</h3>
*
* <p>
* 需要自行依赖 bcprov-jdk15on jar
* </p>
*
* <blockquote>
*
* <pre>
{@code
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.70</version>
</dependency>
}
* </pre>
*
*
* </blockquote>
*
* @since 2.0.1
* @see Sm3Util
*/
SM3("SM3"),

Expand Down

0 comments on commit ecf9059

Please sign in to comment.