资源简介
採用VS2010,自己在康耐視官網嘗試出來的脫機密鑰規則
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace In_Sight_Key_Generator
{
public partial class Form1 : Form
{
string[] data = new string[] { “0“ “1“ “2“ “3“ “4“ “5“ “6“ “7“ “8“ “9“ “a“ “b“ “c“ “d“ “e“ “f“ };
string[] data1 = new string[] { “4“ “7“ “6“ “1“ “0“ “3“ “2“ “d“ “c“ “f“ “e“ “9“ “8“ “b“ “a“ “5“ };
string[] data2 = new string[] { “c“ “d“ “e“ “f“ “0“ “1“ “2“ “3“ “4“ “5“ “6“ “7“ “8“ “9“ “a“ “b“ };
string[] data3 = new string[] { “0“ “3“ “2“ “d“ “c“ “f“ “e“ “9“ “8“ “b“ “a“ “5“ “4“ “7“ “6“ “1“ };
string[] data4 = new string[] { “4“ “5“ “a“ “b“ “8“ “9“ “e“ “f“ “c“ “d“ “2“ “3“ “0“ “1“ “6“ “7“ };
string[] data5 = new string[] { “4“ “5“ “a“ “b“ “8“ “9“ “e“ “f“ “c“ “d“ “2“ “3“ “0“ “1“ “6“ “7“ };
string[] data6 = new string[] { “1“ “0“ “7“ “6“ “5“ “4“ “b“ “a“ “9“ “8“ “f“ “e“ “d“ “c“ “3“ “2“ };
string[] data7 = new string[] { “2“ “1“ “0“ “7“ “6“ “5“ “4“ “b“ “a“ “9“ “8“ “f“ “e“ “d“ “c“ “3“ };
string[] data8 = new string[] { “7“ “4“ “5“ “a“ “b“ “8“ “9“ “e“ “f“ “c“ “d“ “2“ “3“ “1“ “0“ “6“ };
string a1 a2 a3 a4 a5 a6 a7 a8;
bool blnNextEnable;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
if (txt1.Text.Length == 8)
{
a1 = Str(1 num(txt1.Text.Substring (71)));
a2 = Str(2 num(txt1.Text.Substring(6 1)));
a3 = Str(3 num(txt1.Text.Substring(5 1)));
a4 = Str(4 num(txt1.Text.Substring(4 1)));
a5 = Str(5 num(txt1.Text.Substring(3 1)));
a6 = Str(6 num(txt1.Text.Substring(2 1)));
a7 = Str(7 num(txt1.Text.Substring(1 1)));
a8 = Str(8 num(txt1.Text.Substring(0 1)));
txt2.Text = a8 + a7 + a6 + a5 + a4 + a3 + a2 + a1;
}
}
private int num(string abc)
{
for (int i = 0; i < 16; i++)
{
if (abc == data[i])
{
return i;
}
}
return 0;
}
private string Str(int int8ofOne int int16ofOne)
{
switch (int8ofOne)
{
case 1:
blnNextEnable = false;
if (int16ofOne > 6) blnNextEnable = true;
return data1[int16ofOne];
case 2:
if (blnNextEnable)
{
if (int16ofOne < 15)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11776 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\bin\Debug\In-Sight Key Generator.exe
文件 30208 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\bin\Debug\In-Sight Key Generator.pdb
文件 11600 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\bin\Debug\In-Sight Key Generator.vshost.exe
文件 490 2019-03-19 12:46 In-Sight Key Generator\In-Sight Key Generator\bin\Debug\In-Sight Key Generator.vshost.exe.manifest
文件 5596 2021-01-07 18:46 In-Sight Key Generator\In-Sight Key Generator\Form1.cs
文件 4048 2021-01-07 17:45 In-Sight Key Generator\In-Sight Key Generator\Form1.Designer.cs
文件 5817 2021-01-07 17:45 In-Sight Key Generator\In-Sight Key Generator\Form1.resx
文件 3703 2021-01-07 17:26 In-Sight Key Generator\In-Sight Key Generator\In-Sight Key Generator.csproj
文件 143 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\In-Sight Key Generator.csproj.user
文件 5420 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6335 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1512 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In-Sight Key Generator.csproj.FileListAbsolute.txt
文件 975 2021-01-07 18:46 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In-Sight Key Generator.csproj.GenerateResource.Cache
文件 9174 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In-Sight Key Generator.csprojResolveAssemblyReference.cache
文件 11776 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In-Sight Key Generator.exe
文件 30208 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In-Sight Key Generator.pdb
文件 180 2021-01-07 18:46 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In_Sight_Key_Generator.Form1.resources
文件 180 2021-01-07 17:28 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\In_Sight_Key_Generator.Properties.Resources.resources
文件 503 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\Program.cs
文件 1394 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\Properties\AssemblyInfo.cs
文件 2896 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\Properties\Resources.Designer.cs
文件 5612 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\Properties\Resources.resx
文件 1109 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\Properties\Settings.Designer.cs
文件 249 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\Properties\Settings.settings
文件 908 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator.sln
..A..H. 19456 2021-01-08 08:16 In-Sight Key Generator\In-Sight Key Generator.suo
目录 0 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug\TempPE
目录 0 2021-01-21 15:02 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Debug
目录 0 2021-01-07 17:21 In-Sight Key Generator\In-Sight Key Generator\obj\x86\Release
目录 0 2021-01-08 08:13 In-Sight Key Generator\In-Sight Key Generator\bin\Debug
............此处省略10个文件信息
- 上一篇:MODBUS通讯(TCP/Rtu)
- 下一篇:AE生成DEM
评论
共有 条评论