MD5Calc.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MD5Calc
{
public partial class MD5Calc : Form
{
public MD5Calc()
{
InitializeComponent();
}
/// <summary>
/// 点击按钮,比较MD5值
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Compare_Click(object sender, EventArgs e)
{
string t_Result = txtResult.Text.Trim();
string t_Compare = txtCompare.Text.Trim();
if (t_Result.Length > 0 || t_Compare.Length > 0)
{
if (t_Result.Length == t_Compare.Length && t_Result == t_Compare)
{
MessageBox.Show("MD5值与参照值 相同 ");
}
else
{
MessageBox.Show("MD5值与参照值 不相同 ");
}
}
else
{
MessageBox.Show("没有可比较的值,请输入");
}
}
/// <summary>
/// 当文本有改变的时候,触发事件,执行MD5加密
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void txtMess_TextChanged(object sender, EventArgs e)
{
//文件
if (rbFile.Checked)
{
//选择文件的时候,不允许用户键盘输入,只能选择拖拽
后面还有 87 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。