text:004036FB db 0
.text:004036FC db 0
.text:004036FD db 0Dh
.text:004036FE db 45h ; E
.text:004036FF db 0
.text:00403700 db 72h ; r
.text:00403701 db 0
.text:00403702 db 72h ; r
.text:00403703 db 0
.text:00403704 db 6Fh ; o
.text:00403705 db 0
.text:00403706 db 72h ; r
.text:00403707 db 0
.text:00403708 db 21h ; !
.text:00403709 db 0
.text:0040370A db 0
.text:0040370B db 1
.text:0040370C db 0
.text:0040370D db 25h ; %
.text:0040370E db 54h ; T
.text:0040370F db 0
.text:00403710 db 65h ; e
.text:00403711 db 0
.text:00403712 db 78h ; x
.text:00403713 db 0
.text:00403714 db 74h ; t
.text:00403715 db 0
.text:00403716 db 20h
.text:00403717 db 0
.text:00403718 db 63h ; c
.text:00403719 db 0
.text:0040371A db 61h ; a
.text:0040371B db 0
.text:0040371C db 6Eh ; n
.text:0040371D db 0
.text:0040371E db 20h
.text:0040371F db 0
.text:00403720 db 6Eh ; n
.text:00403721 db 0
.text:00403722 db 6Fh ; o
.text:00403723 db 0
.text:00403724 db 74h ; t
.text:00403725 db 0
.text:00403726 db 20h
.text:00403727 db 0
.text:00403728 db 6Eh ; n
.text:00403729 db 0
.text:0040372A db 75h ; u
.text:0040372B db 0
.text:0040372C db 6Ch ; l
.text:0040372D db 0
.text:0040372E db 6Ch ; l
.text:0040372F db 0
.text:00403730 db 21h ; !
.text:00403731 db 0
.text:00403732 db 0
.text:00403733 db 1Dh
.text:00403734 db 57h ; W
.text:00403735 db 0
.text:00403736 db 72h ; r
.text:00403737 db 0
.text:00403738 db 6Fh ; o
.text:00403739 db 0
.text:0040373A db 6Eh ; n
.text:0040373B db 0
.text:0040373C db 67h ; g
.text:0040373D db 0
.text:0040373E db 20h
.text:0040373F db 0
.text:00403740 db 6Dh ; m
.text:00403741 db 0
.text:00403742 db 65h ; e
.text:00403743 db 0
.text:00403744 db 73h ; s
.text:00403745 db 0
.text:00403746 db 73h ; s
.text:00403747 db 0
.text:00403748 db 61h ; a
.text:00403749 db 0
.text:0040374A db 67h ; g
.text:0040374B db 0
.text:0040374C db 65h ; e
.text:0040374D db 0
.text:0040374E db 21h ; !
public b()
{
this.a = false;
this.b = "textBox1.Text";
this.c = null;
this.b();
}
internal class d
{
// Methods
public d();
public string a(string A_0);
}
public string a(string A_0)
{
string str = "T";
for (int i = A_0.Length - 1; i >= 0; i--)
{
str = str + A_0.Substring(i, 1);
}
return str;
}
private string b(string A_0)
{
byte[] bytes = Encoding.Default.GetBytes(A_0.ToCharArray());
byte[] buffer2 = new MD5CryptoServiceProvider().ComputeHash(bytes);
d d = new d();
return d.a(BitConverter.ToString(buffer2).Replace("-", ""));
}
private int c(string A_0)
{
if (A_0 == "")
{
MessageBox.Show("Text can not null!");
return -1;
}
if (A_0.Trim() != this.b(this.b))
{
MessageBox.Show("Wrong message!");
return -1;
}
this.a = true;
return 1;
}
密码明文:textBox1.Text
加密函数:
private string b(string A_0)
{
byte[] bytes = Encoding.Default.GetBytes(A_0.ToCharArray());
byte[] buffer2 = new MD5CryptoServiceProvider().ComputeHash(bytes);
d d = new d();
return d.a(BitConverter.ToString(buffer2).Replace("-", ""));
}
密文:
TCE9FD18E8F3794F50FC61FABFF46CA8C
知道了明文是:textBox1.Text
可以通过以下C#代码获取加密后的密文:
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;
using System.Security.Cryptography;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
class d
{
public string a(string A_0)
{
string str = "T";
for (int i = A_0.Length - 1; i >= 0; i--)
{
str = str + A_0.Substring(i, 1);
}
return str;
}
}
private string b(string A_0)
{
byte[] bytes = Encoding.Default.GetBytes(A_0.ToCharArray());
byte[] buffer2 = new MD5CryptoServiceProvider().ComputeHash(bytes);
d d = new d();
return d.a(BitConverter.ToString(buffer2).Replace("-", ""));
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text=b("textBox1.Text");
}
}
}