rsa加密算法c++实现

上传者: leaderadou | 上传时间: 2022-06-01 13:07:38 | 文件大小: 136KB | 文件类型: RAR
rsa
使用C++编译,有界面,功能强大完整。 如下式加密算法部分: void CRSAUtilDlg::OnButtonDecrypt() { UpdateData(); CBigNumber cipher; cipher.StringHexFrom(m_strMessageC); BYTE by[8192]; m_pbDE.SetRange(0, 100); DWORD dwTicks = GetTickCount(); for (int i = 0; i < m_nEncryptionDecryptionTestTimes; i++) { memset(by, 0, sizeof(by)); //int n = m_rsa.rsaTestPublicD(by, sizeof(by), &cipher); int n = m_rsa.rsaPublicDecrypt(by, sizeof(by), &cipher); m_pbDE.SetPos(i * 100 / m_nEncryptionDecryptionTestTimes); } dwTicks = GetTickCount() - dwTicks + 1; m_pbDE.SetPos(0); m_strMessageC = by; m_strMessage.Format( "Decryption %d times, used %d.%d seconds, DPS = %d", m_nEncryptionDecryptionTestTimes, dwTicks / 1000, dwTicks % 1000, m_nEncryptionDecryptionTestTimes * 1000 / dwTicks); UpdateData(false); }

文件下载

资源详情

[{"title":"( 27 个子文件 136KB ) rsa加密算法c++实现","children":[{"title":"RSAUtil.PGP有界面","children":[{"title":"StdAfx.cpp <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"RSAUtilDlg.h <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"BigMem.cpp <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"RSAUtil.dsp <span style='color:#111;'> 5.12KB </span>","children":null,"spread":false},{"title":"RSAUtil.clw <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"RSAUtil.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"BigNumber.h <span style='color:#111;'> 10.06KB </span>","children":null,"spread":false},{"title":"RSAUtil.dsw <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"BestMDHash.cpp <span style='color:#111;'> 10.74KB </span>","children":null,"spread":false},{"title":"RandomGenerator.cpp <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"RandomGenerator.h <span style='color:#111;'> 1002B </span>","children":null,"spread":false},{"title":"RSA.cpp <span style='color:#111;'> 21.01KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"RCa01024 <span style='color:#111;'> 18.07KB </span>","children":null,"spread":false},{"title":"RSA.h <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"RSAUtil.cpp <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"BigNumber.cpp <span style='color:#111;'> 172.25KB </span>","children":null,"spread":false},{"title":"RCa01620 <span style='color:#111;'> 18.07KB </span>","children":null,"spread":false},{"title":"BestMDHash.h <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"BigMem.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"RSAUtil.opt <span style='color:#111;'> 52.50KB </span>","children":null,"spread":false},{"title":"RSAUtilDlg.cpp <span style='color:#111;'> 18.95KB </span>","children":null,"spread":false},{"title":"RSAUtil.ncb <span style='color:#111;'> 179.00KB </span>","children":null,"spread":false},{"title":"RSAUtil.rc <span style='color:#111;'> 9.79KB </span>","children":null,"spread":false},{"title":"RSAUtil.plg <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • mazihan0603 :
    编译有些小问题,能用
    2017-11-02
  • yunlong3727 :
    缺少资源文件,太烂了!!!!
    2016-10-28
  • jsonny :
    还行吧,可以参考一下。
    2015-10-22
  • supercatygqs :
    代码很棒~赞一个,学习学习
    2015-07-30
  • hao407800 :
    是啊,很烂,编译不了,大家不要下了
    2015-07-29

免责申明

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