private void button1_Click(object sender, EventArgs e) { byte[] cipherbytes= Encoding.ASCII.GetBytes(label6.Text); System.IO.MemoryStream ms1 = new System.IO.MemoryStream(cipherbytes); cipherbytes = ms1.ToArray(); CryptoStream cs1 = new CryptoStream(ms1, desObj.CreateDecryptor(), CryptoStreamMode.Read); cs1.Read(cipherbytes, 0, cipherbytes.Length); plainbytes2 = ms1.ToArray(); cs1.Close(); ms1.Close(); label7.Text = Encoding.ASCII.GetString(plainbytes2); }
desObj
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)