private void button4_Click(object sender, EventArgs e) { string file_name = ApplicationFolder + "/LastKey.txt"; string source = textBox2.Text; System.IO.StreamReader objReader; objReader = new System.IO.StreamReader(file_name); Crypter encrypt = new Crypter(); textBox2.Text = encrypt.Decrypt(objReader.ReadToEnd()); objReader.Close(); }
private void button5_Click(object sender, EventArgs e) { // Save Button Crypter encrypt = new Crypter(); File.WriteAllText(ApplicationFolder + "/LastKey.txt", encrypt.Encrypt(textBox2.Text)); }