CN110659454A - Serial number management method, device and medium - Google Patents

Serial number management method, device and medium Download PDF

Info

Publication number
CN110659454A
CN110659454A CN201910794578.1A CN201910794578A CN110659454A CN 110659454 A CN110659454 A CN 110659454A CN 201910794578 A CN201910794578 A CN 201910794578A CN 110659454 A CN110659454 A CN 110659454A
Authority
CN
China
Prior art keywords
code
serial number
subset
codes
bits
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
CN201910794578.1A
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 Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910794578.1A priority Critical patent/CN110659454A/en
Publication of CN110659454A publication Critical patent/CN110659454A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a serial number management method, a device and a medium, wherein the method comprises the following steps: generating an activation code based on the serial number and a machine code of the system to be activated; the activating code is decoded reversely; responding to the success of the inverse solution, and comparing the SN codes of the equipment in the system with the SN codes stored in the subset of the serial numbers; calculating a used capacity of the sequence number based on the SN codes in the subset; in response to the used capacity reaching a threshold and the SN code of the current device being in the subset, allowing the current device to be added. By using the method of the invention, the problem that the user does not need to purchase the serial number when deleting the equipment and adding new equipment again after the equipment is updated can be prevented, the benefit of an enterprise is not damaged, the software serial number can be effectively managed, the limit of the management software capacity is reached, and the system is prevented from being cracked and used.

Description

Serial number management method, device and medium
Technical Field
The field relates to the field of computers, and more particularly, to a serial number management method, apparatus, and medium.
Background
The serial number is used for displacement marking system elements, is widely applied to the field of the Internet, can optimize system storage and simplifies module interaction. With the advent of the internet big data era, the data scale and the business scale are rapidly expanded, and the existing serial number management is provided with a serious challenge from the aspects of performance, storage, availability, expansibility and the like.
In the cloud computing era, a large amount of heterogeneous resources are uniformly managed through a monitoring management platform, the monitoring management platform mostly controls the use of a system through a serial number, and if the serial number is cracked, the loss of an enterprise is immeasurable, so that the safety of the serial number is ensured, which is a problem to be solved urgently.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a serial number management method, which can prevent the problem that a user deletes a device and newly adds a new device without purchasing a serial number after the device is updated, ensure that the benefit of an enterprise is not damaged, effectively manage a software serial number, achieve the limit of software capacity management, and prevent a system from being cracked and used.
In view of the above object, an aspect of the embodiments of the present invention provides a serial number management method, including the following steps:
generating an activation code based on the serial number and a machine code of the system to be activated;
the activating code is decoded reversely;
in response to the inverse solution being successful, comparing the SN codes of the devices in the system with SN (serial number of device) codes stored in a subset of serial numbers;
calculating a used capacity of the sequence number based on the SN codes in the subset;
in response to the used capacity reaching a threshold and the SN code of the current device being in the subset, allowing the current device to be added.
According to an embodiment of the present invention, further comprising: in response to the used capacity being less than the threshold, allowing the current device to be added and storing the SN code for the device in a subset of the serial numbers.
According to one embodiment of the invention, the sequence number is generated based on a symmetric encryption algorithm.
According to one embodiment of the invention, generating the machine code comprises: and splicing the CPU ID of the 4 bits in front of the network card MAC address, splicing the rest part of the network card MAC address, splicing the number of the hard disks, and then encrypting through an MD5 encryption algorithm to generate a machine code.
According to one embodiment of the invention, the activate code includes: and (3) splicing machine codes by using the 1 st to 8 th bits as product names, the 9 th to 12 th bits as product versions, the 13 th bits as system versions and the 14 th to 23 th bits as the number of supported devices, and then encrypting by using a DES algorithm to generate the activation codes.
According to one embodiment of the invention, system versions include trial versions, standard versions, and enterprise versions.
According to one embodiment of the invention, the threshold is the maximum number of devices supported by the serial number.
According to one embodiment of the invention, the used capacity is the number of devices that have been activated by the activation code.
In another aspect of an embodiment of the present invention, there is also provided a computer apparatus including:
at least one processor; and
a memory storing a computer program operable on a processor, the processor performing any of the above methods when executing the program.
In another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, performs any one of the above-described methods.
The invention has the following beneficial technical effects: according to the serial number management method provided by the embodiment of the invention, the activation code is generated based on the serial number and the machine code of the system to be activated; the activating code is decoded reversely; in response to the inverse solution being successful, comparing the SN codes of the devices in the system with SN (serial number of device) codes stored in a subset of serial numbers; calculating a used capacity of the sequence number based on the SN codes in the subset; the technical scheme that the current equipment is allowed to be added in response to the fact that the used capacity reaches the threshold value and the SN code of the current equipment is in the subset is adopted, the problem that a user deletes the equipment and adds new equipment again without purchasing a serial number after the equipment is updated and updated can be prevented, the benefit of an enterprise is guaranteed not to be damaged, the software serial number can be effectively managed, the limit of software capacity management is achieved, and the system is prevented from being cracked and used.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a sequence number management method according to one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above object, a first aspect of embodiments of the present invention proposes an embodiment of a serial number management method. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1 generating an activation code based on the serial number and the machine code of the system to be activated;
s2, the activation code is subjected to inverse solution, the inverse solution is equivalent to the inverse process of the activation generation, and the successful inverse solution can indicate that the system can be used for activation;
s3, responding to the success of the reverse solution, comparing the SN code of the equipment in the system with the SN code stored in the subset of the serial number, wherein the subset is the corresponding relation of how many systems can be activated by the activation;
s4 calculating the used capacity of the serial number based on the SN code in the subset;
s5 allows the current device to be added in response to the used capacity reaching the threshold and the SN code of the current device being in the subset.
Through the technical scheme, the problem that a user deletes the equipment and adds new equipment again without purchasing the serial number after the equipment is updated and updated can be prevented, the benefit of an enterprise is guaranteed not to be damaged, the software serial number can be effectively managed, the limit of software capacity management is reached, and the system is prevented from being cracked and used.
In a preferred embodiment of the invention, the threshold is the maximum number of serial number capable devices.
In a preferred embodiment of the invention, the used capacity is the number of devices that have been activated by the activation code.
In a preferred embodiment of the present invention, the method further comprises: in response to the used capacity being less than the threshold, allowing the current device to be added and storing the SN code for the device in a subset of the serial numbers.
Each serial number has a maximum number of devices that can be activated, referred to herein as a threshold, and placing the SN code of an activated device into a subset of the corresponding serial numbers allows calculating how many devices have been activated by the current serial number, which is referred to as the used capacity, since the SN code is a unique identification code of a device, which is equivalent to establishing a history of device activation.
When the threshold is larger than the used capacity, the serial number can be used for activating the equipment, so the equipment can be directly activated.
If the threshold is equal to the used capacity, it indicates that the serial number can be used to activate so many devices at most, and if it is desired to activate a new device, it is necessary to purchase a new serial number, where the invention determines whether the SN code of the currently activated device is already in a subset of the serial number, and if the SN code is in the subset, it indicates that the serial number has already activated the device, so the device can now be activated. This prevents more than a threshold number of devices from being activated using a serial number. The benefit of enterprises is guaranteed not to be damaged.
In a preferred embodiment of the invention, the sequence number is generated based on a symmetric encryption algorithm. Symmetric encryption algorithms as disclosed in the prior art, other encryption algorithms, such as asymmetric encryption algorithms, etc., may also be used.
In a preferred embodiment of the present invention, generating the machine code includes: and splicing the CPU ID of the 4 bits in front of the network card MAC address, splicing the rest part of the network card MAC address, splicing the number of the hard disks, and then encrypting through an MD5 encryption algorithm to generate a machine code.
In a preferred embodiment of the present invention, the activate code includes: and (3) splicing machine codes by using the 1 st to 8 th bits as product names, the 9 th to 12 th bits as product versions, the 13 th bits as system versions and the 14 th to 23 th bits as the number of supported devices, and then encrypting by using a DES algorithm to generate the activation codes.
In a preferred embodiment of the present invention, the system versions include trial, standard and enterprise versions.
The activation code is generated by firstly acquiring the machine code of the system to be activated, and generating the machine code according to the following rules: splicing CPU ID on the 4 bits before the MAC address of the network card, splicing the rest part of the MAC address of the network card, finally splicing the number of hard disks, and encrypting the obtained character string by an MD5 encryption algorithm to obtain a machine code;
then, taking the 1 st to 8 th bits as product names, such as ISPIM, which are not enough for 8 bits, replacing the first bit with 0, taking the 9 th to 12 th bits as product versions, such as V1R4, taking the 13 th bit as system versions, dividing the product versions into trial versions, standard versions and enterprise versions, respectively marking the product versions with 0, 1 and 2, and marking the 14 th to 23 th bits as the number of supported systems with a 16-system mark, such as 1FFFF1 FFFF; then, the machine code generated above is pieced together, then encryption is carried out through a DES encryption algorithm, 128-bit activation codes are generated, and if the number of bits is not enough, 0 is supplemented in the front.
The security of the serial number is ensured by introducing a serial number encryption strategy, the serial number generation comprises machine codes, system versions and the like, one machine code cannot be repeatedly used, and the machine code generation strategy ensures that the machine code cannot be cracked.
Through the technical scheme, the problem that a user deletes the equipment and adds new equipment again without purchasing the serial number after the equipment is updated and updated can be prevented, the benefit of an enterprise is guaranteed not to be damaged, the software serial number can be effectively managed, the limit of software capacity management is reached, and the system is prevented from being cracked and used.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, a second aspect of embodiments of the present invention proposes a computer apparatus comprising:
at least one processor; and
a memory storing a computer program operable on a processor, the processor performing any of the above methods when executing the program.
In view of the above object, a third aspect of embodiments of the present invention proposes a computer-readable storage medium storing a computer program which, when executed by a processor, performs any one of the above-mentioned methods.
It should be particularly noted that the embodiment of the system described above employs the embodiment of the method described above to specifically describe the working process of each module, and those skilled in the art can easily think that the modules are applied to other embodiments of the method described above.
Further, the above-described method steps and system elements or modules may also be implemented using a controller and a computer-readable storage medium for storing a computer program for causing the controller to implement the functions of the above-described steps or elements or modules.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The embodiments described above, particularly any "preferred" embodiments, are possible examples of implementations and are presented merely to clearly understand the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure and protected by the following claims.

Claims (10)

1. A method for managing serial numbers, comprising the steps of:
generating an activation code based on the serial number and a machine code of the system to be activated;
performing inverse decoding on the activate code;
in response to the inverse solution being successful, comparing SN codes of devices in the system with SN codes stored in the subset of serial numbers;
calculating a used capacity of the sequence number based on the SN codes in the subset;
in response to the used capacity reaching a threshold and an SN code of a current device being in the subset, allowing addition of the current device.
2. The method of claim 1, further comprising:
in response to the used capacity being less than the threshold, allowing the current device to be added and storing the SN code of the current device in a subset of the serial numbers.
3. The method of claim 1, wherein the sequence number is generated based on a symmetric encryption algorithm.
4. The method of claim 1, wherein generating the machine code comprises:
and splicing the CPU ID of the 4 bits in front of the MAC address of the network card, splicing the rest part of the MAC address of the network card, splicing the number of the hard disks, and then encrypting through an MD5 encryption algorithm to generate the machine code.
5. The method of claim 1, wherein the activate code comprises: and splicing the machine codes by using the 1 st to 8 th bits as product names, the 9 th to 12 th bits as product versions, the 13 th bits as system versions and the 14 th to 23 th bits as the number of supported devices, and then encrypting by using a DES algorithm to generate the activation codes.
6. The method of claim 5, wherein the system versions include a trial version, a standard version, and an enterprise version.
7. The method of claim 1, wherein the threshold is a maximum number of devices supported by the serial number.
8. The method of claim 1, wherein the used capacity is a number of devices that the activate code has activated.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor, when executing the program, performs the method of any of claims 1-8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
CN201910794578.1A 2019-08-27 2019-08-27 Serial number management method, device and medium Pending CN110659454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910794578.1A CN110659454A (en) 2019-08-27 2019-08-27 Serial number management method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910794578.1A CN110659454A (en) 2019-08-27 2019-08-27 Serial number management method, device and medium

Publications (1)

Publication Number Publication Date
CN110659454A true CN110659454A (en) 2020-01-07

Family

ID=69037862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910794578.1A Pending CN110659454A (en) 2019-08-27 2019-08-27 Serial number management method, device and medium

Country Status (1)

Country Link
CN (1) CN110659454A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1831836A (en) * 2006-04-12 2006-09-13 北京金山软件有限公司 Method and system of saftware using license
CN102468969A (en) * 2010-10-29 2012-05-23 北大方正集团有限公司 Method and system for controlling number of registered clients
US20120144502A1 (en) * 2010-12-06 2012-06-07 Microsoft Corporaion Directory service distributed product activation
CN104680040A (en) * 2013-12-03 2015-06-03 方正国际软件(北京)有限公司 Software loading number and activation control method and system
CN108319821A (en) * 2018-02-07 2018-07-24 北京安博通科技股份有限公司 A kind of software activation method and device
CN108932166A (en) * 2018-07-25 2018-12-04 浪潮电子信息产业股份有限公司 A kind of resource under cloud management platform architecture uses control method, device and equipment
CN109241701A (en) * 2018-08-31 2019-01-18 郑州云海信息技术有限公司 A kind of application program Activiation method, correlation technique and relevant apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1831836A (en) * 2006-04-12 2006-09-13 北京金山软件有限公司 Method and system of saftware using license
CN102468969A (en) * 2010-10-29 2012-05-23 北大方正集团有限公司 Method and system for controlling number of registered clients
US20120144502A1 (en) * 2010-12-06 2012-06-07 Microsoft Corporaion Directory service distributed product activation
CN104680040A (en) * 2013-12-03 2015-06-03 方正国际软件(北京)有限公司 Software loading number and activation control method and system
CN108319821A (en) * 2018-02-07 2018-07-24 北京安博通科技股份有限公司 A kind of software activation method and device
CN108932166A (en) * 2018-07-25 2018-12-04 浪潮电子信息产业股份有限公司 A kind of resource under cloud management platform architecture uses control method, device and equipment
CN109241701A (en) * 2018-08-31 2019-01-18 郑州云海信息技术有限公司 A kind of application program Activiation method, correlation technique and relevant apparatus

Similar Documents

Publication Publication Date Title
CN109743315A (en) For Activity recognition method, apparatus, equipment and the readable storage medium storing program for executing of website
WO2020140634A1 (en) Storage space optimization method and device, computer apparatus, and storage medium
CN105871587A (en) Log uploading method and device
CN108810125B (en) Service discovery method and system for physical node
CN103942292A (en) Virtual machine mirror image document processing method, device and system
CN104866602A (en) Queue processing method and device
CN105260639A (en) Face recognition system data update method and device
WO2016045545A1 (en) Data interaction method and system, and server
US20170161092A1 (en) Iterative anti-collocation of network resources using prioritized graph coloring
WO2024021861A1 (en) Data recovery method and electronic device
CN108256332A (en) A kind of method of the BIOS startup passwords setting based on IPMI orders
US20160179624A1 (en) Expedited Device Backup, Wipe, and Enrollment
CN107908957B (en) Safe operation management method and system of intelligent terminal
US9256741B2 (en) Method and device for determining propagation relationship of Trojan horse files
US8719622B2 (en) Recording and preventing crash in an appliance
CN109165175B (en) Equipment identifier generation method and device
CN108133026B (en) Multi-data processing method, system and storage medium
CN103150159A (en) Identifier generation using named objects
CN104484132A (en) Data reduction method and device
CN115951845B (en) Disk management method, device, equipment and storage medium
CN110659454A (en) Serial number management method, device and medium
CN115242872A (en) Data processing method and device, computer equipment and readable storage medium
CN105808556A (en) Operating method for database and database engine
CN112306527A (en) Server upgrading method and device, computer equipment and storage medium
CN112463228A (en) Storage pool hybrid deployment method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200107