真正国密SM2,SM3,SM4的前后台配套(js和java)加解密写法

上传者: 36176808 | 上传时间: 2021-08-25 18:38:32 | 文件大小: 152KB | 文件类型: ZIP
之前网上找的资源都有问题,主要是SM2 JS用公钥加密,Java后台用私钥解不了,前后台不匹配,现已解决,前后台代码都共享出来,弄了好久,希望大家贡献一点积分(其中sm2Test.html的js路径引入不太 正确,修改后即可测试)

文件下载

资源详情

[{"title":"( 38 个子文件 152KB ) 真正国密SM2,SM3,SM4的前后台配套(js和java)加解密写法","children":[{"title":"SM-TEST","children":[{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"static","children":[{"title":"sm3Test.html <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false},{"title":"sm2Test.html <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"js","children":[{"title":"utils","children":[{"title":"byteUtil.js <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"hex.js <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"jquery-3.3.1.min.js <span style='color:#111;'> 84.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"crypto","children":[{"title":"sm4-1.0.js <span style='color:#111;'> 9.81KB </span>","children":null,"spread":false},{"title":"crypto-js.js <span style='color:#111;'> 46.82KB </span>","children":null,"spread":false},{"title":"sm3-1.0.js <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"sm2-1.0.js <span style='color:#111;'> 138.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"ext","children":[{"title":"prng4.js <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"rng.js <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"jsbn2.js <span style='color:#111;'> 18.86KB </span>","children":null,"spread":false},{"title":"jsbn.js <span style='color:#111;'> 15.44KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"sm4Test.html <span style='color:#111;'> 10.27KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"intellzen","children":[{"title":"constant","children":[{"title":"CharsetConstant.java <span style='color:#111;'> 199B </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"SystemUtil.java <span style='color:#111;'> 15.05KB </span>","children":null,"spread":false},{"title":"sm","children":[{"title":"SM4Util.java <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"SM3Util.java <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"SM3Digest.java <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"SM2Util.java <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false},{"title":"SM3.java <span style='color:#111;'> 7.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"SM-TEST.iml <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"intellzen","children":[{"title":"constant","children":[{"title":"CharsetConstant.class <span style='color:#111;'> 396B </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"SystemUtil.class <span style='color:#111;'> 9.19KB </span>","children":null,"spread":false},{"title":"sm","children":[{"title":"SM3Digest.class <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"SM4Util.class <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"SM3.class <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"SM2Util$KeyPair.class <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"SM2Util.class <span style='color:#111;'> 5.98KB </span>","children":null,"spread":false},{"title":"SM3Util.class <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"maven-archiver","children":[{"title":"pom.properties <span style='color:#111;'> 111B </span>","children":null,"spread":false}],"spread":true},{"title":"SM-TEST-1.0-SNAPSHOT.jar <span style='color:#111;'> 18.45KB </span>","children":null,"spread":false}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 675B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 22.39KB </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 983B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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