js 实现国密sm2、sm3、sm4 加密解密demo

上传者: 36654629 | 上传时间: 2022-11-16 17:57:07 | 文件大小: 5.81MB | 文件类型: ZIP
前端纯js加密、以及后端java解密代码。国密即国家密码局认定的国产密码算法。常用的主要有SM2,SM3,SM4。 SM2:椭圆曲线公钥密码算法是我国自主设计的公钥密码算法,为非对称加密,基于ECC。该算法已公开。由于该算法基于ECC,故其签名速度与秘钥生成速度都快于RSA。 SM3:消息摘要。可以用MD5作为对比理解。该算法已公开。校验结果为256位。 SM4:对称加密,密钥长度和分组长度均为128位。 由于国际环境(与美国的关系),我们在加密领域也基本切换为国密算法。 最近公司也是要求使用国密加密算法, 折腾了半天,也没有找到合适的资源,所以我这里统一提供了sm2\sm3\sm4 js 前端解解密的demo.需要的小伙伴自行下载

文件下载

资源详情

[{"title":"( 24 个子文件 5.81MB ) js 实现国密sm2、sm3、sm4 加密解密demo","children":[{"title":"01 验证可行国密demo","children":[{"title":"demo.zip <span style='color:#111;'> 2.90MB </span>","children":null,"spread":false},{"title":"demo","children":[{"title":"sm2","children":[{"title":"前端","children":[{"title":"sm2.html <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"crypto-js.js <span style='color:#111;'> 46.82KB </span>","children":null,"spread":false},{"title":"sm2.js <span style='color:#111;'> 54.58KB </span>","children":null,"spread":false},{"title":"jquery-3.6.0.js <span style='color:#111;'> 281.82KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"后端","children":[{"title":"SM2Encryptor.java <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"sm-crypto-0.3.2.jar <span style='color:#111;'> 28.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"sm3","children":[{"title":"前端","children":[{"title":"sm3Test.html <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"js","children":[{"title":"ext","children":[{"title":"jsbn.js <span style='color:#111;'> 14.89KB </span>","children":null,"spread":false},{"title":"ec-patch.js <span style='color:#111;'> 5.43KB </span>","children":null,"spread":false},{"title":"ec.js <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false},{"title":"rng.js <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"prng4.js <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"jsbn2.js <span style='color:#111;'> 18.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"crypto","children":[{"title":"sm4-1.0.js <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"sm2-1.0.js <span style='color:#111;'> 11.72KB </span>","children":null,"spread":false},{"title":"sm3-1.0.js <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"core.js <span style='color:#111;'> 20.31KB </span>","children":null,"spread":false},{"title":"jquery-3.3.1.min.js <span style='color:#111;'> 84.89KB </span>","children":null,"spread":false},{"title":"byteUtil.js <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"hex.js <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"后端","children":[{"title":"bcprov-jdk15on-1.54.jar <span style='color:#111;'> 3.13MB </span>","children":null,"spread":false},{"title":"Sm3Utils.java <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"sm4","children":[{"title":"国密SM4算法前后端加密解密完整代码.zip <span style='color:#111;'> 34.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明