資源簡介
針對硬件綁定 軟件序列號生成 , 序列號檢測, 相當?shù)暮糜?都加了注釋

代碼片段和文件信息
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?配置相關(guān)
????///?基本的配置抽象類
????public?abstract?class?baseConfiguration
????{
????????//將所有的需要共享的函數(shù)、變量都放到這里,注意這個類必須繼承后才能使用
????????protected?internal?string?_key?=?““;
????????///?要存儲的key
????????public?virtual?string?Key
????????{
????????????//將隨著生成和驗證類的變化而變化
????????????get?{?return?_key;?}
????????????set?{?_key?=?value;?}
????????}
????????///?機器碼
????????public?virtual?int?MachineCode
????????{
????????????get?{?return?getMachineCode();?}
????????}
????????///?獲取機器碼的核心函數(shù)
????????///?
????????[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范例開發(fā)大全
評論
共有 條評論