C++实现置换算法通过矩阵变换加密解密

  • m3_239806
    了解作者
  • 6.8KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-26 04:01
    上传日期
C++实现置换算法通过矩阵变换加密解密,内容简单实用!
密码学.rar
  • main.cpp
    1.6KB
  • 实验1 古典密码学.doc
    27KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/4695671/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/4695671/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#23454;&#39564;<span class="_ _0"> </span><span class="ff2 sc1">1 </span>&#21476;&#20856;&#23494;&#30721;&#23398;</div><div class="t m0 x2 h4 y3 ff1 fs1 fc0 sc0 ls0 ws0">&#19968;&#12289;<span class="_"> </span>&#23454;&#39564;&#30446;&#30340;</div><div class="t m0 x3 h5 y4 ff1 fs2 fc0 sc1 ls0 ws0">&#36890;&#36807;<span class="_ _1"></span>&#32534;&#31243;<span class="_ _1"></span>&#23454;&#29616;<span class="_ _1"></span>&#26367;&#20195;<span class="_ _1"></span>&#23494;&#30721;<span class="_ _1"></span>&#31639;&#27861;<span class="_ _1"></span>&#21644;&#32622;<span class="_ _1"></span>&#25442;&#23494;<span class="_ _1"></span>&#30721;&#31639;<span class="_ _1"></span>&#27861;&#65292;<span class="_ _1"></span>&#21152;&#28145;<span class="_ _1"></span>&#23545;&#21476;<span class="_ _1"></span>&#20856;&#23494;<span class="_ _1"></span>&#30721;&#20307;<span class="_ _1"></span>&#21046;&#30340;<span class="_ _1"></span>&#20102;&#35299;<span class="_ _2"> </span>&#65292;</div><div class="t m0 x2 h5 y5 ff1 fs2 fc0 sc1 ls0 ws0">&#20026;&#28145;&#20837;&#23398;&#20064;&#23494;&#30721;&#23398;&#22880;&#23450;&#22522;&#30784;&#12290;</div><div class="t m0 x2 h4 y6 ff1 fs1 fc0 sc0 ls0 ws0">&#20108;&#12289;<span class="_"> </span>&#23454;&#39564;&#21407;&#29702;</div><div class="t m0 x3 h5 y7 ff1 fs2 fc0 sc1 ls0 ws0">&#21476;&#20856;<span class="_ _1"></span>&#23494;&#30721;<span class="_ _1"></span>&#31639;&#27861;<span class="_ _1"></span>&#30340;&#20027;<span class="_ _1"></span>&#35201;&#24212;<span class="_ _1"></span>&#29992;&#23545;<span class="_ _1"></span>&#35937;&#26159;<span class="_ _1"></span>&#25991;&#23383;<span class="_ _1"></span>&#20449;&#24687;<span class="_ _1"></span>&#65292;&#21033;<span class="_ _1"></span>&#29992;&#23494;<span class="_ _1"></span>&#30721;&#31639;<span class="_ _1"></span>&#27861;&#23454;<span class="_ _1"></span>&#29616;&#25991;<span class="_ _1"></span>&#23383;&#20449;<span class="_ _1"></span>&#24687;&#30340;</div><div class="t m0 x2 h5 y8 ff1 fs2 fc0 sc1 ls0 ws0">&#21152;&#23494;&#21644;&#35299;&#23494;&#12290;&#19979;&#38754;&#20027;&#35201;&#35762;&#20004;&#31181;&#24120;&#35265;&#30340;&#20855;&#26377;&#20195;&#34920;&#24615;&#30340;&#21476;&#20856;&#23494;&#30721;&#31639;&#27861;&#12290;</div><div class="t m0 x4 h5 y9 ff3 fs2 fc0 sc1 ls0 ws0">1<span class="ff1">&#12289;<span class="_ _3"> </span>&#26367;&#20195;&#23494;&#30721;</span> </div><div class="t m0 x3 h5 ya ff1 fs2 fc0 sc1 ls0 ws0">&#26367;&#20195;<span class="_ _1"></span>&#23494;&#30721;<span class="_ _1"></span>&#31639;&#27861;<span class="_ _1"></span>&#30340;&#21407;<span class="_ _1"></span>&#29702;&#26159;<span class="_ _1"></span>&#20351;&#29992;<span class="_ _1"></span>&#26367;&#20195;<span class="_ _1"></span>&#27861;&#36827;<span class="_ _1"></span>&#34892;&#21152;<span class="_ _1"></span>&#23494;&#65292;<span class="_ _1"></span>&#23601;&#26159;<span class="_ _1"></span>&#23558;&#26126;<span class="_ _1"></span>&#25991;&#20013;<span class="_ _1"></span>&#30340;&#23383;<span class="_ _1"></span>&#31526;&#29992;<span class="_ _1"></span>&#20854;&#20182;</div><div class="t m0 x2 h5 yb ff1 fs2 fc0 sc1 ls0 ws0">&#23383;&#31526;&#26367;&#20195;&#21518;&#24418;&#25104;&#23494;&#25991;&#12290;&#20363;&#22914;&#65306;&#26126;&#25991;&#23383;&#27597;<span class="_ _4"> </span><span class="ff3">a,b,c,d,</span>&#29992;<span class="_ _4"> </span><span class="ff3">d,e,f,g<span class="_ _4"> </span></span>&#20316;&#23545;&#24212;&#26367;&#25442;&#21518;&#24418;&#25104;&#23494;&#25991;<span class="ff3">.</span></div><div class="t m0 x3 h5 yc ff1 fs2 fc0 sc1 ls0 ws0">&#26367;&#20195;&#23494;<span class="_ _1"></span>&#30721;&#21253;&#25324;&#22810;&#31181;<span class="_ _1"></span>&#31867;&#22411;<span class="_ _1"></span><span class="ff3">,<span class="_ _1"></span></span>&#22914;&#21333;&#34920;&#26367;<span class="_ _1"></span>&#20195;&#23494;&#30721;&#12289;<span class="_ _1"></span>&#22810;&#26126;&#30721;&#26367;&#20195;<span class="_ _1"></span>&#23494;&#30721;&#12289;&#22810;&#23383;<span class="_ _1"></span>&#27597;&#26367;&#20195;&#23494;</div><div class="t m0 x2 h5 yd ff1 fs2 fc0 sc1 ls0 ws0">&#30721;&#12289;<span class="_ _1"></span>&#22810;&#34920;<span class="_ _1"></span>&#26367;&#20195;<span class="_ _1"></span>&#23494;&#30721;<span class="_ _1"></span>&#31561;&#12290;<span class="_ _1"></span>&#20197;&#21333;<span class="_ _1"></span>&#34920;&#26367;<span class="_ _1"></span>&#20195;&#23494;<span class="_ _1"></span>&#30721;&#8212;<span class="_ _1"></span>&#8212;&#24698;<span class="_ _1"></span>&#25746;&#23494;<span class="_ _1"></span>&#30721;&#20026;<span class="_ _1"></span>&#20363;&#12290;<span class="_ _1"></span>&#23427;&#30340;<span class="_ _1"></span>&#21152;&#23494;<span class="_ _1"></span>&#26041;&#27861;<span class="_ _1"></span>&#23601;&#26159;</div><div class="t m0 x2 h5 ye ff1 fs2 fc0 sc1 ls0 ws0">&#23558;<span class="_ _1"></span>&#26126;&#25991;<span class="_ _1"></span>&#20013;&#30340;<span class="_ _1"></span>&#27599;<span class="_ _1"></span>&#20010;&#23383;<span class="_ _1"></span>&#27597;<span class="_ _1"></span>&#29992;&#27492;<span class="_ _1"></span>&#23383;&#31526;<span class="_ _1"></span>&#22312;<span class="_ _1"></span>&#23383;&#27597;<span class="_ _1"></span>&#34920;<span class="_ _1"></span>&#20013;&#21518;<span class="_ _1"></span>&#38754;&#31532;<span class="_ _3"> </span><span class="ff3">k<span class="_"> </span></span>&#20010;&#23383;<span class="_ _1"></span>&#27597;&#26367;<span class="_ _1"></span>&#20195;<span class="_ _1"></span>&#12290;&#23427;<span class="_ _1"></span>&#30340;<span class="_ _1"></span>&#21152;&#23494;<span class="_ _1"></span>&#36807;&#31243;</div><div class="t m0 x2 h5 yf ff1 fs2 fc0 sc1 ls0 ws0">&#21487;&#20197;&#34920;&#31034;&#20026;&#19979;&#38754;&#30340;&#20989;&#25968;&#65306;</div><div class="t m0 x3 h5 y10 ff3 fs2 fc0 sc1 ls0 ws0">E<span class="ff1">&#65288;<span class="_ _1"></span></span>m<span class="ff1">&#65289;<span class="_ _1"></span></span>=<span class="ff1">&#65288;</span>m+k<span class="_ _1"></span><span class="ff1">&#65289;</span>modn<span class="_ _5"> </span><span class="ff1">&#65292;&#20854;<span class="_ _1"></span>&#20013;&#65292;</span>m<span class="_"> </span><span class="ff1">&#20026;&#26126;&#25991;<span class="_ _1"></span>&#23383;&#27597;&#22312;&#23383;<span class="_ _1"></span>&#27597;&#34920;<span class="_ _1"></span>&#20013;&#30340;&#20301;<span class="_ _1"></span>&#32622;&#25968;&#65307;<span class="_ _6"></span></span>n<span class="_ _4"> </span><span class="ff1">&#20026;</span></div><div class="t m0 x2 h5 y11 ff1 fs2 fc0 sc1 ls0 ws0">&#23383;&#27597;&#34920;&#20013;&#30340;&#23383;&#27597;&#20010;&#25968;&#65307;<span class="ff3">k<span class="_ _4"> </span></span>&#20026;&#23494;&#38053;&#65307;<span class="ff3">E</span>&#65288;<span class="ff3">m</span>&#65289;&#20026;&#23494;&#25991;&#23383;&#27597;&#22312;&#23383;&#27597;&#34920;&#20013;&#23545;&#24212;&#30340;&#20301;&#32622;&#25968;&#12290;</div><div class="t m0 x4 h5 y12 ff3 fs2 fc0 sc1 ls0 ws0">2<span class="ff1">&#12289;<span class="_ _3"> </span>&#32622;&#25442;&#23494;&#30721;</span></div><div class="t m0 x3 h5 y13 ff1 fs2 fc0 sc1 ls0 ws0">&#32622;&#25442;<span class="_ _1"></span>&#23494;&#30721;<span class="_ _1"></span>&#31639;&#27861;<span class="_ _1"></span>&#30340;&#21407;<span class="_ _1"></span>&#29702;&#26159;<span class="_ _1"></span>&#19981;&#25913;<span class="_ _1"></span>&#21464;&#26126;<span class="_ _1"></span>&#25991;&#23383;<span class="_ _1"></span>&#31526;&#65292;<span class="_ _1"></span>&#21482;&#23558;<span class="_ _1"></span>&#23383;&#31526;<span class="_ _1"></span>&#22312;&#26126;<span class="_ _1"></span>&#25991;&#20013;<span class="_ _1"></span>&#30340;&#25490;<span class="_ _1"></span>&#21015;&#39034;<span class="_ _1"></span>&#24207;&#25913;</div><div class="t m0 x2 h5 y14 ff1 fs2 fc0 sc1 ls0 ws0">&#21464;&#65292;&#20174;&#32780;&#23454;&#29616;&#26126;&#25991;&#20449;&#24687;&#30340;&#21152;&#23494;&#12290;&#32622;&#25442;&#23494;&#30721;&#26377;&#26102;&#21448;&#31216;&#20026;&#25442;&#20301;&#23494;&#30721;&#12290;</div><div class="t m0 x3 h5 y15 ff1 fs2 fc0 sc1 ls0 ws0">&#30697;&#38453;<span class="_ _1"></span>&#25442;&#20301;<span class="_ _1"></span>&#27861;&#26159;<span class="_ _1"></span>&#23454;&#29616;<span class="_ _1"></span>&#32622;&#25442;<span class="_ _1"></span>&#23494;&#30721;<span class="_ _1"></span>&#30340;&#19968;<span class="_ _1"></span>&#31181;&#24120;<span class="_ _1"></span>&#29992;&#26041;<span class="_ _1"></span>&#27861;&#12290;<span class="_ _1"></span>&#23427;&#23558;<span class="_ _1"></span>&#26126;&#25991;<span class="_ _1"></span>&#20013;&#30340;<span class="_ _1"></span>&#23383;&#27597;<span class="_ _1"></span>&#25353;&#29031;<span class="_ _1"></span>&#32473;&#23450;</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div></body></html>
评论
    相关推荐