码迷,mamicode.com
首页 > 其他好文 > 详细

代换加密

时间:2020-03-23 10:00:29      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:style   ring   size   ++   color   cout   code   xss   turn   

#include "stdafx.h"
#include "iostream"
using namespace std;
#include "string"

char a[26]={d,l,r,y,v,o,h,e,z,x,w,p,t,b,g,f,j,q,n,m,u,s,k,a,c,i};//代换表

void fuc(string s)
{
    for(int i=0;i<s.size();i++)
        s[i]=a[s[i]-65];
    cout<<s<<endl;
}
int _tmain(int argc, _TCHAR* argv[])
{
    string s="MGZVYZLGHCMHJMYXSSFMNHAHYCDLMHA";
    fuc(s);
    return 0;
}

 

代换加密

标签:style   ring   size   ++   color   cout   code   xss   turn   

原文地址:https://www.cnblogs.com/butchert/p/12550022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!