C#生成注册码的小例子
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.jbxue.com
string s = "";
Random rdid = new Random();
for (int i = 0; i < 9; i++) //从数组随机抽取字符组成新的字符生成机器三
{
s += strid[rdid.Next(0, strid.Length)];
}
您可能感兴趣的文章:
C#生成注册码的小例子
php动态生成函数的例子
C# 生成注册码的代码一例
php验证码大全(实例分享)
c#读写注册表代码一例
Windows服务器组件安全设置策略
PHP怎么防止账号批量注册
C#生成软件注册码的方法与代码
Golang注册Eureka的工具包goeureka发布
深入解析tcsh的初始化配置文件