Enter plaintext, replace it with password 3421567, and perform a multiple-step substitution after implementation
Using System.Collections.Generic;
Using System.Text; Namespace Zhihuan {class Program {static void Main (string[] args) {Cha r[,] mingwen=new char[4,7]{{' a ', ' t ', ' t ', ' a ', ' C ', ' K ', ' P '},{' o ', ' s ', ' t ', ' P ', ' O ', ' n ', ' E '},
{' d ', ' u ', ' n ', ' t ', ' I ', ' l ', ' t '},{' w ', ' o ', ' a ', ' m ', ' x ', ' y ', ' z '};
int[] Miyao = new int[]{3, 4, 2, 1, 5, 6, 7};
Char[] Miwen=new char[28];
Console.WriteLine ("Clear Text:");
for (int i = 0, i < 4; i++) {for (int j = 0; J < 7; J + +)
{Console.Write (Mingwen[i, j]);
} Console.WriteLine ();
} Console.WriteLine ();
Console.Write ("ciphertext:");
for (int i = 0; i < 7;i++) {int k = miyao[i]-1;
for (int j = 0; j< 4;j++) { Console.Write (Mingwen[j,k]);
int y=0;
MIWEN[Y]=MINGWEN[J,K];
y++;
}} Console.WriteLine ();
Console.readkey (); }
}
}