RSA,AES,SHA1,RSA-SHA1 Sign加密算法C++/Java封装

上传者: fwb1985 | 上传时间: 2023-12-15 07:05:14 | 文件大小: 225KB | 文件类型: RAR
C++部分使用了Wei Dai整理的开源C++加密工具cryptopp(www.cryptopp.com),cryptopp是一个非常优秀和完善的开源C++加密工具,将C++技术和设计模式使用到了淋漓尽致的地步,不过对于初学者来说比较难以上手,特别是需要将项目交给初学者来实现的时候,所以当时在cryptopp的基础上做了一些封装,并且将RSA,AES,SHA1,RSA-SHA1 Sign分离成独立的类,并且添加了Base16和Base64编码算法,使用这几个加密算法,几乎可以解决一般项目对通信安全的需要。 Java部分使用了JDK自带的SunJCE加密框架,一般网上可以找到的Java加密解密都是使用SunJCE框架,还有一个比较著名的 Java开源加密工具是bouncycastle(http://www.bouncycastle.org/),因为SunJCE是JDK自带的,所以使用比较方便,相对于cryptopp,SunJCE要容易上手得多,几乎不需要再做封装,不过为了跟C++封装统一,也做了简单的封装,保持C++接口和Java接口相近。 C++封装在Visual Studio 2003下测试通过,Java封装在jdk1.5.0_14下测试通过。 更详细的信息,解压缩后参考/doc/crypto.doc和源代码.

文件下载

资源详情

[{"title":"( 27 个子文件 225KB ) RSA,AES,SHA1,RSA-SHA1 Sign加密算法C++/Java封装","children":[{"title":"crypto++","children":[{"title":"sign.h <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"cryptopp_base64.cpp <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"rsa.h <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"base64.h <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"test.cpp <span style='color:#111;'> 11.95KB </span>","children":null,"spread":false},{"title":"cryptopp_sign.cpp <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"base16.cpp <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"crypto++.exe <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"cryptopp_rsa.cpp <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"sha1.h <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"aes.h <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"cryptopp_aes.cpp <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"crypto++.vcproj <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"base16.h <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"cryptopp_sha1.cpp <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":false},{"title":"cryptopp_License.txt <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"crypto.jws <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"doc","children":[{"title":"crypto.doc <span style='color:#111;'> 94.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"cryptoj","children":[{"title":"cryptoj.jpr <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"org","children":[{"title":"bsmith","children":[{"title":"encoding","children":[{"title":"Base64.java <span style='color:#111;'> 10.37KB </span>","children":null,"spread":false},{"title":"Base16.java <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"crypto","children":[{"title":"Sign.java <span style='color:#111;'> 9.80KB </span>","children":null,"spread":false},{"title":"SHA1.java <span style='color:#111;'> 5.43KB </span>","children":null,"spread":false},{"title":"AES.java <span style='color:#111;'> 8.67KB </span>","children":null,"spread":false},{"title":"RSA.java <span style='color:#111;'> 11.40KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"apache_LICENSE-2.0.txt <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"crypto.sln <span style='color:#111;'> 914B </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

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