能力值:
( LV8,RANK:120 )
2 楼
谢谢,适合我这样的.Net入门者。。
能力值:
( LV2,RANK:10 )
3 楼
蛮好玩的。
能力值:
( LV2,RANK:10 )
4 楼
暴力破解
------------------------分割线--------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace CrackMe
{
class Program
{
public static void Main(string[] args)
{
string s;
Program pm = new Program();
s = "pengyouak123";
pm.getKey(s);
}
private void getKey(string s)
{
Chk1(MoveByte(Md5Byte(bt1(s))));
}
private byte[] bt1(string s)
{
return Encoding.ASCII.GetBytes(s);
}
private byte[] Md5Byte(byte[] s)
{
MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
return provider.ComputeHash(s);
} private byte[] MoveByte(byte[] s)
{
for (int i = 0; i < s.Length; i++)
{
s[i] = this.Move(s[i]);
}
return s;
} private byte Move(byte s)
{
return (byte)((((s + 0x34) << 2) >> 3) + this.Opera((s > 30) ? ((byte)(s / 0x34)) : s));
} private byte Opera(byte s)
{
return (byte)this.TempSum((long)s);
}
private long TempSum(long s)
{
return ((s == 0L) ? 0L : ((s == 1L) ? 0L : ((s == 2L) ? 1L : (this.TempSum(s - 1L) + this.TempSum(s - 2L)))));
} private void Chk1(byte[] s)
{
Console.WriteLine("{0}", BitConverter.ToString(s).Replace("-", ""));
}
}
}