网上的类,很感兴趣,写了这个DES文件加密程序,已测试通过。
补充 button3_Click改为下述代码:
private void button3_Click(object sender, EventArgs e)
{
sFileIn = this.textBox1.Text;
sFileOut = this.textBox2.Text;
TripleDES_ rsa1 = new TripleDES_("destroyer)(*&^%$#@!");
//RSA_ rsa2 = new RSA_();
if (this.radioButton1.Checked)
{
rsa1.Encrypt(sFileIn, sFileOut);
}
else
{
rsa1.Decrypt(sFileIn, sFileOut);
}
this.textBox3.Text = "OK!";
}
1