rsa文件加密软件的设计与实现.rar
rsa文件加密软件的设计与实现,资源包括:doc格式正文共40页 20384字 附相关程序文件摘要分析rsa算法的应用现状,论证文件加密应用rsa算法的可行性和意义。设计一套完整实用的rsa文件加密解决方案,具体编码实现。对rsa算法进行研究,从常规rsa算法出发,用c++实现rsa加密算法类库,并在32位windows平台封装成组件。在.net平台...
该文档为压缩文件,包含的文件列表如下:
内容介绍
原文档由会员 莎士比亚 发布
×ÊÔ´°üÀ¨£ºDOC¸ñʽÕýÎĹ²40Ò³ 20384×Ö ¸½Ïà¹Ø³ÌÐòÎļþ
Õª Òª
·ÖÎöRSAËã·¨µÄÓ¦ÓÃÏÖ×´£¬ÂÛÖ¤Îļþ¼ÓÃÜÓ¦ÓÃRSAËã·¨µÄ¿ÉÐÐÐÔºÍÒâÒå¡£Éè¼ÆÒ»Ì×ÍêÕûʵÓõÄRSAÎļþ¼ÓÃܽâ¾ö·½°¸£¬¾ßÌå±àÂëʵÏÖ¡£¶ÔRSAËã·¨½øÐÐÑо¿£¬´Ó³£¹æRSAËã·¨³ö·¢£¬ÓÃC++ʵÏÖRSA¼ÓÃÜËã·¨Àà¿â£¬²¢ÔÚ32λwindowsƽ̨·â×°³É×é¼þ¡£ÔÚ.Netƽ̨ÒýÓôË×é¼þ£¬ÊµÏÖ¿ÉÒÔ¶ÔÈÎÒâÎļþ½øÐÐRSA¼ÓÃܲÙ×÷µÄ´°ÌåÓ¦ÓóÌÐò¡£¾¹ý¼ÓÃܵÄÎļþÒÔ¼°ÃÜÔ¿Îļþ¶¼ÊÇÎı¾Îļþ¡£¸ø³ö¹Ø¼üÀàÀàͼ¡¢Õû¸öÓ¦ÓóÌÐòµÄ½á¹¹ÃèÊöÎĵµ¡¢¹Ø¼üÄ£¿éÁ÷³Ìͼ¡¢½ÏÏêϸµÄ½Ó¿ÚÎĵµ¡¢ËùÓÐÔ´´úÂë¡£¶ÔÓ¦ÓóÌÐò½øÐвâÊÔ£¬¶Ô²âÊÔ½á¹û½øÐзÖÎöÑо¿£¬½ø¶ø¶ÔÓ¦ÓóÌÐò½øÐиĽø£¬¶Ô¹Ø¼üËã·¨½øÐо¡¿ÉÄܵÄÓÅ»¯£¬×îÖյõ½Ò»¸öÔÚwindowsÔËÐеĿÉÒÔÓÃÖ¸¶¨ÃÜÔ¿¶ÔÈÎÒâÎļþ½øÐÐRSA¼ÓÃܲ¢¿É½âÃܵÄÍêÕûÓ¦ÓóÌÐò£¬ºÍһЩÏà¹ØµÄ¿ÉÒÆÖ²×é¼þ¡£
¹Ø¼ü´Ê RSA RSAËã·¨ Îļþ¼ÓÃÜ ¼ÓÃ@@ÉÎı¾
Abstract
Do research about the application area of RSA encryption and reason that RSA can be used for file encryption. Design a RSA file-encrypt solution and complete an application on Microsoft Windows™. Design a C++ class based on normal RSA algorithm. And make a DLL module based on the class. Then complete a .Net Framework™ window-application using that DLL. The application can encrypt any file and decrypt them. The file after encryption can be saved as a text file. And the encryption-keys also can be saved as text.Provide pivotal classes chart, project description, core algorithm flowchart, all source code, and module interfaces document. Do application performance test and record the performance data. Analyze the result then optimize core algorithm and improve the application. Finally, create a practical application using RSA algorithm that can encrypt and decrypt any file. And several modules in the project can be reuse by other applications. For instance, the C++ class can be cross-compiled for handheld devices, the DLL can be referenced by other win32 applications, and the .Net class can be easily referenced by web server applications or web services.
Keywords RSA RSA algorithm file encryption encrypt to text
Ŀ ¼
Ç° ÑÔ 1
µÚ1Õ RSAÓ¦ÓÃÏÖ×´¼°Ó¦ÓÃÓÚÎļþ¼ÓÃܵķÖÎö 2
1.1 RSAËã·¨½éÉÜÓëÓ¦ÓÃÏÖ×´ 2
1.2 RSAÓ¦ÓÃÓÚÎļþ¼ÓÃܵķÖÎö 3
1.2.1 Îļþ¼ÓÃÜʹÓÃRSAµÄ¿ÉÐÐÐÔ 3
1.2.2 Îļþ¼ÓÃÜʹÓÃRSAµÄÒâÒå 4
µÚ2Õ RSAÎļþ¼ÓÃÜÈí¼þµÄÉè¼ÆÓëʵÏÖ 6
2.1 ÐèÇó·ÖÎöÓë×ÜÌåÉè¼Æ 6
2.1.1 ¹¦ÄÜ·ÖÎö 6
2.1.2 ¹¤³Ì·½°¸Ñ¡Ôñ 7
2.2 ¸÷²¿·ÖµÄÉè¼ÆÓ뿪·¢ 8
2.2.1 ʵÏÖRSA¼ÓÃÜËã·¨µÄC++ºËÐÄÀà¿â 8
2.2.2 ·â×°C++ºËÐÄÀà¿âµÄDLL×é¼þ 18
2.2.3 ÒýÓÃDLLµÄ.NetÀàÓëʵÏÖÎļþ²Ù×÷¹¦ÄܵĴ°ÌåÓ¦ÓóÌÐò 19
µÚ3Õ Èí¼þÕûÌå²âÊÔÓë·ÖÎö¸Ä½ø 20
3.1 ±àд²âÊÔ¸÷ÏîÐÔÄÜÐèÒªµÄ¾«È·¼ÆʱÀà 20
3.2 ²âÊÔÊý¾ÝÓë·ÖÎö¸Ä½ø 20
3.2.1 ÃÜÔ¿Éú³É²âÊÔ 20
3.2.2 Êý¾ÝÊäÈëÊä³ö²âÊÔ 23
3.2.3 ¼ÓÃܽâÃܲâÊÔ 23
3.2.4 ÐÔÄÜ·ÖÎöÓë¸Ä½øÓÅ»¯ 26
3.3 ʹÓÃÖйúÓàÊý¶¨Àí 27
µÚ4Õ ¿ÉÒÆֲģ¿éµÄ¼òҪ˵Ã÷Ó뿪·¢Ç°¾° 29
½áÊøÓï 30
л ´Ç 31
²Î¿¼ÎÄÏ× 32
¸½ ¼ 33
Õª Òª
·ÖÎöRSAËã·¨µÄÓ¦ÓÃÏÖ×´£¬ÂÛÖ¤Îļþ¼ÓÃÜÓ¦ÓÃRSAËã·¨µÄ¿ÉÐÐÐÔºÍÒâÒå¡£Éè¼ÆÒ»Ì×ÍêÕûʵÓõÄRSAÎļþ¼ÓÃܽâ¾ö·½°¸£¬¾ßÌå±àÂëʵÏÖ¡£¶ÔRSAËã·¨½øÐÐÑо¿£¬´Ó³£¹æRSAËã·¨³ö·¢£¬ÓÃC++ʵÏÖRSA¼ÓÃÜËã·¨Àà¿â£¬²¢ÔÚ32λwindowsƽ̨·â×°³É×é¼þ¡£ÔÚ.Netƽ̨ÒýÓôË×é¼þ£¬ÊµÏÖ¿ÉÒÔ¶ÔÈÎÒâÎļþ½øÐÐRSA¼ÓÃܲÙ×÷µÄ´°ÌåÓ¦ÓóÌÐò¡£¾¹ý¼ÓÃܵÄÎļþÒÔ¼°ÃÜÔ¿Îļþ¶¼ÊÇÎı¾Îļþ¡£¸ø³ö¹Ø¼üÀàÀàͼ¡¢Õû¸öÓ¦ÓóÌÐòµÄ½á¹¹ÃèÊöÎĵµ¡¢¹Ø¼üÄ£¿éÁ÷³Ìͼ¡¢½ÏÏêϸµÄ½Ó¿ÚÎĵµ¡¢ËùÓÐÔ´´úÂë¡£¶ÔÓ¦ÓóÌÐò½øÐвâÊÔ£¬¶Ô²âÊÔ½á¹û½øÐзÖÎöÑо¿£¬½ø¶ø¶ÔÓ¦ÓóÌÐò½øÐиĽø£¬¶Ô¹Ø¼üËã·¨½øÐо¡¿ÉÄܵÄÓÅ»¯£¬×îÖյõ½Ò»¸öÔÚwindowsÔËÐеĿÉÒÔÓÃÖ¸¶¨ÃÜÔ¿¶ÔÈÎÒâÎļþ½øÐÐRSA¼ÓÃܲ¢¿É½âÃܵÄÍêÕûÓ¦ÓóÌÐò£¬ºÍһЩÏà¹ØµÄ¿ÉÒÆÖ²×é¼þ¡£
¹Ø¼ü´Ê RSA RSAËã·¨ Îļþ¼ÓÃÜ ¼ÓÃ@@ÉÎı¾
Abstract
Do research about the application area of RSA encryption and reason that RSA can be used for file encryption. Design a RSA file-encrypt solution and complete an application on Microsoft Windows™. Design a C++ class based on normal RSA algorithm. And make a DLL module based on the class. Then complete a .Net Framework™ window-application using that DLL. The application can encrypt any file and decrypt them. The file after encryption can be saved as a text file. And the encryption-keys also can be saved as text.Provide pivotal classes chart, project description, core algorithm flowchart, all source code, and module interfaces document. Do application performance test and record the performance data. Analyze the result then optimize core algorithm and improve the application. Finally, create a practical application using RSA algorithm that can encrypt and decrypt any file. And several modules in the project can be reuse by other applications. For instance, the C++ class can be cross-compiled for handheld devices, the DLL can be referenced by other win32 applications, and the .Net class can be easily referenced by web server applications or web services.
Keywords RSA RSA algorithm file encryption encrypt to text
Ŀ ¼
Ç° ÑÔ 1
µÚ1Õ RSAÓ¦ÓÃÏÖ×´¼°Ó¦ÓÃÓÚÎļþ¼ÓÃܵķÖÎö 2
1.1 RSAËã·¨½éÉÜÓëÓ¦ÓÃÏÖ×´ 2
1.2 RSAÓ¦ÓÃÓÚÎļþ¼ÓÃܵķÖÎö 3
1.2.1 Îļþ¼ÓÃÜʹÓÃRSAµÄ¿ÉÐÐÐÔ 3
1.2.2 Îļþ¼ÓÃÜʹÓÃRSAµÄÒâÒå 4
µÚ2Õ RSAÎļþ¼ÓÃÜÈí¼þµÄÉè¼ÆÓëʵÏÖ 6
2.1 ÐèÇó·ÖÎöÓë×ÜÌåÉè¼Æ 6
2.1.1 ¹¦ÄÜ·ÖÎö 6
2.1.2 ¹¤³Ì·½°¸Ñ¡Ôñ 7
2.2 ¸÷²¿·ÖµÄÉè¼ÆÓ뿪·¢ 8
2.2.1 ʵÏÖRSA¼ÓÃÜËã·¨µÄC++ºËÐÄÀà¿â 8
2.2.2 ·â×°C++ºËÐÄÀà¿âµÄDLL×é¼þ 18
2.2.3 ÒýÓÃDLLµÄ.NetÀàÓëʵÏÖÎļþ²Ù×÷¹¦ÄܵĴ°ÌåÓ¦ÓóÌÐò 19
µÚ3Õ Èí¼þÕûÌå²âÊÔÓë·ÖÎö¸Ä½ø 20
3.1 ±àд²âÊÔ¸÷ÏîÐÔÄÜÐèÒªµÄ¾«È·¼ÆʱÀà 20
3.2 ²âÊÔÊý¾ÝÓë·ÖÎö¸Ä½ø 20
3.2.1 ÃÜÔ¿Éú³É²âÊÔ 20
3.2.2 Êý¾ÝÊäÈëÊä³ö²âÊÔ 23
3.2.3 ¼ÓÃܽâÃܲâÊÔ 23
3.2.4 ÐÔÄÜ·ÖÎöÓë¸Ä½øÓÅ»¯ 26
3.3 ʹÓÃÖйúÓàÊý¶¨Àí 27
µÚ4Õ ¿ÉÒÆֲģ¿éµÄ¼òҪ˵Ã÷Ó뿪·¢Ç°¾° 29
½áÊøÓï 30
л ´Ç 31
²Î¿¼ÎÄÏ× 32
¸½ ¼ 33