public string keygen(string text) { string strKey = ""; //Random rnd = new Random(); CharGeneration cg = new CharGeneration(); for (int i = 0; i < text.Length; i++) { strKey += cg.chargen(); //File.WriteAllText(@"D:\Users\AlexFade\Documents\Visual Studio 2013\Projects\Lab1_VernamCipher\key.txt", strKey); } //Console.WriteLine("key:\n" + strKey); return strKey; }
public string keygen(string text) { string strKey = ""; //Random rnd = new Random(); CharGeneration cg = new CharGeneration(); for (int i = 0; i < text.Length; i++) { strKey += cg.chargen(); //File.WriteAllText(@"D:\Users\AlexFade\Documents\Visual Studio 2013\Projects\Lab1_VernamCipher\key.txt", strKey); } //Console.WriteLine("key:\n" + strKey); return(strKey); }