1 / 49
文档名称:

RSA算法的实现—计算机毕业设计(论文).doc

格式:doc   大小:683KB   页数:49页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

RSA算法的实现—计算机毕业设计(论文).doc

上传人:lanyou1106 2017/12/12 文件大小:683 KB

下载得到文件列表

RSA算法的实现—计算机毕业设计(论文).doc

相关文档

文档介绍

文档介绍:毕业设计(论文)
RSA算法的实现
论文作者姓名:
申请学位专业:
申请学位类别:
指导教师姓名(职称):
论文提交日期:

RSA算法的实现
摘要
本文设计的是一套完整实用的RSA文件加密解决方案,并具体编码实现。本文采用费马小定理测试素数,使用Montgomery加快大数模乘运算,用C++实现RSA加密算法类库,并在32位windows平台封装成组件。平台引用此组件,实现可以对任意文件进行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 ponent on the platform of 32 bits windows. On the platform of .Net, the application is implemented with reference of ponent 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 ponents are implemented.
Key words: RSA ; File Encryption ; Montgomery ; Fermat
目录
论文总页数:35页
1 引言 1
1
RSA算法介绍与应用现状 1
RSA应用于文件加密的分析 2
文件加密使用RSA的可行性 2
文件加密使用RSA的意义 3
2 RSA文件加密软件的设计与实现 4
需求分析与总体设计 4
功能分析 4
工程方案选择 4
各部分的设计与开发 5
实现RSA加密算法的C++核心类库 5
封装C++核心类库的DLL组件 25
类与实现文件操作功能的窗体应用程序 26
3 软件整体测试与分析改进 27
编写测试各项性能需要的精确计时类 27
测试数据与分析改进 27
密钥生成测试 27
数据输入输出测试 28
加密解密测试 29
结论 31
参考文献 32
附录 33
致谢 34
声明 35
1 引言

RSA公钥加密算法是第一个既能用于数据加密也能用于数字签名的算法。它易于理解和操作,也十分流行。算法的名字以发明者的姓氏首字母命名:Ron Rivest, Adi Shamir 和Leonard Adleman。虽然自1978