منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : محتاج مساعدة
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
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.