国密SM2完整例子 -- 包含所有方法与调用例子(JAVA)

上传者: limh_hai | 上传时间: 2019-12-21 20:08:42 | 文件大小: 28KB | 文件类型: zip
由于很多同学想做伸手党,此处重新上传了一个完整版的代码。包含了生成随机秘钥对,数据加密,数据解密,签名与验签例子,并给出了使用姿势。使用者需要使用maven导入项目,然后运行SM2Utils里面的main方法即可

文件下载

资源详情

[{"title":"( 24 个子文件 28KB ) 国密SM2完整例子 -- 包含所有方法与调用例子(JAVA)","children":[{"title":"sm2","children":[{"title":"pom.xml <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"sm2.iml <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"test","children":[{"title":"Util.java <span style='color:#111;'> 12.73KB </span>","children":null,"spread":false},{"title":"SM2Result.java <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"SM2.java <span style='color:#111;'> 6.01KB </span>","children":null,"spread":false},{"title":"Cipher.java <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"SM2Utils.java <span style='color:#111;'> 9.24KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 442B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 246B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 256B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"sonarlint","children":[{"title":"issuestore","children":[{"title":"8","children":[{"title":"1","children":[{"title":"8154528f3c099f3acfa43d77083cb3b166b40419 <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"index.pb <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"1","children":[{"title":"f","children":[{"title":"1fd31874417355cf24383cb0b409d90799ef074c <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"9","children":[{"title":"a","children":[{"title":"9ad2c3c630617a82488ed955460e2a8b242ed910 <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"2","children":[{"title":"9","children":[{"title":"29be7203908231d87efea707fdeead31ac87d717 <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"3","children":[{"title":"7","children":[{"title":"376b8fef3a365cbf0006a5aad205c9383e1bde57 <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":false},{"title":"b","children":[{"title":"3b1b30c0bb8576bbc97e620980abf54486b85485 <span style='color:#111;'> 86B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"4","children":[{"title":"4","children":[{"title":"442292b8a7efeabbe4cc176709b833b1792140ec <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"workspace.xml <span style='color:#111;'> 39.37KB </span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"Maven__junit_junit_4_11.xml <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"Maven__org_bouncycastle_bcpkix_jdk15on_1_55.xml <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"Maven__org_hamcrest_hamcrest_core_1_3.xml <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"Maven__org_bouncycastle_bcprov_jdk15on_1_55.xml <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":true},{"title":"inspectionProfiles","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 九耀十方 :
    Usage: java org.bouncycastle.crypto.examples.DESExample infile outfile [keyfile]这个报错是因为少bouncycastle
    2020-05-12
  • 一个小泡泡 :
    很不错的案例,超级好用的,非常棒
    2019-05-23

免责申明

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