.Net程序的一种加密方式
Dear All附件是一个.Net的小程序,使用了C++进行加密,防止轻易被反编译。这种加密方式安全吗? public Form1()
{
this.InitializeComponent();
base.FormBorderStyle = FormBorderStyle.None;
base.TransparencyKey = this.BackColor;
this.DoubleBuffered = true;
base.ShowInTaskbar = false;
this.timer1.Interval = 300;
this._x = Screen.PrimaryScreen.WorkingArea.Width / 2;
this._y = Screen.PrimaryScreen.WorkingArea.Height / 2;
}
// Token: 0x06000002 RID: 2 RVA: 0x000020D0 File Offset: 0x000002D0
private void timer1_Tick(object sender, EventArgs e)
{
Random random = new Random();
int x = random.Next(this._x - 300, this._x + 300);
int y = random.Next(this._y - 300, this._y + 300);
base.Location = new Point(x, y);
}
// Token: 0x06000003 RID: 3 RVA: 0x0000212C File Offset: 0x0000032C
protected override void OnPaint(PaintEventArgs e)
{
Graphics graphics = e.Graphics;
graphics.DrawLine(Pens.Green, 0, 50, 100, 50);
graphics.DrawLine(Pens.Green, 50, 0, 50, 100);
base.OnPaint(e);
}
// Token: 0x06000004 RID: 4 RVA: 0x0000215E File Offset: 0x0000035E
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
base.Dispose(disposing);
} private void timer1_Tick(object sender, EventArgs e)
{
Random random = new Random();
int x = random.Next(this._x - 300, this._x + 300);
int y = random.Next(this._y - 300, this._y + 300);
base.Location = new Point(x, y);
}
protected override void OnPaint(PaintEventArgs e)
{
Graphics graphics = e.Graphics;
graphics.DrawLine(Pens.Green, 0, 50, 100, 50);
graphics.DrawLine(Pens.Green, 50, 0, 50, 100);
base.OnPaint(e);
} ps122 发表于 2020-6-1 15:07
private void timer1_Tick(object sender, EventArgs e)
{
Random random = n ...
{:1_893:}厉害厉害分分钟搞定 ps122 发表于 2020-6-1 15:07
private void timer1_Tick(object sender, EventArgs e)
{
Random random = n ...
跪了,是加密方式太low还是大佬太强{:1_908:} dplxin 发表于 2020-6-1 16:02
public Form1()
{
this.InitializeComponent();
跪了,是加密方式太low还是大佬太强{:1_908:} C#感觉就是裸奔 .... c#只能把核心算法放服务器端 .net core CoreRT生成native代码,应该会安全很多吧 楼主你是不是把软件加密与破解理解错了?
你这种作法是没有任何用处的。软件破解是静态的,不是加载运行你的程序,而且直接读取你程序的字节流然后进行分析。
软件加壳的作用是把你的程序放在一个盒子里,不让别人轻意读取到你真实的字节流。