+

CN111259347A - Authorization method and device for judging machine uniqueness - Google Patents

Authorization method and device for judging machine uniqueness Download PDF

Info

Publication number
CN111259347A
CN111259347A CN202010060570.5A CN202010060570A CN111259347A CN 111259347 A CN111259347 A CN 111259347A CN 202010060570 A CN202010060570 A CN 202010060570A CN 111259347 A CN111259347 A CN 111259347A
Authority
CN
China
Prior art keywords
certificate
hardware information
machine
physical hardware
reference value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010060570.5A
Other languages
Chinese (zh)
Inventor
赵慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010060570.5A priority Critical patent/CN111259347A/en
Publication of CN111259347A publication Critical patent/CN111259347A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/101Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM] by binding digital rights to specific entities
    • G06F21/1011Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM] by binding digital rights to specific entities to devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

本发明提供一种判断机器唯一性的授权方法及装置,所述方法包括如下步骤:获取机器物理硬件信息作为基准值进行存储;通过获取机器物理硬件信息计算出特征码;使用机器特征码生成证书;将证书导入应用软件中,证书导入时,获取机器当前的物理硬件信息,若当前的物理硬件信息包含预存储的与证书中的特征码对应的所有基准值,则允许导入证书。解决了原来实际使用过程中因硬件些许改变就需要重新申请授权带来的不便。同时也保证了特征码的作用,一旦硬件发生较大变化,仍旧可以检测出来,导致授权失效,不会带来商业损失。

Figure 202010060570

The present invention provides an authorization method and device for judging the uniqueness of a machine. The method includes the following steps: acquiring machine physical hardware information as a reference value for storage; calculating a feature code by acquiring the machine physical hardware information; using the machine feature code to generate a certificate ; Import the certificate into the application software. When the certificate is imported, the current physical hardware information of the machine is obtained. If the current physical hardware information includes all pre-stored benchmark values corresponding to the feature codes in the certificate, the certificate is allowed to be imported. It solves the inconvenience caused by the need to reapply for authorization due to a slight change in the hardware during the actual use process. At the same time, it also ensures the function of the feature code. Once the hardware changes greatly, it can still be detected, resulting in the invalidation of the authorization and no business loss.

Figure 202010060570

Description

一种判断机器唯一性的授权方法及装置An authorization method and device for judging the uniqueness of a machine

技术领域technical field

本发明涉及商用软件授权相关技术领域,具体涉及一种判断机器唯一性的授权方法装置。The invention relates to the technical field of commercial software authorization, in particular to an authorization method and device for judging the uniqueness of a machine.

背景技术Background technique

商业应用软件一般都需要进行授权或激活,授权时需要绑定机器硬件特征,以判断授权为这台机器的专属。Commercial application software generally needs to be authorized or activated, and the authorization needs to be bound to the hardware characteristics of the machine to determine that the authorization is exclusive to the machine.

目前,现有技术一般使用机器硬件信息生成特征码。具体方法为的获取机器的CPU序列号、主板序列号、硬盘序列号、MAC地址,将这些信息通过迭代加密的算法生成本机的特征码。特征码用于机器的唯一标识码,使用在应用软件的授权、激活。Currently, the prior art generally uses machine hardware information to generate feature codes. The specific method is to obtain the CPU serial number, motherboard serial number, hard disk serial number, and MAC address of the machine, and generate the feature code of the machine through an iterative encryption algorithm. The feature code is used for the unique identification code of the machine, and is used in the authorization and activation of the application software.

而机器在使用时经常出现需要添加一块网卡、扩容硬盘、内存等实际需要,在现有技术的算法中,一旦有任何硬件发生了变化,机器的特征码就会发生改变,授权就会失效,需要重新制作授权,为实际使用带来不便。When the machine is in use, it is often necessary to add a network card, expand the hard disk, memory, etc. In the algorithm of the prior art, once any hardware changes, the feature code of the machine will change, and the authorization will be invalid. It needs to be re-authorized, which brings inconvenience to actual use.

发明内容SUMMARY OF THE INVENTION

针对计算机器特征码的现有技术的算法中,一旦有任何硬件发生了变化,机器的特征码就会发生改变,授权就会失效,需要重新制作授权,为实际使用带来不便,本发明提供一种判断机器唯一性的授权方法装置。In the prior art algorithm for calculating machine feature code, once any hardware changes, the machine feature code will change, the authorization will be invalid, and the authorization needs to be re-created, which brings inconvenience to actual use. The present invention provides An authorization method and device for judging the uniqueness of a machine.

本发明的技术方案是:The technical scheme of the present invention is:

一方面,本发明技术方案提供一种判断机器唯一性的授权方法,包括如下步骤:On the one hand, the technical solution of the present invention provides an authorization method for judging the uniqueness of a machine, comprising the following steps:

获取机器的物理硬件信息作为基准值进行存储;Obtain the physical hardware information of the machine as a reference value for storage;

通过获取的物理硬件信息计算出特征码;The feature code is calculated by the acquired physical hardware information;

通过计算出的特征码生成证书;Generate a certificate from the calculated signature;

将证书导入应用软件中,证书导入时,获取机器当前的物理硬件信息,若当前的物理硬件信息包含预存储的与证书中的特征码对应的基准值,则允许导入证书。Import the certificate into the application software. When the certificate is imported, the current physical hardware information of the machine is obtained. If the current physical hardware information contains the pre-stored reference value corresponding to the feature code in the certificate, the certificate is allowed to be imported.

生成特征码时,将机器的所有物理CPU序列号、主板序列号、硬盘序列号、MAC地址信息组成基准值集合,进行迭代加密,算出机器的特征码。本方法中获取的是物理硬件信息,因为虚拟设备容易发生变化,并且容易伪造,所以在组成基准值集合时,使用物理设备的信息,不使用虚拟设备的信息。When generating the feature code, all physical CPU serial numbers, motherboard serial numbers, hard disk serial numbers, and MAC address information of the machine are formed into a reference value set, which is iteratively encrypted to calculate the machine's feature code. In this method, physical hardware information is obtained, because virtual devices are prone to change and are easily forged, so when composing a reference value set, the information of physical devices is used, and the information of virtual devices is not used.

优选地,所述的获取机器的物理硬件信息作为基准值进行存储的步骤包括:Preferably, the step of obtaining the physical hardware information of the machine and storing it as a reference value includes:

获取机器的物理硬件信息作为基准值存入数据库中,每台机器的基准值为一个基准值集合,所述的物理硬件信息包括CPU序列号、主板序列号、硬盘序列号、MAC地址。The physical hardware information of the obtained machine is stored in the database as a reference value, and the reference value of each machine is a reference value set, and the physical hardware information includes the CPU serial number, motherboard serial number, hard disk serial number, and MAC address.

优选地,所述的通过获取的物理硬件信息计算出特征码的步骤包括:Preferably, the step of calculating the feature code through the acquired physical hardware information includes:

将获取的物理硬件信息通过加密算法计算出特征码并将计算出的特征码存入数据库并与数据库中的基准值集合一一对应。The acquired physical hardware information is used to calculate the characteristic code through the encryption algorithm, and the calculated characteristic code is stored in the database and corresponds to the reference value set in the database one-to-one.

优选地,所述的将证书导入应用软件中进行授权,证书导入时,获取机器当前的物理硬件信息,若当前的物理硬件信息包含预存储的与证书中的特征码对应的基准值,则允许导入证书的步骤包括:Preferably, the certificate is imported into the application software for authorization. When the certificate is imported, the current physical hardware information of the machine is obtained, and if the current physical hardware information includes a pre-stored reference value corresponding to the feature code in the certificate, it is allowed to The steps to import a certificate include:

证书导入时通过证书中的特征码拉取数据库中与该特征码对应的基准值;When the certificate is imported, the reference value corresponding to the feature code in the database is pulled through the feature code in the certificate;

获取机器当前的硬件信息;Get the current hardware information of the machine;

判断当前的硬件信息是否包含所有基准值,若是允许导入证书,若否,不允许导入证书。Determine whether the current hardware information contains all the reference values. If it is allowed to import the certificate, if not, it is not allowed to import the certificate.

优选地,所述的将证书导入应用软件中,证书导入时,获取机器当前的物理硬件信息,若当前的物理硬件信息包含预存储的与证书中的特征码对应的基准值,则允许导入证书的步骤之后还包括:Preferably, when the certificate is imported into the application software, when the certificate is imported, the current physical hardware information of the machine is obtained. If the current physical hardware information includes a pre-stored reference value corresponding to the feature code in the certificate, the certificate is allowed to be imported. The steps also include:

导入证书后在设定的时间间隔检查授权状态。Check the authorization status at set intervals after importing the certificate.

优选地,所述的导入证书后在设定的时间间隔检查授权状态的步骤包括:Preferably, the step of checking the authorization status at a set time interval after importing the certificate includes:

导入证书后在设定的时间间隔获取机器的当前硬件信息;After importing the certificate, obtain the current hardware information of the machine at the set time interval;

若当前硬件信息中包含所有的基准值,则认为机器是同一台机器,继续使用当前的特征码,授权继续有效;If the current hardware information contains all the reference values, the machine is considered to be the same machine, and the current feature code will continue to be used, and the authorization will continue to be valid;

若当前硬件信息中不包含所有的基准值,授权失效;根据获取的当前硬件信息重新计算特征码重新生成证书。If the current hardware information does not contain all the reference values, the authorization is invalid; the signature is recalculated according to the acquired current hardware information and the certificate is regenerated.

在检查机器授权状态时,获取机器的硬件设备的当前值,也就是物理硬件信息,包含所有CPU序列号、主板序列号、硬盘序列号、MAC地址,判断当前值是否包含所有的基准值,如果当前值包含所有的基准值,则不改变特征码,继续使用当前特征码,授权继续有效;如何当前值中不包含所有的基准值,则认为机器硬件发生较大变化,可能不是同一台机器,则重新计算特征码,特征码与之前特征码不同,授权失效。When checking the authorization status of the machine, obtain the current value of the hardware device of the machine, that is, the physical hardware information, including all CPU serial numbers, motherboard serial numbers, hard disk serial numbers, and MAC addresses, and determine whether the current value contains all the reference values. If the current value contains all the reference values, the feature code will not be changed, and the current feature code will continue to be used, and the authorization will continue to be valid; if the current value does not contain all the reference values, it is considered that the machine hardware has changed greatly, and it may not be the same machine. Then the feature code is recalculated, the feature code is different from the previous feature code, and the authorization is invalid.

另一方面,本发明技术方案提供一种判断机器唯一性的授权装置,包括物理硬件信息获取模块、特征码计算模块、证书生成模块和导入模块;On the other hand, the technical solution of the present invention provides an authorization device for judging the uniqueness of a machine, including a physical hardware information acquisition module, a feature code calculation module, a certificate generation module and an import module;

物理硬件信息获取模块,用于获取机器的物理硬件信息作为基准值进行存储;The physical hardware information acquisition module is used to acquire the physical hardware information of the machine and store it as a reference value;

特征码计算模块,用于通过获取的物理硬件信息计算出特征码;The feature code calculation module is used to calculate the feature code through the acquired physical hardware information;

证书生成模块,用于通过计算出的特征码生成证书;The certificate generation module is used to generate the certificate through the calculated feature code;

物理硬件信息获取模块,还用于证书导入时获取机器当前的物理硬件信息;The physical hardware information acquisition module is also used to acquire the current physical hardware information of the machine when the certificate is imported;

导入模块,用于当证书导入时获取的物理硬件信息包含预存储的与证书中的特征码对应的基准值时导入证书。The import module is used to import the certificate when the physical hardware information obtained when the certificate is imported includes a pre-stored reference value corresponding to the characteristic code in the certificate.

优选地,该装置还包括数据库模块,所述的数据库模块,用于存储基准值,所述的基准值为获取的机器物理硬件信息;所述的物理硬件信息包括CPU序列号、主板序列号、硬盘序列号、MAC地址;Preferably, the device further includes a database module, the database module is used to store the reference value, and the reference value is the acquired physical hardware information of the machine; the physical hardware information includes the CPU serial number, the motherboard serial number, Hard disk serial number, MAC address;

所述的数据库模块,还用于存储特征码,存入数据库的特征码与存储的基准值集合一一对应,每台机器的基准值为一个基准值集合。The database module is also used for storing feature codes, the feature codes stored in the database correspond one-to-one with the stored reference value set, and the reference value of each machine is a reference value set.

从以上技术方案可以看出,本发明具有以下优点:当对机器硬件发生部分变化,如添加网卡或添加、删除虚拟网卡、扩容硬盘、增加内存条等场景时,特征码不发生改变,授权不会失效,不需要重新制作授权文件,解决了原来实际使用过程中因硬件些许改变就需要重新申请授权带来的不便。同时也保证了特征码的作用,一旦硬件发生较大变化,仍旧可以检测出来,导致授权失效,不会带来商业损失。It can be seen from the above technical solutions that the present invention has the following advantages: when a partial change occurs to the machine hardware, such as adding a network card or adding or deleting a virtual network card, expanding a hard disk, adding a memory stick, etc., the feature code does not change, and the authorization does not change. It will be invalid, and there is no need to re-create the authorization file, which solves the inconvenience caused by the need to re-apply for authorization due to slight changes in the hardware in the actual use process. At the same time, it also ensures the function of the feature code. Once the hardware changes greatly, it can still be detected, resulting in the invalidation of the authorization and no business loss.

此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the present invention has reliable design principle and simple structure, and has a very wide application prospect.

由此可见,本发明与现有技术相比,具有突出的实质性特点和显著地进步,其实施的有益效果也是显而易见的。It can be seen that, compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, other drawings can also be obtained based on these drawings without creative labor.

图1是本发明实施例提供的一种判断机器唯一性的授权方法的示意性流程图。FIG. 1 is a schematic flowchart of an authorization method for judging machine uniqueness provided by an embodiment of the present invention.

图2是本发明实施例中数据库中存放的特征码与基准值对应关系的示意图。FIG. 2 is a schematic diagram of the corresponding relationship between feature codes and reference values stored in a database in an embodiment of the present invention.

图3是本发明实施例提供的一种判断机器唯一性的授权方法的示意性流程图。FIG. 3 is a schematic flowchart of an authorization method for judging the uniqueness of a machine provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例一Example 1

本发明技术方案提供一种判断机器唯一性的授权方法,包括如下步骤:The technical solution of the present invention provides an authorization method for judging the uniqueness of a machine, comprising the following steps:

S1:获取机器的物理硬件信息作为基准值进行存储;S1: Obtain the physical hardware information of the machine as a reference value for storage;

S2:通过获取的物理硬件信息计算出特征码;S2: Calculate the feature code through the acquired physical hardware information;

S3:通过计算出的特征码生成证书;S3: Generate a certificate through the calculated feature code;

S4:将证书导入应用软件中,证书导入时,获取机器当前的物理硬件信息,若当前的物理硬件信息包含预存储的与证书中的特征码对应的基准值,则允许导入证书。S4: Import the certificate into the application software. When the certificate is imported, the current physical hardware information of the machine is obtained. If the current physical hardware information includes a pre-stored reference value corresponding to the feature code in the certificate, the certificate is allowed to be imported.

生成特征码时,将机器的所有物理硬件信息组成基准值集合,进行迭代加密,算出机器的特征码。本方法中获取的是物理硬件信息,因为虚拟设备容易发生变化,并且容易伪造,所以在组成基准值集合时,使用物理设备的信息,不使用虚拟设备的信息。When generating the feature code, all the physical hardware information of the machine is formed into a reference value set, which is iteratively encrypted to calculate the feature code of the machine. In this method, physical hardware information is obtained, because virtual devices are prone to change and are easily forged, so when composing a reference value set, the information of physical devices is used, and the information of virtual devices is not used.

实施例二Embodiment 2

如图1所示,本发明技术方案提供一种判断机器唯一性的授权方法,包括如下步骤:As shown in Figure 1, the technical solution of the present invention provides an authorization method for judging the uniqueness of a machine, comprising the following steps:

S1:获取机器的物理硬件信息作为基准值进行存储;本步骤中,获取机器的物理硬件信息作为基准值存入数据库中,每台机器的基准值为一个基准值集合,所述的物理硬件信息包括CPU序列号、主板序列号、硬盘序列号、MAC地址;本实施例中,Java语言可使用函数包oshi-corejar进行物理硬件信息的获取,具体使用方法:S1: Obtain the physical hardware information of the machine and store it as a reference value; in this step, obtain the physical hardware information of the machine as a reference value and store it in the database, the reference value of each machine is a reference value set, and the physical hardware information Including the CPU serial number, the motherboard serial number, the hard disk serial number, and the MAC address; in this embodiment, the Java language can use the function package oshi-corejar to obtain physical hardware information, and the specific usage method:

Import oshi.Systeminfo;Import oshi.Systeminfo;

Import oshi.hardware.Central Processor;Import oshi.hardware.Central Processor;

Import oshi.hardware.Central Processor.TickType;Import oshi.hardware.Central Processor.TickType;

Import oshi.hardware.GlobalMemory;Import oshi.hardware.GlobalMemory;

Import oshi.hardware.HardwareAbstractionLayer;Import oshi.hardware.HardwareAbstractionLayer;

Import oshi.hardware.NetworkIF;Import oshi.hardware.NetworkIF;

通过以上函数获取物理硬件信息包括CPU序列号、主板序列号、硬盘序列号、MAC地址;本步骤中,基准值集合里可以只保留CPU序列号、硬盘序列号、内存三大件的信息,这样增、删网卡都不会影响授权;The physical hardware information obtained through the above functions includes the CPU serial number, the motherboard serial number, the hard disk serial number, and the MAC address; in this step, only the CPU serial number, hard disk serial number, and memory information can be retained in the reference value set, so that Adding or deleting network cards will not affect authorization;

S2:通过获取的物理硬件信息计算出特征码;通过上述函数获取的物理硬件信息计算特征码,将计算出的特征码也存入数据库,与步骤S1中存放在数据库中的基准值集合一一对应;本实施例中需要说明的是,在计算特征码时可以使用各种加密算法方法进行计算,正因为不同的加密运算方法存在差异,所以各个产品获得的特征码必然存在一定差异,也正是各个产品特征码唯一性的保证。本实施例中,数据库中存放的特征码与基准值对应关系的示意图如图2所示;S2: Calculate the feature code through the acquired physical hardware information; calculate the feature code through the physical hardware information obtained by the above function, and store the calculated feature code in the database, one by one with the reference value set stored in the database in step S1 Corresponding; it should be noted in this embodiment that various encryption algorithm methods can be used for calculation when calculating the feature code. Just because different encryption operation methods are different, there must be certain differences in the feature codes obtained by each product. It is the guarantee of the uniqueness of each product feature code. In this embodiment, a schematic diagram of the corresponding relationship between the feature code and the reference value stored in the database is shown in Figure 2;

S3:通过计算出的特征码生成证书;S3: Generate a certificate through the calculated feature code;

S4:将证书导入应用软件中,证书导入时,获取机器当前的物理硬件信息,若当前的物理硬件信息包含预存储的与证书中的特征码对应的基准值,则允许导入证书。本实施例中,在导入证书时通过证书中的特征码拉取数据库中存放的与该特征码相关的基准值,然后用步骤S1的方法获取当前物理硬件信息,若当前物理硬件信息包含所有的基准值,则允许导入证书。S4: Import the certificate into the application software. When the certificate is imported, the current physical hardware information of the machine is obtained. If the current physical hardware information includes a pre-stored reference value corresponding to the feature code in the certificate, the certificate is allowed to be imported. In this embodiment, when importing the certificate, the reference value related to the feature code stored in the database is pulled through the feature code in the certificate, and then the method of step S1 is used to obtain the current physical hardware information. If the current physical hardware information includes all Baseline value, the certificate is allowed to be imported.

生成特征码时,将机器的所有物理CPU序列号、主板序列号、硬盘序列号、MAC地址信息组成基准值集合,进行迭代加密,算出机器的特征码。本方法中获取的是物理硬件信息,因为虚拟设备容易发生变化,并且容易伪造,所以在组成基准值集合时,使用物理设备的信息,不使用虚拟设备的信息。When generating the feature code, all physical CPU serial numbers, motherboard serial numbers, hard disk serial numbers, and MAC address information of the machine are formed into a reference value set, which is iteratively encrypted to calculate the machine's feature code. In this method, physical hardware information is obtained, because virtual devices are prone to change and are easily forged, so when composing a reference value set, the information of physical devices is used, and the information of virtual devices is not used.

实施例三Embodiment 3

如图3所示,本发明技术方案提供一种判断机器唯一性的授权方法,该方法与实施例二的不同之处还包括:As shown in Figure 3, the technical solution of the present invention provides an authorization method for judging the uniqueness of a machine, and the difference between the method and the second embodiment also includes:

应用软件在一般都会定时检查授权状态,以检查授权是否过期或是否授权被复制挪用;本实施例中的方法还包括步骤S5:导入证书后在设定的时间间隔检查授权状态。The application software generally checks the authorization status periodically to check whether the authorization has expired or whether the authorization has been copied and misappropriated; the method in this embodiment further includes step S5: checking the authorization status at a set time interval after importing the certificate.

当检查机器授权状态时,使用步骤1中的方法获取机器的当前物理硬件信息,如果当前物理硬件信息中包含所有的基准值,则认为机器还是同一台机器,此时继续使用当前的特征码,授权正常,继续有效;如果当前物理硬件信息中不包含所有的基准值,则认为机器硬件发生较大变化,可能不是同一台机器,授权异常,需要导入新的证书,则重新计算特征码,特征码与之前特征码不同,授权失效。When checking the authorization status of the machine, use the method in step 1 to obtain the current physical hardware information of the machine. If the current physical hardware information contains all the reference values, it is considered that the machine is still the same machine, and the current feature code will continue to be used at this time. The authorization is normal and continues to be valid; if the current physical hardware information does not contain all the reference values, it is considered that the machine hardware has changed greatly, it may not be the same machine, the authorization is abnormal, and a new certificate needs to be imported, then recalculate the feature code, feature The code is different from the previous feature code, and the authorization is invalid.

实施例四Embodiment 4

本发明技术方案提供一种判断机器唯一性的授权装置,包括物理硬件信息获取模块、特征码计算模块、证书生成模块和导入模块;The technical scheme of the present invention provides an authorization device for judging the uniqueness of a machine, comprising a physical hardware information acquisition module, a feature code calculation module, a certificate generation module and an import module;

物理硬件信息获取模块,用于获取机器的物理硬件信息作为基准值进行存储;The physical hardware information acquisition module is used to acquire the physical hardware information of the machine and store it as a reference value;

特征码计算模块,用于通过获取的物理硬件信息计算出特征码;The feature code calculation module is used to calculate the feature code through the acquired physical hardware information;

证书生成模块,用于通过计算出的特征码生成证书;The certificate generation module is used to generate the certificate through the calculated feature code;

物理硬件信息获取模块,还用于证书导入时获取机器当前的物理硬件信息;The physical hardware information acquisition module is also used to acquire the current physical hardware information of the machine when the certificate is imported;

导入模块,用于当证书导入时获取的物理硬件信息包含预存储的与证书中的特征码对应的基准值时导入证书。The import module is used to import the certificate when the physical hardware information obtained when the certificate is imported includes a pre-stored reference value corresponding to the characteristic code in the certificate.

该装置还包括数据库模块,所述的数据库模块,用于存储基准值,所述的基准值为获取的机器物理硬件信息;所述的物理硬件信息包括CPU序列号、主板序列号、硬盘序列号、MAC地址;所述的数据库模块,还用于存储特征码,存入数据库的特征码与存储的基准值集合一一对应,每台机器的基准值为一个基准值集合。The device also includes a database module, the database module is used to store the reference value, and the reference value is the acquired physical hardware information of the machine; the physical hardware information includes the CPU serial number, the motherboard serial number, and the hard disk serial number. , MAC address; the database module is also used to store feature codes, the feature codes stored in the database correspond one-to-one with the stored reference value set, and the reference value of each machine is a reference value set.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with the preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all fall within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should all be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (8)

1. An authorization method for judging machine uniqueness, which is characterized by comprising the following steps:
acquiring physical hardware information of a machine as a reference value for storage;
calculating a feature code according to the acquired physical hardware information;
generating a certificate through the calculated feature code;
and importing the certificate into application software, acquiring current physical hardware information of the machine when the certificate is imported, and allowing the certificate to be imported if the current physical hardware information contains all pre-stored reference values corresponding to the feature codes in the certificate.
2. The authorization method based on machine uniqueness judgment according to claim 1, wherein the step of obtaining physical hardware information of the machine for storage as a reference value comprises:
the method comprises the steps of obtaining physical hardware information of the machines, taking the physical hardware information as a reference value, storing the reference value into a database, wherein the reference value of each machine is a reference value set, and the physical hardware information comprises a CPU (Central processing Unit) serial number, a mainboard serial number, a hard disk serial number and an MAC (media access control) address.
3. The authorization method based on machine uniqueness judgment according to claim 2, wherein the step of calculating the feature code through the acquired physical hardware information comprises:
and calculating the feature code of the acquired physical hardware information through an encryption algorithm, storing the calculated feature code into a database and corresponding to the reference value set in the database one by one.
4. The authorization method for determining uniqueness of a machine according to claim 1, wherein the step of importing a certificate into application software, acquiring current physical hardware information of the machine when the certificate is imported, and allowing the certificate to be imported if the current physical hardware information includes all pre-stored reference values corresponding to feature codes in the certificate includes:
pulling a reference value corresponding to the feature code in the database through the feature code in the certificate when the certificate is imported;
acquiring current hardware information of a machine;
and judging whether the current hardware information contains all reference values, if so, allowing to import the certificate, and if not, allowing not to import the certificate.
5. The authorization method for determining uniqueness of a machine according to claim 1, wherein the step of importing a certificate into application software, acquiring current physical hardware information of the machine when the certificate is imported, and if the current physical hardware information includes a pre-stored reference value corresponding to a feature code in the certificate, allowing the certificate to be imported further includes:
the authorization status is checked at set time intervals after the introduction of the certificate.
6. The authorization method for determining uniqueness of a machine according to claim 5, wherein the step of checking the authorization status at a set time interval after importing the certificate comprises:
after the certificate is imported, current hardware information of the machine is acquired at a set time interval;
if the current hardware information contains all reference values, the machine is considered to be the same machine, the current feature code is continuously used, and the authorization is continuously effective;
if the current hardware information does not contain all reference values, the authorization is invalid; and re-calculating the feature code according to the acquired current hardware information to generate the certificate.
7. An authorization device for judging machine uniqueness is characterized by comprising a physical hardware information acquisition module, a feature code calculation module, a certificate generation module and an import module;
the physical hardware information acquisition module is used for acquiring the physical hardware information of the machine as a reference value to store;
the characteristic code calculation module is used for calculating the characteristic code according to the acquired physical hardware information;
the certificate generation module is used for generating a certificate through the calculated feature code;
the physical hardware information acquisition module is also used for acquiring the current physical hardware information of the machine when the certificate is imported;
and the import module is used for importing the certificate when the physical hardware information acquired during the certificate import contains a pre-stored reference value corresponding to the feature code in the certificate.
8. The authorization device for judging the uniqueness of the machine according to claim 7, characterized by further comprising a database module, wherein the database module is used for storing a reference value, and the reference value is the acquired physical hardware information of the machine; the physical hardware information comprises a CPU serial number, a mainboard serial number, a hard disk serial number and an MAC address;
the database module is also used for storing the feature codes, the feature codes stored in the database correspond to the stored reference value sets one by one, and the reference value of each machine is a reference value set.
CN202010060570.5A 2020-01-19 2020-01-19 Authorization method and device for judging machine uniqueness Pending CN111259347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010060570.5A CN111259347A (en) 2020-01-19 2020-01-19 Authorization method and device for judging machine uniqueness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010060570.5A CN111259347A (en) 2020-01-19 2020-01-19 Authorization method and device for judging machine uniqueness

Publications (1)

Publication Number Publication Date
CN111259347A true CN111259347A (en) 2020-06-09

Family

ID=70952338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010060570.5A Pending CN111259347A (en) 2020-01-19 2020-01-19 Authorization method and device for judging machine uniqueness

Country Status (1)

Country Link
CN (1) CN111259347A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113761479A (en) * 2021-09-15 2021-12-07 厦门熵基科技有限公司 Software authorization method, system, equipment and computer storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561025A (en) * 2004-03-03 2005-01-05 北京北大方正电子有限公司 Method for binding digital content and hardware with hardware adaptability
CN102438013A (en) * 2010-11-18 2012-05-02 微软公司 Hardware-based credential distribution
CN103023876A (en) * 2012-11-22 2013-04-03 中国科学院声学研究所 Network terminal, security certification and registration activation methods thereof and server
CN103592927A (en) * 2013-11-26 2014-02-19 蓝盾信息安全技术股份有限公司 Method for binding product server and service function through license
CN106548043A (en) * 2016-11-01 2017-03-29 广东浪潮大数据研究有限公司 A kind of authorization method of application program, installation method, installation end and system
CN106713256A (en) * 2015-11-18 2017-05-24 航天信息股份有限公司 Method for authenticating software and hardware binding of computer special for tax control
CN109086575A (en) * 2018-07-26 2018-12-25 郑州云海信息技术有限公司 A kind of authorization method and system of software license
CN109409115A (en) * 2018-11-07 2019-03-01 金蝶软件(中国)有限公司 A kind of encryption and decryption method and relevant apparatus
CN109981593A (en) * 2019-03-01 2019-07-05 拜安尔(福建)网络科技有限公司 A kind of method and server of data interaction
CN110210189A (en) * 2019-06-11 2019-09-06 第四范式(北京)技术有限公司 Software verification method, software and hardware binding method and its programmable device
CN107341368B (en) * 2017-06-06 2019-11-05 广州视源电子科技股份有限公司 Method and device for verifying valid time of license
CN110674475A (en) * 2019-09-29 2020-01-10 北京可信华泰信息技术有限公司 Authorization control method and device and trusted computing terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561025A (en) * 2004-03-03 2005-01-05 北京北大方正电子有限公司 Method for binding digital content and hardware with hardware adaptability
CN102438013A (en) * 2010-11-18 2012-05-02 微软公司 Hardware-based credential distribution
CN103023876A (en) * 2012-11-22 2013-04-03 中国科学院声学研究所 Network terminal, security certification and registration activation methods thereof and server
CN103592927A (en) * 2013-11-26 2014-02-19 蓝盾信息安全技术股份有限公司 Method for binding product server and service function through license
CN106713256A (en) * 2015-11-18 2017-05-24 航天信息股份有限公司 Method for authenticating software and hardware binding of computer special for tax control
CN106548043A (en) * 2016-11-01 2017-03-29 广东浪潮大数据研究有限公司 A kind of authorization method of application program, installation method, installation end and system
CN107341368B (en) * 2017-06-06 2019-11-05 广州视源电子科技股份有限公司 Method and device for verifying valid time of license
CN109086575A (en) * 2018-07-26 2018-12-25 郑州云海信息技术有限公司 A kind of authorization method and system of software license
CN109409115A (en) * 2018-11-07 2019-03-01 金蝶软件(中国)有限公司 A kind of encryption and decryption method and relevant apparatus
CN109981593A (en) * 2019-03-01 2019-07-05 拜安尔(福建)网络科技有限公司 A kind of method and server of data interaction
CN110210189A (en) * 2019-06-11 2019-09-06 第四范式(北京)技术有限公司 Software verification method, software and hardware binding method and its programmable device
CN110674475A (en) * 2019-09-29 2020-01-10 北京可信华泰信息技术有限公司 Authorization control method and device and trusted computing terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113761479A (en) * 2021-09-15 2021-12-07 厦门熵基科技有限公司 Software authorization method, system, equipment and computer storage medium
CN113761479B (en) * 2021-09-15 2024-03-12 厦门熵基科技有限公司 Software authorization method, system, equipment and computer storage medium

Similar Documents

Publication Publication Date Title
AU2019295815B2 (en) Blockchain-based data verification method and apparatus, and electronic device
CA3049761C (en) Method for providing payment gateway service using utxo-based protocol and server using same
US8590030B1 (en) Credential seed provisioning system
CN112037058B (en) Data verification method, device and storage medium
US20120109827A1 (en) Methods, Devices and Computer Program Products for Voucher Access Code Creation and Management
CN106529962A (en) Method and device used for enhancing hotspot account processing ability in trading system
US12147569B2 (en) Generating hash values for input strings
CN113761479B (en) Software authorization method, system, equipment and computer storage medium
CN110221956A (en) Method and apparatus for generating the test case of block chain intelligence contract
CN111259347A (en) Authorization method and device for judging machine uniqueness
CN105554181B (en) A kind of DNS log compression method and apparatus
CN108229964A (en) Trading activity profile is built and authentication method, system, medium and equipment
CN114697019A (en) A kind of user account privacy protection method and system
CN119150258A (en) Offline software authorization method and device, electronic equipment and storage medium
CN115879164A (en) Data verification method, device, equipment and storage medium
CN118886018A (en) Computer startup method, device, electronic device and storage medium
US12174987B2 (en) System and method for representing and verifying a data set using a tree-based data structure
CN118802192A (en) Digital certificate management method, device, electronic device and storage medium
CN116010926A (en) Login authentication method, login authentication device, computer equipment and storage medium
CN104573754B (en) Chip identifier reading/writing method
CN114237977A (en) Transaction rollback method, device, computer equipment and storage medium
CN115686597A (en) Data processing method and device, electronic equipment and storage medium
EP4262142A1 (en) Communication system, communication method, and program
CN116385085B (en) Method, device and equipment for preventing invoice from being reissued
EP4227830B1 (en) Authentication system, authentication method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609

RJ01 Rejection of invention patent application after publication
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载