首先介绍一下国密算法:

其中SM1、SM4、SM7、祖冲之密码(ZUC)是对称算法;SM2、SM9是非对称算法;SM3是哈希算法。

https://gitee.com/mai12/gmca 这是学习大佬的代码写的,结合了GMCA和gmhelper,实现了证书生成,私钥SM4加密存储,再次感谢大佬们。

然后是Github和Gitee上找到的开源代码:

*************************************************************************************************************************************************************************************************

 

https://github.com/hwyqb/SM2_SM3_SM4Encrypt  // 专业,包分的好 127 star  项目中包括SM2算法的加密/解密/签名/验签 , SM3算法的摘要计算 , SM4算法的对称加密/解密 , 以及相应算法的公私钥对的生成方法。
https://github.com/ZZMarquis/gmhelper //SM2 X509v3证书的签发,专业  359 star
https://github.com/wcnwyx/gm-encryption  // 国密 SM2 SM3 SM4 算法, 使用的是bouncycastle包 , 18star
https://github.com/dushitaoyuan/littleca //littleca是一个基于BC的小型ca库,支持ecc,rsa,dsa,sm2的证书签发,加密,解密,签名
https://github.com/ziyaofeng/GMCA  //  最精简
https://gitee.com/defaworld/GM_SM23/blob/master/src/main/java/whoever/SM2.java  // 学习例子,值得抄写一次啊
https://gitee.com/zjf2671/hsd-cipher-sm.git   // 不错

*************************************************************************************************************************************************************************************************

 

相关文章:

  • 2021-07-15
  • 2021-07-17
  • 2021-12-22
  • 2021-11-16
  • 2021-09-20
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2022-01-01
  • 2021-10-13
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案