43 lines
970 B
C#
43 lines
970 B
C#
using Lskj.Control;
|
|
using Lskj.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Lskj.PubPwdDecryption
|
|
{
|
|
public partial class FrmMain : BaseForm
|
|
{
|
|
public FrmMain()
|
|
{
|
|
InitializeComponent();
|
|
this.textBox1.KeyDown += TextBox1_KeyDown;
|
|
this.textBox2.ReadOnly = true;
|
|
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
}
|
|
|
|
private void TextBox1_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
try
|
|
{
|
|
if (e.KeyCode == Keys.Enter)
|
|
{
|
|
string text = AESUtil.Decrypt(this.textBox1.Text);
|
|
this.textBox2.Text = text;
|
|
|
|
}
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|