C#对称加密解密 StreamReader sd = new StreamReader(textBox1.Text); string srd = sd.ReadToEnd(); sd.Close(); finfo.Delete(); StreamWriter sw = new StreamWriter(textBox1.Text, true); sw.Write(sm.Encrypto(srd))