37 lines
841 B
C#
37 lines
841 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Text;
|
|||
|
using System.Windows.Forms;
|
|||
|
using Repository.Models;
|
|||
|
|
|||
|
namespace z01_WinAPP
|
|||
|
{
|
|||
|
public partial class fmDecrypt : Form
|
|||
|
{
|
|||
|
EDFunction ed = new EDFunction();
|
|||
|
public fmDecrypt()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 加密
|
|||
|
/// </summary>
|
|||
|
/// <param name="sender"></param>
|
|||
|
/// <param name="e"></param>
|
|||
|
private void button1_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
tbAfter.Text = ed.AESEncrypt(tbBefore.Text);
|
|||
|
}
|
|||
|
|
|||
|
//解密
|
|||
|
private void button2_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
tbAfter.Text = ed.AESDecrypt(tbBefore.Text);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|