ibms-dome/z01_WinAPP/fmDecrypt.cs

37 lines
841 B
C#
Raw Normal View History

2023-04-11 10:28:33 +08:00
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);
}
}
}