static void Main(string[] args) { string fraseNormal = null; var bla = new CesarCypher(); var respostta = bla.Crypt(fraseNormal); Console.WriteLine(respostta); }
static void Main(string[] args) { CesarCypher cypher = new CesarCypher(); string msgTeste = "the quick brown fox jumps over the lazy dog"; msgTeste = cypher.Crypt(msgTeste); Console.WriteLine("Encriptografada: " + msgTeste); msgTeste = cypher.Decrypt(msgTeste); Console.WriteLine("Decriptografada: " + msgTeste); }
static void Main(string[] args) { StreamReader streamReader = new StreamReader("input.txt"); var input = streamReader.ReadLine(); string cyphered; try { Console.WriteLine("Зашифрованный текст:"); cyphered = CesarCypher.Cypher(input, 5, 29); Console.WriteLine(cyphered); Console.WriteLine("Расшифрованный текст:"); Console.WriteLine(CesarCypher.Cypher(cyphered, 5, 29, false)); } catch (Exception e) { Console.WriteLine(e); throw; } }