请下载论文,论文或程序为doc或rar格式,只上传部分目录查看,如果需要此论文或程序,请点击-下载论文,下载需要资料或是论文。RSA算法的实现-论文和程序及源代码
RSA-suanfadeshixian-lunwenhechengxujiyuandaima,因文件夹或是目录太多,只读取5个文件显示,需要就下载参考
包括目录名称:
RSA算法的实现-论文和程序及源代码 - 1 文件数, 0 目录数.
RSA算法的实现.doc
..\RSA算法的实现.doc
>
RSA算法的实现
摘 要
本文设计的是一套完整实用的RSA文件加密解决方案,并具体编码实现。本文采用费马小定理测试素数,使用Montgomery加快大数模乘运算,用C++实现RSA加密算法类库,并在32位windows平台封装成组件。在.Net平台引用此组件,实现可以对任意文件进行RSA加密操作的窗体应用程序。经过加密的文件以及密钥文件都是文本文件。本文首先给出关键类类图、整个应用程序的结构描述文档,然后对关键模块流程图、详细的接口文档进行阐述,并给出关键的实现代码,最后对应用程序进行测试,对测试结果进行分析研究,进而对应用程序进行改进,对关键算法进行尽可能的优化,最终得到一个在windows运行的可以用指定密钥对任意文件进行RSA加密并可解密的完整应用程序,和一些相关的可移植组件。
关键词: RSA;文件加密;Montgomery;费马定理
Implement of RSA Algorithm
Abstract
In this paper, a solution of encrypting file with RSA algorithm and the codes of this system are introduced. Fermat theory is used to test prime number. Montgomery is used to cut short the time of modular multiplication of large number. The class library of RSA is implemented in C++, and packaged to component on the platform of 32 bits windows. On the platform of .Net, the application is implemented with reference of this component and can encrypt any file with RSA. Both encrypted files and key files are text files. In this paper, core class figures and the framework are first introduced. Then the flow of core modules and detail interfaces are stated and the kernel codes are showed also. Finally, it analyzes the result of test, then optimizes core algorithm. In the conclusion, an entire application which can encrypt any files with RSA algorithm using given key and some transplanted components are implemented.
Key words: RSA ; File Encryption ; Montgomery ; Fermat
目 录
论文总页数:35页
1 引言 1
1.1课题背景 1
1.2 RSA算法介绍与应用现状 1
1.3 RSA应用于文件加密的分析 2
1.3.1 文件加密使用RSA的可行性 2
1.3.2 文件加密使用RSA的意义 3
2 RSA文件加密软件的设计与实现 4
2.1 需求分析与总体设计 4
2.1.1 功能分析 4
2.1.2 工程方案选择 4
2.2 各部分的设计与开发 5
2.2.1 实现RSA加密算法的C++核心类库 5
2.2.2 封装C++核心类库的DLL组件 25
2.2.3 引用DLL的.Net类与实现文件操作功能的窗体应用程序 26
3 软件整体测试与分析改进 27
3.1 编写测试各项性能需要的精确计时类 27
3.2 测试数据与分析改进 27
3.2.1 密钥生成测试 27
3.2.2 数据输入输出测试 28
3.2.3 加密解密测试 29
结 论 31
参考文献 32
附 录 33
致 谢 34
声 明 35
1 引言
1.1课题背景
RSA公钥加密算法是第一个既能用于数据加密也能用于数字签名的算法。它易于理解和操作,也十分流行。算法的名字以发明者的姓氏首字母命名:Ron Rivest, Adi Shamir 和Leonard Adleman。虽然自1978年提出以来,RSA的安全性一直未能得到理论上的证明,但它经历了各种攻击,至今(2006年)未被完全攻破。随着越来越多的商业应用和标准化工作,RSA已经成为最具代表性的公钥加密技术。VISA、MasterCard、IBM、Microsoft等公司协力制定的安全电子交易标准(Secure Electronic Transactions,SET)就采用了标准RSA算法,这使得RSA在我们