C#注册码。
string t = DateTime.Now.Ticks.ToString();
t = DESKey.DESEncrypt(t, DESKey.DesKeyStr);
string[] strid = new string[t.Length];//
for (int i = 0; i < t.Length; i++) //把字符赋给数组
{
strid[i] = t.Substring(i, 1);
}
//by http://www.jb200.com
string s = "";
Random rdid = new Random();
for (int i = 0; i < 9; i++) //从数组随机抽取字符组成新的字符生成机器三
{
s += strid[rdid.Next(0, strid.Length)];
}