/移位密码的加密#includevoid main()char shifting26,ch=a;int i,cipherText26,k=0,key;for(i=0;i26)cipherTexti=cipherTexti%26;printf(“经过移位加密后的密文如下:n“);/对密文的输出for(i=0;i#define N 26void main()char MN,ch=a; char CN,C1N=“qwertyuiopasdfghjklzxcvbnm“;int i,k=0;for(i=0;iN;i+)Mi=ch;ch+;printf(“请输入要进行代换加密的密码:(az)“);/只准小写doscanf(“%c“,for(i=0;i26;i+)if(Mi=ch)Ck=C1i;k+;while(ch!=n);printf(“经代换加密后的密文如下n“);for(i=0;ik;i+)printf(“%c “,Ci);printf(“n“);