07-06-21, 01:50 AM
Using C# language Implement the following:
Read any length of secret Key from console .
Convert the secret Key to byte array K[].
Create S[] are set equal to the values from 0 through 255 in ascending order; that is; S[0] = 0, S[1] = 1,..., S[255] = 255.
Create T[] A temporary byte array.
Implement the code For
For i = 0 to 256
do
S[i] = i;
T[i] = K[i mod keylen];
Write the output T[] to Console.
Read any length of secret Key from console .
Convert the secret Key to byte array K[].
Create S[] are set equal to the values from 0 through 255 in ascending order; that is; S[0] = 0, S[1] = 1,..., S[255] = 255.
Create T[] A temporary byte array.
Implement the code For
For i = 0 to 256
do
S[i] = i;
T[i] = K[i mod keylen];
Write the output T[] to Console.