public static void Main() { CipherComp cc = new CipherComp(); string text = "Это простой тест"; string ciphertext = cc.Encode(text); Console.WriteLine(ciphertext); string plaintext = cc.Decode(ciphertext); Console.WriteLine(plaintext); cc.Dispose(); // Освобождаем ресурсы. }
static void Main(string[] args) { { for (int k = 1; k <= 1000; k++) { CipherComp сc = new CipherComp(); for (uint i = 0; i < 32; i++) { сc.Fn(i, 1); } сc.Dispose(); } } }
public static void Main() { CipherComp cc = new CipherComp(); string text = "Testing"; string ciphertext = cc.Encode(text); Console.WriteLine(ciphertext); string plaintext = cc.Decode(ciphertext); Console.WriteLine(plaintext); text = "Components are powerful"; ciphertext = cc.Encode(text); Console.WriteLine(ciphertext); plaintext = cc.Decode(ciphertext); Console.WriteLine(plaintext); cc.Dispose(); Console.Read(); }
public static void Main() { CipherComp cc = new CipherComp(); string text = "Тестирование"; string ciphertext = cc.Encode(text); Console.WriteLine(ciphertext); string plaintext = cc.Decode(ciphertext); Console.WriteLine(plaintext); text = "Компоненты - мощное средство языка C#."; ciphertext = cc.Encode(text); Console.WriteLine(ciphertext); plaintext = cc.Decode(ciphertext); Console.WriteLine(plaintext); cc.Dispose(); // Освобождаем ресурсы. }