• 大小: 0.25M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-31
  • 语言: C#
  • 标签: 程序  C#  加密  

资源简介

类似加密狗的简单功能实现。使软件只能在当前电脑上使用,更换电脑后无法使用,更改系统时间也无效。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    class CPUAndHardDisk
    {
        mac cpu1 = new mac();
        public string cpu(string str)
        {
            
            //string result = null;
            string Cpu = null;
            try
            {
                foreach (int str1 in str)       //字符串转成十进制,进行加或者减
                {
                    Cpu = Cpu + ((char)(str1 + 5)).ToString();
                }
                Cpu = Cpu.Substring(1 8);
            }
            catch (Exception ex)
            { }
            return mac.Encodebase64(Encoding.UTF8 Cpu);
        }
        public string harddisk(string str)
        {
            //string result = null;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-18 16:12  绑定\
     目录           0  2018-07-18 16:12  绑定\.vs\
     目录           0  2018-07-18 16:12  绑定\.vs\WindowsFormsApplication1\
     目录           0  2018-07-18 16:12  绑定\.vs\WindowsFormsApplication1\v15\
     文件       86528  2018-07-18 16:18  绑定\.vs\WindowsFormsApplication1\v15\.suo
     目录           0  2018-07-18 16:12  绑定\.vs\WindowsFormsApplication1\v15\Server\
     目录           0  2018-07-18 16:18  绑定\.vs\WindowsFormsApplication1\v15\Server\sqlite3\
     文件           0  2018-07-18 16:12  绑定\.vs\WindowsFormsApplication1\v15\Server\sqlite3\db.lock
     文件      602112  2018-07-18 16:18  绑定\.vs\WindowsFormsApplication1\v15\Server\sqlite3\storage.ide
     目录           0  2018-03-08 15:43  绑定\WindowsFormsApplication1\
     文件        1277  2015-07-13 10:54  绑定\WindowsFormsApplication1\CPUAndHardDisk.cs
     文件        1481  2015-07-13 10:54  绑定\WindowsFormsApplication1\Form1.Designer.cs
     文件       10570  2016-03-22 14:15  绑定\WindowsFormsApplication1\Form1.cs
     文件        5817  2015-07-13 10:54  绑定\WindowsFormsApplication1\Form1.resx
     文件         505  2015-07-13 10:54  绑定\WindowsFormsApplication1\Program.cs
     目录           0  2018-03-08 15:43  绑定\WindowsFormsApplication1\Properties\
     文件        1390  2015-07-13 10:54  绑定\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2900  2015-07-13 10:54  绑定\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2015-07-13 10:54  绑定\WindowsFormsApplication1\Properties\Resources.resx
     文件        1111  2015-07-13 10:54  绑定\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2015-07-13 10:54  绑定\WindowsFormsApplication1\Properties\Settings.settings
     文件        2423  2015-08-17 09:51  绑定\WindowsFormsApplication1\Properties\app.manifest
     文件        1222  2015-07-13 10:54  绑定\WindowsFormsApplication1\ReadWriteiniDate.cs
     文件        4349  2016-08-03 11:54  绑定\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     文件        2562  2016-08-03 11:54  绑定\WindowsFormsApplication1\app.manifest
     目录           0  2018-03-08 15:43  绑定\WindowsFormsApplication1\bin\
     目录           0  2018-03-08 15:43  绑定\WindowsFormsApplication1\bin\Debug\
     文件       15872  2016-08-03 11:54  绑定\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       46592  2016-08-03 11:54  绑定\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       22984  2016-08-03 14:29  绑定\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件        2562  2016-08-03 11:54  绑定\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
............此处省略23个文件信息

评论

共有 条评论