资源简介
针对硬件绑定 软件序列号生成 , 序列号检测, 相当的好用,都加了注释
代码片段和文件信息
using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
//Copyright (C) 2011-2012 Artem Los www.clizware.net.
//The author of this code shall get the credits
// This project uses two general algorithms:
// - Artem‘s Information Storage Format (Artem‘s ISF-2)
// - Artem‘s Serial Key Algorithm (Artem‘s SKA-2)
// A great thank to Iberna (https://www.codeplex.com/site/users/view/lberna)
// for getHardDiskSerial algorithm.
using System.Text;
using System.Management;
using System.Security;
using System.Numerics;
[assembly: AllowPartiallyTrustedCallers()]
namespace SKGL
{
#region 序列号生成程序库
#region 配置相关
/// 基本的配置抽象类
public abstract class baseConfiguration
{
//将所有的需要共享的函数、变量都放到这里,注意这个类必须继承后才能使用
protected internal string _key = ““;
/// 要存储的key
public virtual string Key
{
//将随着生成和验证类的变化而变化
get { return _key; }
set { _key = value; }
}
/// 机器码
public virtual int MachineCode
{
get { return getMachineCode(); }
}
/// 获取机器码的核心函数
///
[SecuritySafeCritical]
private static int getMachineCode()
{
// * Copyright (C) 2012 Artem Los All rights reserved.
// *
// * This code will generate a 5 digits long key finger print of the system
// * where this method is being executed. However that might be changed in the
// * hash function “GetStableHash“ by changing the amount of zeroes in
// * MUST_BE_LESS_OR_EQUAL_TO to the one you want to have. Ex 1000 will return
// * 3 digits long hash.
// *
// * Please note that you might also adjust the order of these but remember to
// * keep them there because as it is stated at
// * (http://www.codeproject.com/Articles/17973/How-To-Get-Hardware-Information-CPU-ID-MainBoard-I)
// * the processorID might be the same at some machines which will generate same
// * hashes for several machines.
// *
// * The function will probably be implemented into SKGL Project at http://skgl.codeplex.com/
// * and Software Protector at http://softwareprotector.codeplex.com/ so I
// * release this code under the same terms and conditions as stated here:
// * http://skgl.codeplex.com/license
// *
// * Any questions please contact me at
// * * artem@artemlos.net
//
methods m = new methods();
ManagementobjectSearcher searcher = new ManagementobjectSearcher(“select * from
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 378 2015-06-18 11:09 SKGL-master\.gitattributes
..A..H. 3280 2015-06-18 11:09 SKGL-master\.gitignore
..A..H. 69120 2018-11-09 10:14 SKGL-master\.vs\SKGL 2.0.5.2\v14\.suo
文件 42661 2015-06-18 11:09 SKGL-master\DotNet平台序列号生成组件SKGL帮助文档(QQ1287263703制作).chm
文件 13824 2018-11-09 08:30 SKGL-master\SKGL 2.0.5.2\bin\Debug\SKGL.dll
文件 36352 2018-11-09 08:30 SKGL-master\SKGL 2.0.5.2\bin\Debug\SKGL.pdb
文件 3739 2018-11-09 08:30 SKGL-master\SKGL 2.0.5.2\bin\Debug\SKGL.xm
文件 12800 2018-11-09 10:48 SKGL-master\SKGL 2.0.5.2\bin\Release\SKGL.dll
文件 32256 2018-11-09 10:48 SKGL-master\SKGL 2.0.5.2\bin\Release\SKGL.pdb
文件 6693 2018-11-09 09:23 SKGL-master\SKGL 2.0.5.2\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1683 2018-11-09 08:30 SKGL-master\SKGL 2.0.5.2\obj\Debug\SKGL 2.0.5.2.csproj.FileListAbsolute.txt
文件 2056 2018-01-06 11:00 SKGL-master\SKGL 2.0.5.2\obj\Debug\SKGL 2.0.5.2.csprojResolveAssemblyReference.cache
文件 13824 2018-11-09 08:30 SKGL-master\SKGL 2.0.5.2\obj\Debug\SKGL.dll
文件 36352 2018-11-09 08:30 SKGL-master\SKGL 2.0.5.2\obj\Debug\SKGL.pdb
文件 6697 2018-11-09 09:23 SKGL-master\SKGL 2.0.5.2\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
文件 1312 2018-11-09 09:24 SKGL-master\SKGL 2.0.5.2\obj\Release\SKGL 2.0.5.2.csproj.FileListAbsolute.txt
文件 2056 2018-11-09 09:24 SKGL-master\SKGL 2.0.5.2\obj\Release\SKGL 2.0.5.2.csprojResolveAssemblyReference.cache
文件 12800 2018-11-09 10:48 SKGL-master\SKGL 2.0.5.2\obj\Release\SKGL.dll
文件 32256 2018-11-09 10:48 SKGL-master\SKGL 2.0.5.2\obj\Release\SKGL.pdb
文件 1464 2015-06-18 11:09 SKGL-master\SKGL 2.0.5.2\Properties\AssemblyInfo.cs
文件 2819 2015-06-18 11:09 SKGL-master\SKGL 2.0.5.2\SKGL 2.0.5.2.csproj
文件 3642 2015-06-18 11:09 SKGL-master\SKGL 2.0.5.2\SKGL 2.0.5.2.sln
文件 28706 2018-11-09 10:48 SKGL-master\SKGL 2.0.5.2\SKGL.cs
文件 1455 2015-06-18 11:09 SKGL-master\SKGL 2.0.5.2.sln
..A..H. 58880 2017-11-02 15:11 SKGL-master\SKGL 2.0.5.2.v11.suo
文件 26112 2017-02-18 16:35 SKGL-master\SKGL 2.0.5.2.v12.suo
文件 13824 2018-11-09 08:30 SKGL-master\SKGLDemo\bin\Debug\SKGL.dll
文件 36352 2018-11-09 08:30 SKGL-master\SKGLDemo\bin\Debug\SKGL.pdb
文件 3739 2018-11-09 08:30 SKGL-master\SKGLDemo\bin\Debug\SKGL.xm
文件 6144 2018-11-09 08:43 SKGL-master\SKGLDemo\bin\Debug\SKGLDemo.exe
............此处省略50个文件信息
- 上一篇:c#记事本MDI多窗口记事本
- 下一篇:Asp.net范例开发大全
评论
共有 条评论