CN106919810A - Registration code generating method and device, software registration method and device - Google Patents

Registration code generating method and device, software registration method and device Download PDF

Info

Publication number
CN106919810A
CN106919810A CN201710096734.8A CN201710096734A CN106919810A CN 106919810 A CN106919810 A CN 106919810A CN 201710096734 A CN201710096734 A CN 201710096734A CN 106919810 A CN106919810 A CN 106919810A
Authority
CN
China
Prior art keywords
ciphertext
registration code
software
code
registration
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.)
Granted
Application number
CN201710096734.8A
Other languages
Chinese (zh)
Other versions
CN106919810B (en
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.)
GRG Banking Equipment Co Ltd
Guangdian Yuntong Financial Electronic Co Ltd
Original Assignee
Guangdian Yuntong Financial Electronic 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 Guangdian Yuntong Financial Electronic Co Ltd filed Critical Guangdian Yuntong Financial Electronic Co Ltd
Priority to CN201710096734.8A priority Critical patent/CN106919810B/en
Publication of CN106919810A publication Critical patent/CN106919810A/en
Application granted granted Critical
Publication of CN106919810B publication Critical patent/CN106919810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

The invention discloses one kind registration code generating method,Include machine code by making the registration code,Three kinds of information of software product password and some software authorities,Wherein machine code can prevent software to be illegally duplicated installation,Refitting system is reinstalled,Agreement condition on probation such as reinstalls at the situation of unauthorized use of software after expiring,And different software product passwords,Allow that software developer is protected using same software registration guard method to various software product,Furthermore,The authority for setting different softwares can meet the diversified demand of different user,Control is flexible,Therefore this programme can effectively overcome existing registration code few comprising information,The defect of unitary function,And avoid the problem of and parameter fixation excessively cumbersome using license file authorizings process,Facilitate user input,And be switched to formal operational phase in the evaluation software stage and need to only change registration code,Need not reinstall,It is convenient and swift.

Description

Registration code generating method and device, software registration method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of registration code generating method and device, software registration side Method and device.
Background technology
It is on probation to potential customers that software developer provides software in order to promote software, usually, at the same software developer in order to The interests of itself are protected, can be to carrying out a definite limitation to beta release software function.Common practice has three kinds, and one is that software is opened The beta release software that hair business's offer reduces partial function is experienced to client, and client just provides formal version after formally buying This global function software;Two is that software developer provides global function but has the trial edition software of useful life on probation to client, is tried out Needing to buy and install official release after expiring can just make;Three is that software developer's offer global function software is on probation to client, but Software default has a useful life, after the time limit must to software developer ask for License (authorization) files or Software could be used normally after input registration code.In these three modes, reducing the software of function can make user's experience on probation bad, Potential customers may be lost.Or meet customer requirement by reducing the trial edition software of function, cause client not enter one Step purchase power, equivalent to there is provided freeware.Global function but there is the evaluation software of useful life, due to the journey of evaluation software Preface part is different from the program file of formal software, and software of reinstalling or upgrade also is needed after point of purchase, it is impossible to realize by trying out Seamlessly transitted to formal use.
Can no doubt be used by multipacket message unit control software by the way of License file authorizings, but License file generic-document volumes are larger, and content is also unfavorable for that the mankind read and remember, it is difficult to pass through phone, short message carry out Transmission, is also unsuitable for batch and uses, and is unlikely manually entered on the target machine as being applied similar ATM License file contents.Although being input into usually using the software of registration code is convenient, because registration code is few comprising information unit, Unitary function, can only be by recognizing registration code effectively or disarmed state determines whether software can be continuing with.Use The duration on probation of the trial edition software for having useful life of License files or registration code mode is fixed, and cannot flexibly be controlled, After also likely to be present that client is on probation and expiring, by continuing service condition on probation after refitting system.
Accordingly, it would be desirable to a kind of not only facilitated input but also the method for the flexible control software access right of energy, user's request can be met With effectively protection software property right.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of registration code generating method and device, software registration method and device, Existing registration code can effectively be overcome comprising information is few, unitary function defect, and avoided using license file authorizing processes The problem that excessively cumbersome and parameter is fixed, can conveniently be input into, and can flexibly control again.
To achieve the above object, a kind of registration code generating method, including step be the embodiment of the invention provides:
First intermediate ciphertext is generated by the first AES based on machine code and software product password;
Limited according to default some software licenses, generate authorization message ciphertext;
After being encrypted computing according to first intermediate ciphertext and authorization message ciphertext, registration code ciphertext is generated;
According to the registration code ciphertext, the character string sequence of registration code is exported.
Compared with prior art, registration code generating method disclosed by the invention is first passed through to based on machine code and software product Password generates the first intermediate ciphertext by the first AES, is limited further according to default some software licenses, and generation authorizes letter Breath ciphertext, then by first intermediate ciphertext and authorization message ciphertext generation registration code ciphertext, so as to export the word of registration code Symbol string sequence so that the registration code includes machine code, three kinds of information of software product password and some software authorities, can effective gram Existing registration code is taken comprising information is few, unitary function defect, and is avoided excessively cumbersome using license file authorizing processes And the problem that parameter is fixed, can flexibly control and the property right of software can be protected.
Used as the improvement of such scheme, the machine code is entered by software product password and following one or more information Generated after row Hash computings:Hard disc of computer numbering, computer CPU numbering, computer MAC Address of Network Card, first time computer System time, the software configuration file content of device code.Machine code is generated by software product password and computer hardware information, The illegal copies of software can be prevented.And can limit user not using software configuration file content as machine code calculating input Key configuration can be changed, is conducive to protecting the property right of software.
It is described that first intermediate ciphertext and authorization message ciphertext are encrypted computing as the improvement of such scheme Afterwards, generation registration code ciphertext specifically includes step:
After first intermediate ciphertext is split as into Part I and Part II, by the second of first intermediate ciphertext Part generates interim ciphertext with the authorization message ciphertext by the second AES;
The second intermediate ciphertext is generated after the Part I of first intermediate ciphertext and the interim ciphertext are combined, And the 3rd intermediate ciphertext is generated by first AES;
After 3rd intermediate ciphertext is split as into Part I and Part II, by the first of the 3rd intermediate ciphertext Part and the interim ciphertext are combined generation registration code ciphertext.
By multiple combination and cryptographic calculation, both ensured that registration code included software product password, machine code and some soft The information of part access right three, in turn ensure that the nonrepeatability of registration code.
Used as the improvement of such scheme, the length of first intermediate ciphertext and machine code ciphertext is 16 bytes;And institute State the first intermediate ciphertext or the Part I of the 3rd intermediate ciphertext and the length of Part II meets following relation:
X+Y=16, X>0&Y>0
Wherein, the X is the Part I of the first intermediate ciphertext or the byte shared by the Part I of the 3rd intermediate ciphertext Number, Y is the Part II of the first intermediate ciphertext or the byte number shared by the Part II of the 3rd intermediate ciphertext.The Part I Shared byte number is less than the byte number shared by Part II, it is ensured that the registration ciphertext has enough memory spaces to wrap Software license limit needed for including.
As the improvement of such scheme, second AES be XOR AES, cyclic shift AES or Replacement AES.And constituted by setting different length, the method can be made to be set suitable for different software use authorizations Put.
Used as the improvement of such scheme, first AES is Hash AESs.Hash AESs can guarantee that The integrality and compact of information.
Used as the improvement of such scheme, the authorization message ciphertext includes the information unit of module composition, limited number of times Information unit, the information unit of limiting date, the letter of client maximum number of connections of the limitation number of days that information unit, software are used Interest statement unit, the maximum information unit for using number of users simultaneously, the information unit of maximum throughput support CPU maximum numbers Information unit.Limited by setting various software licenses, may be such that the authorization message ciphertext includes the various software right to use Limit information so that software meets the diversified demand of user using more flexibly.
The embodiment of the present invention is also corresponded to and provides a kind of software registration method, including step:
First AES is passed through into the first intermediate ciphertext based on machine code and software product password, in the middle of described first Ciphertext is split as Part I and Part II;
Receive the registration code of user input and be converted into registration code ciphertext, the registration code ciphertext is split as Part I And Part II;
The Part II of the Part I of first intermediate ciphertext and the registration code ciphertext is combined generation Two intermediate ciphertexts, and the 3rd intermediate ciphertext is generated by the first AES, the 3rd intermediate ciphertext is split as first Divide and Part II;
When the Part I of the 3rd intermediate ciphertext is equal with the Part I of the registration code ciphertext, it is determined that note Volume code effectively, and the registration code ciphertext is preserved to registration table;
When the registration code is effective, the Part II of the Part II of registration code ciphertext and the first intermediate ciphertext is passed through Second AES obtains authorization message ciphertext, parses the authorization message that the authorization message ciphertext obtains software product.
, be encrypted for machine code and software product password first by a kind of software registration method disclosed in the embodiment of the present invention Split with the registration code ciphertext after computing, reconfigure and the 3rd intermediate ciphertext is obtained after cryptographic calculation, if described The Part I of three intermediate ciphertexts is identical with the Part I of the registration code ciphertext, determines that registration code is effective;If registration code has Effect, the Part II of the Part II of the 3rd intermediate ciphertext and the registration code ciphertext is encrypted to be generated after computing and is awarded Power information ciphertext, parsing the authorization message ciphertext can obtain authorization message.By first to the registration code ciphertext Point carry out verifying the right to use of software, the unauthorized use of software such as reinstall after illegal copies, the refitting system that can prevent software Use, effectively protect the property right of software;By after the checking of software license, being obtained by parsing the authorization message ciphertext Authorization message, flexibly configurable software function module composition, access times, use the software licenses such as number of days, useful life Limit, can meet the diversified demand of user, can effectively overcome existing registration code comprising information is few, unitary function defect, and keep away The problem of and parameter fixation excessively cumbersome using license file authorizings process is exempted from, can conveniently be input into, can flexibly control again System.
The embodiment of the present invention is also corresponded to and provides a kind of registration code generating means, including:
First intermediate ciphertext generation module, for being generated by the first AES based on machine code and software product password First intermediate ciphertext;
Authorization message generation module, limits for default some software licenses, generates authorization message ciphertext;
Registration code generation module, after being encrypted computing according to first intermediate ciphertext and authorization message ciphertext, Generation registration code ciphertext.
Registration code output module, for according to registration code ciphertext, exporting the character string sequence of registration code.
A kind of registration code generating means disclosed in the embodiment of the present invention, machine is integrated by the first intermediate ciphertext generation module Code and software product password generate the first intermediate ciphertext, are generated by authorization message further according to default some software license limits Module generates authorization message ciphertext, first intermediate ciphertext and registration code generation module is combined raw with after cryptographic calculation Into registration code ciphertext so that the registration code includes machine code, three kinds of information of software product password and some software authorities, it is to avoid Software is illegally duplicated installation, can effectively overcome existing registration code comprising information is few, unitary function defect, and avoids and use The problem that license file authorizings process is excessively cumbersome and parameter is fixed, can flexibly control and can protect the property right of software.
The embodiment of the present invention is also corresponded to and provides a kind of software registration device, including:
First intermediate ciphertext splits module, for based on machine code and software product password by the first AES into the One intermediate ciphertext, Part I and Part II are split as by first intermediate ciphertext;
Registration code ciphertext splits module, for receiving the registration code of user input and being converted into registration code ciphertext, will be described Registration code ciphertext is split as Part I and Part II;
3rd intermediate ciphertext splits module, for by the Part I of first intermediate ciphertext and the registration code ciphertext Part II be combined the second intermediate ciphertext of generation, and the 3rd intermediate ciphertext is generated by the first AES, will be described 3rd intermediate ciphertext is split as Part I and Part II;
Registration code authentication module, for the Part I when the 3rd intermediate ciphertext and the first of the registration code ciphertext When part is equal, it is determined that registration code effectively, and the registration code ciphertext is preserved to registration table;
Authorization message parsing module, for when the registration code is effective, by the Part II of registration code ciphertext and first The Part II of intermediate ciphertext obtains authorization message ciphertext by the second AES, parses the authorization message ciphertext and obtains soft The authorization message of part product.
, be encrypted for machine code and software product password first by a kind of software registration device disclosed in the embodiment of the present invention Split with the registration code ciphertext after computing, reconfigure and the 3rd intermediate ciphertext is obtained after cryptographic calculation, if described The Part I of three intermediate ciphertexts is identical with the Part I of the registration code ciphertext, determines that registration code is effective;If registration code has Effect, by authorization message parsing module by the Part II of the 3rd intermediate ciphertext and the Part II of the registration code ciphertext Authorization message ciphertext is generated after being encrypted computing, parsing the authorization message ciphertext can obtain authorization message.By to institute Stating the Part I of registration code ciphertext verify the right to use of software, can prevent weight after illegal copies, the refitting system of software The use of the unauthorized use of software such as new installation, effectively protects the property right of software;By after the checking of software license, by solution Analyse the authorization message ciphertext and obtain authorization message, flexibly configurable software function module composition, access times, using number of days, The software licenses such as useful life limit, the diversified demand of user can be met, can effectively overcome existing registration code comprising information it is few, The defect of unitary function, and avoid the problem of and parameter fixation excessively cumbersome using license file authorizings process, Ji Nengfang Just it is input into, can flexibly controls again.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for registering code generating method in the embodiment of the present invention 1.
Fig. 2 is a kind of schematic flow sheet for registering code generating method in the embodiment of the present invention 2.
Fig. 3 is the process schematic of registration code generation in the embodiment of the present invention 2.
Fig. 4 is a kind of schematic flow sheet of software registration method in the embodiment of the present invention 3.
Fig. 5 is a kind of structural representation of registration code generating means in the embodiment of the present invention 4.
Fig. 6 is a kind of structural representation of software registration device in the embodiment of the present invention 5.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
It is a kind of schematic flow sheet of registration code generating method that the embodiment of the present invention 1 is provided referring to Fig. 1.As shown in Figure 1 Registration code generating method include step:
S11, the first intermediate ciphertext is generated by the first AES based on machine code and software product password;
S12, limited according to default some software licenses, generate authorization message ciphertext;
S13, first intermediate ciphertext and authorization message ciphertext are encrypted computing after, generate registration code ciphertext;
S14, according to the registration code ciphertext, export the character string sequence of registration code.
During specific implementation, the software product password is close for the product of software design patterns of the software developer to different editions Code, is privately owned developer, is not opened to the outside world.First machine code and software product password are encrypted in the middle of computing available first Ciphertext, first intermediate ciphertext includes the information of both machine code and software product password;Then, according to default some soft Part access right, generates authorization message ciphertext, and some software license limits can be opened in the software development and design stage by software Hair business is configured for different customer groups, can also be set by user in software marketing operational phase and formal operational phase Put;Then, after just described first intermediate ciphertext and authorization message ciphertext are encrypted computing, registration code ciphertext, then root are generated The character string sequence of registration code is exported according to registration code ciphertext.By above procedure, can in registration code ciphertext integration software product Password, machine code and software license limit the information of three, wherein, the machine code and software product password are used for software When checking to software license, and configure different software licenses limits can the functional module of flexible control software constitute, make With number of days, access times etc., the diversified demand of user is met, therefore this programme can effectively overcome existing registration code to include information Less, the defect of unitary function, and the problem of and parameter fixation excessively cumbersome using license file authorizings process is avoided, both Can conveniently be input into, can flexibly control again.
Preferably, the machine code to software product password and following one or more information after carrying out Hash computings Generation:When hard disc of computer numbering, computer CPU numbering, the system of computer MAC Address of Network Card, first time computing machine code Between, software configuration file content.Wherein, hard disk serial number, CPU number, MAC Address of Network Card, can be by operating system api function Directly read, using for this three groups of data can cause each physical machine machine code different, also limit same note Volume code is on many machines simultaneously using possible.Such as a certain hard disc of computer numbering is HDS722525VLAT80, MAC Address It is 50-7B-9D-C1-A6-96, these data typically all have uniqueness, therefore the corresponding machine code of different computers is also different, Therefore same registration code can only recognize a unique machine, it is impossible to copy to and used on other machines.On the other hand, first is used The system time of secondary computing machine code generates machine code, and the leak of software can be reinstalled after anti-locking system refitting.Because, The system time of first time computing machine code, on specific operation system Installation Example, performs the code operation of first time computing machine The numerical value by present system time with millisecond as granularity writes registration table afterwards, when computing machine code is needed again next time again, will The time value for reading and using registration table to record, it is consistent this guarantees each computing machine code result, but after refitting system Due to it is difficult to ensure that for the first time obtain machine code time millisecond value it is identical, so machine code must be change, machine code Change can make current registration code fail.Furthermore, software merit rating content calculates input and can limit user user not as machine code Can be controlled oneself modification key configuration, and such as some softwares show the client company title for using in meeting in window title, if used The content of client company title as computing machine code parameter, user voluntarily software modification display Business Name after machine code Can change, the change of machine code can make current registration code fail.Therefore, machine code is generated by software merit rating content, then is passed through Machine code generates registration code, and the illegal copies and piracy that can prevent software are used.6 contents of the above, software product password is The input item of computing machine code, other unnecessary wholes in computing machine code are used, and can limit plan according to software function Optional one of which or several is applied in combination in slightly.The software code different for different software merit ratings, is conducive to many Software product registration code is managed using same daemon software, it is also possible to which realizing the registration code of different software product can not lead to With.
Therefore, machine code is used in one software installation environment of limited range unique identification, the calculating that can be used in user Automatically generated on machine, user can be directly viewable machine code on software interface.Preferably, for convenience of the consideration of input, machine code For digital and length is limited in 10 characters, 10 characters can be that the string number of 0-9 is represented.The machine code exists It is interior on a large scale to repeat, but minimal amount of repetition will not influence on selling and using producing in limited range.
It is a kind of schematic flow sheet of registration code generating method that the embodiment of the present invention 2 is provided referring to Fig. 2.As shown in Figure 2 Registration code generating method on the basis of embodiment 1, the step S13 specifically includes step:
S131, first intermediate ciphertext is split as Part I and Part II after, by first intermediate ciphertext Part II and the authorization message ciphertext interim ciphertext is generated by the second AES;
S132, the Part I of first intermediate ciphertext and the interim ciphertext are combined after generation second in the middle of Ciphertext, and the 3rd intermediate ciphertext is generated by first AES;
S133, the 3rd intermediate ciphertext is split as Part I and Part II after, by the 3rd intermediate ciphertext Part I and the interim ciphertext be combined generation registration code ciphertext.
With reference to Fig. 3, the course of work of the embodiment of the present invention will be specifically described below.During specific implementation, first receive The machine code S that user provides, using the machine code S and software product password K as input, the is generated by the first AES One intermediate ciphertext M1, Part I M1-1 and Part II M1-2 are split as by the first intermediate ciphertext;According to default some soft Part access right, generation authorization message ciphertext P;The Part II M1-2 and the authorization message of first intermediate ciphertext is close Literary P generates interim ciphertext R1 by the second AES;Then, by the Part I M1-1 of first intermediate ciphertext and described Interim ciphertext R1 generates the second intermediate ciphertext M2 after being combined, and generates the 3rd intermediate ciphertext M3 by the first AES; Then, the 3rd intermediate ciphertext M3 is split into Part I M3-1 and Part II M3-2, by the 3rd intermediate ciphertext Part I M3-1 and interim ciphertext R1 be combined after generate registration code ciphertext M4;Finally, according to the registration code ciphertext M4 exports the character string sequence R of registration code.In above process, adding for multiple rounds, can be carried out by first AES Close computing, is conducive to the nonrepeatability of registration code, and increased registration code cracks difficulty, protects the property right of software.Pass through Said process so that the registration code includes machine code, wherein three kinds of information of software product password and some software authorities, machine Code can prevent from software to be illegally duplicated installations, refitting system reinstalling, arrange to try out after condition expires and reinstall etc. illegally Use the situation of software, and different software product passwords so that software developer can be protected using same software registration Method is protected to various software product, furthermore, setting the authority of different softwares, can to meet different user diversified Demand, control is flexible, therefore this programme can effectively overcome existing registration code comprising information is few, unitary function defect, and avoids Using the problem that license file authorizings process is excessively cumbersome and parameter is fixed, facilitate user input, and in evaluation software rank Section is switched to formal operational phase need to only change registration code, without reinstalling.
Preferably, the authorization message ciphertext includes information unit, the information unit of limited number of times, the software of module composition Information unit, the information unit of limiting date, the most information unit of client maximum number of connections, the Datong District for the limitation number of days for using When using the information unit of number of users, the information unit of maximum throughput or support CPU maximum numbers information unit.It is described Information of the authorization message ciphertext comprising various software access right, wherein the authorization message ciphertext may include module id, two Individual counter initial value and time restriction.Wherein, a counter is used for counting how many times, and another counter is based on number of days Number.The counting how many times can be counted for client maximum number of connections, maximum is counted using number of users simultaneously, maximum throughput Count or support that CPU maximum numbers are counted, can be configured according to the different demand of user.It is corresponding, when software is opened, or In some cycles during running software, inspection mandate can be carried out to software, whether check item has registers, uses number of days, validity period Whether limit has reached, whether designated module can be used etc..
Preferably, the length of first intermediate ciphertext and machine code ciphertext can be set to 16 bytes;And described The length of the Part I and Part II of one intermediate ciphertext or the 3rd intermediate ciphertext meets following relation:
X+Y=16, X>0&Y>0
Wherein, the X is the Part I of the first intermediate ciphertext or the byte shared by the Part I of the 3rd intermediate ciphertext Number, Y is the Part II of the first intermediate ciphertext or the byte number shared by the Part II of the 3rd intermediate ciphertext.Byte number, Y is Byte number shared by the Part II of the Part II of one intermediate ciphertext or the 3rd intermediate ciphertext.In actual applications, described Byte number X shared by a part is less than the byte number Y shared by Part II, it is ensured that the registration ciphertext has enough storages Space limits (usual Y >=8) with including required software license.From said process, registration code ciphertext accounts for 16 bytes, It it is exactly 128, using hexadecimal, by ASCII (American Standard Code for Information Interchange, ASCII) code table, 32 characters can be changed into by 128, constituted according to registration code Custom, also for more convenient input and transmission, the registration code of stating is made up of the character of 0-9, A-F.
Further, first algorithm is hash algorithm.Hash algorithm by the binary value of random length be mapped as compared with The binary value of short regular length, this small binary value is referred to as hash value.Hash value be one piece of data uniquely and extremely Compact numerical value representation.If changed in input data, hash value can also change.Wherein, it is the more commonly used Hash algorithm is MD5 and SHA.
Preferably, second AES be XOR AES, cyclic shift AES or replacement AES, This several algorithm can be illustrated by following formula:
Such as plaintext T, key K;XOR AES is E=T xor K;Cyclic shift algorithm be E=T ring shift lefts K (or Ring shift right);Replacement AES is E=Table [K+T mod L], and L is the size of substitution list Table.Wherein, circulation is moved Inconvenience is realized in position in high-level language, and replacement encryption needs to build the map table for replacing, so the second AES is preferable It is XOR AES.
Registration code generating method in accordance with the above, the embodiment of the present invention 3 is also corresponded to and provides a kind of software registration side Method (i.e. authorization method, the inverse operation of substantially above-mentioned registration code generating method), as shown in figure 4, including step:
S31, based on machine code and software product password by the first AES into the first intermediate ciphertext, by described first Intermediate ciphertext is split as Part I and Part II;
S32, the registration code for receiving user input are simultaneously converted into registration code ciphertext, and the registration code ciphertext is split as into first Part and Part II;
S33, the Part II of the Part I of first intermediate ciphertext and the registration code ciphertext is combined after The second intermediate ciphertext is generated, and the 3rd intermediate ciphertext is generated by the first AES, the 3rd intermediate ciphertext is split as Part I and Part II;
S34, when the Part I of the 3rd intermediate ciphertext is equal with the Part I of the registration code ciphertext, then really Determine registration code effectively, and the registration code ciphertext is preserved to registration table;
S35, when the registration code is effective, by the Part II of registration code ciphertext and the Part II of the first intermediate ciphertext Authorization message ciphertext is obtained by the second AES, the authorization message that the authorization message ciphertext obtains software product is parsed.
During specific implementation, first by machine code S and software product password K by the first AES into the first intermediate ciphertext M1, Part I M1-1 and Part II M1-2 is split as by the first intermediate ciphertext M1;Again by the registration code R of user input And registration code ciphertext M4 is converted into, the registration code ciphertext is split as Part I M4-1 and Part II M4-2;Will be described The Part II M4-2 of the Part I M1-1 of the first intermediate ciphertext and the registration code ciphertext is combined in the middle of generation second Ciphertext M2, and the 3rd intermediate ciphertext M3 is generated by the first AES, the 3rd intermediate ciphertext is split as Part I M3-1 and Part II M3-2;When the Part I of Part I M3-1 and the registration code ciphertext of the 3rd intermediate ciphertext When M4-1 is equal, it is determined that registration code effectively, and the registration code R is preserved to registration table;When the registration code is effective, will The Part II M4-2 of registration code ciphertext and the Part II M1-2 of the first intermediate ciphertext are authorized by the second AES Information ciphertext P, parses the authorization message that the authorization message ciphertext P obtains software product.By registration code generating process and right The software registration process answered understands that first AES is non-reversible algorithm, is preferably Hash AESs, described the Two AESs are reversible algorithm, are preferably XOR AES.Carried out by the Part I to the registration code ciphertext The right to use of software is verified, the use of unauthorized use of software such as reinstalls after illegal copies, the refitting system that can prevent software, Effectively protect the property right of software;By after the checking of software license, being authorized by parsing the authorization message ciphertext Information, flexibly configurable software function module composition, access times, using the software licenses such as number of days, useful life limit, can expire The sufficient diversified demand of user, can effectively overcome existing registration code comprising information is few, unitary function defect, and avoids and use The problem that license file authorizings process is excessively cumbersome and parameter is fixed, can conveniently be input into, and can flexibly control again.
The embodiment of the present invention 4 or correspondence provide a kind of registration code generating means, as shown in figure 5, the registration code is given birth to Include into device 100:
First intermediate ciphertext generation module 101, for passing through the first AES based on machine code and software product password Generate the first intermediate ciphertext;
Authorization message generation module 102, limits for default some software licenses, generates authorization message ciphertext;
Registration code generation module 103, for being encrypted computing according to first intermediate ciphertext and authorization message ciphertext Afterwards, registration code ciphertext is generated.
Registration code output module 104, for according to registration code ciphertext, exporting the character string sequence of registration code.
Registration code generating means 100 disclosed in the embodiment of the present invention integrate machine by the first intermediate ciphertext generation module 101 Device code and software product password generate the first intermediate ciphertext, are given birth to by authorization message further according to default some software license limits Authorization message ciphertext is generated into module 102, first intermediate ciphertext and registration code is generated by registration code generation module 103 Module is combined and registration code ciphertext is generated after cryptographic calculation so that the registration code includes machine code, software product password With three kinds of information of some software authorities, it is to avoid software is illegally duplicated installation, can effectively overcome existing registration code comprising information it is few, The defect of unitary function, and the problem of and parameter fixation excessively cumbersome using license file authorizings process is avoided, can be flexible Control can protect the property right of software again.
The embodiment of the present invention 5 or correspondence provide a kind of software registration device 200, as shown in fig. 6, including:
First intermediate ciphertext splits module 201, for passing through the first AES based on machine code and software product password Into the first intermediate ciphertext, first intermediate ciphertext is split as Part I and Part II;
Registration code ciphertext splits module 202, for receiving the registration code of user input and being converted into registration code ciphertext, by institute State registration code ciphertext and be split as Part I and Part II;
3rd intermediate ciphertext splits module 203, for by the Part I and the registration code of first intermediate ciphertext The Part II of ciphertext is combined the second intermediate ciphertext of generation, and generates the 3rd intermediate ciphertext by the first AES, will 3rd intermediate ciphertext is split as Part I and Part II;
Registration code authentication module 204, for the Part I when the 3rd intermediate ciphertext and the registration code ciphertext When Part I is equal, it is determined that registration code effectively, and the registration code ciphertext is preserved to registration table;
Authorization message parsing module 205, for when the registration code is effective, by the Part II of registration code ciphertext and The Part II of one intermediate ciphertext obtains authorization message ciphertext by the second AES, parses the authorization message ciphertext and obtains The authorization message of software product.
The course of work of the software registration device 200 of the embodiment of the present invention refers to above-described embodiment 3 to software registration side The specific descriptions of method, will not be repeated here.
To sum up, the invention discloses one kind registration code generating method, software registration method and registration code generating means, pass through To generating the first intermediate ciphertext by the first AES based on machine code and software product password, further according to default some soft Part access right, generates authorization message ciphertext, then that first intermediate ciphertext and authorization message ciphertext generation registration code is close Text, so as to export the character string sequence of registration code so that the registration code includes machine code, software product password and some softwares Three kinds of information of authority, wherein, wherein machine code can prevent software be illegally duplicated installation, refitting system reinstall, arrange examination The situation of unauthorized use of software such as reinstall after being expired with condition, and different software product passwords so that software developer Various software product can be protected using same software registration guard method, furthermore configure different software licenses Limit can flexibly control software functional module constitute, using number of days, access times etc., meet the diversified demand of user, therefore This programme can effectively overcome existing registration code comprising information is few, unitary function defect, and avoid using license files The problem that licensing process is excessively cumbersome and parameter is fixed, can conveniently be input into, and can flexibly control again.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. it is a kind of to register code generating method, it is characterised in that including:
First intermediate ciphertext is generated by the first AES based on machine code and software product password;
Limited according to default some software licenses, generate authorization message ciphertext;
After first intermediate ciphertext and authorization message ciphertext are encrypted into computing, registration code ciphertext is generated;
According to the registration code ciphertext, the character string sequence of registration code is exported.
2. it is as claimed in claim 1 to register code generating method, it is characterised in that the machine code is by software product password Generated after carrying out Hash computings with following one or more information:Hard disc of computer numbering, computer CPU numbering, computer network System time, the software configuration file content of card MAC Address, first time computing machine code.
3. it is as claimed in claim 1 to register code generating method, it is characterised in that described by first intermediate ciphertext and mandate After information ciphertext is encrypted computing, generation registration code ciphertext specifically includes step:
After first intermediate ciphertext is split as into Part I and Part II, by the Part II of first intermediate ciphertext Interim ciphertext is generated by the second AES with the authorization message ciphertext;
The second intermediate ciphertext is generated after the Part I of first intermediate ciphertext and the interim ciphertext are combined, and is led to Cross first AES and generate the 3rd intermediate ciphertext;
After 3rd intermediate ciphertext is split as into Part I and Part II, by the Part I of the 3rd intermediate ciphertext Generation registration code ciphertext is combined with the interim ciphertext.
4. it is as claimed in claim 3 to register code generating method, it is characterised in that first intermediate ciphertext and machine code ciphertext Length be 16 bytes;And the length of the Part I and Part II of first intermediate ciphertext or the 3rd intermediate ciphertext expires It is enough to lower relation:
X+Y=16, X>0&Y>0
Wherein, the X is the Part I of the first intermediate ciphertext or the byte number shared by the Part I of the 3rd intermediate ciphertext, Y Byte number shared by the Part II of the first intermediate ciphertext or the Part II of the 3rd intermediate ciphertext.
5. it is as claimed in claim 3 to register code generating method, it is characterised in that second AES is that XOR encrypts calculation Method, cyclic shift AES or replacement AES.
6. the registration code generating method as described in claim 1 or 3, it is characterised in that first AES adds for Hash Close algorithm.
7. it is as claimed in claim 1 to register code generating method, it is characterised in that the authorization message ciphertext includes that module is constituted Information unit, the information unit of limited number of times, software information unit, the information list of limiting date of limitation number of days that use Unit, the information unit of client maximum number of connections, maximum use information unit, the information of maximum throughput of number of users simultaneously The information unit of unit or support CPU maximum numbers.
8. a kind of software registration method, it is characterised in that including step:
First AES is passed through into the first intermediate ciphertext based on machine code and software product password, by first intermediate ciphertext It is split as Part I and Part II;
The registration code for receiving user input is simultaneously converted into registration code ciphertext, and the registration code ciphertext is split as into Part I and the Two parts;
The Part II of the Part I of first intermediate ciphertext and the registration code ciphertext is combined in generation second Between ciphertext, and by the first AES generate the 3rd intermediate ciphertext, by the 3rd intermediate ciphertext be split as Part I and Part II;
When the Part I of the 3rd intermediate ciphertext is equal with the Part I of the registration code ciphertext, it is determined that registration code Effectively, and by the registration code ciphertext preserve to registration table;
When the registration code is effective, the Part II of the Part II of registration code ciphertext and the first intermediate ciphertext is passed through second AES obtains authorization message ciphertext, parses the authorization message that the authorization message ciphertext obtains software product.
9. a kind of registration code generating means, it is characterised in that including:
First intermediate ciphertext generation module, for generating first by the first AES based on machine code and software product password Intermediate ciphertext;
Authorization message generation module, limits for default some software licenses, generates authorization message ciphertext;
Registration code generation module, after being encrypted computing according to first intermediate ciphertext and authorization message ciphertext, generation Registration code ciphertext.
Registration code output module, for according to registration code ciphertext, exporting the character string sequence of registration code.
10. a kind of software registration device, it is characterised in that including:
First intermediate ciphertext splits module, for based on machine code and software product password by the first AES into first Between ciphertext, first intermediate ciphertext is split as Part I and Part II;
Registration code ciphertext splits module, for receiving the registration code of user input and being converted into registration code ciphertext, by the registration Code ciphertext is split as Part I and Part II;
3rd intermediate ciphertext splits module, for by the of the Part I of first intermediate ciphertext and the registration code ciphertext Two parts are combined the second intermediate ciphertext of generation, and generate the 3rd intermediate ciphertext by the first AES, by the described 3rd Intermediate ciphertext is split as Part I and Part II;
Registration code authentication module, for the Part I of the Part I when the 3rd intermediate ciphertext and the registration code ciphertext When equal, it is determined that registration code effectively, and the registration code ciphertext is preserved to registration table;
Authorization message parsing module, for when the registration code is effective, in the middle of the Part II of registration code ciphertext and first The Part II of ciphertext obtains authorization message ciphertext by the second AES, parses the authorization message ciphertext and obtains software product The authorization message of product.
CN201710096734.8A 2017-02-22 2017-02-22 Registration code generation method and device and software registration method and device Active CN106919810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710096734.8A CN106919810B (en) 2017-02-22 2017-02-22 Registration code generation method and device and software registration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710096734.8A CN106919810B (en) 2017-02-22 2017-02-22 Registration code generation method and device and software registration method and device

Publications (2)

Publication Number Publication Date
CN106919810A true CN106919810A (en) 2017-07-04
CN106919810B CN106919810B (en) 2020-04-07

Family

ID=59454472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710096734.8A Active CN106919810B (en) 2017-02-22 2017-02-22 Registration code generation method and device and software registration method and device

Country Status (1)

Country Link
CN (1) CN106919810B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563211A (en) * 2017-09-06 2018-01-09 荷花科技(北京)有限公司 Safe encryption method and system
CN108548271A (en) * 2018-04-17 2018-09-18 奥克斯空调股份有限公司 Air conditioning monitoring and the method and system of debugging software mandate
CN108897995A (en) * 2018-06-19 2018-11-27 河南正来电子科技有限公司 A kind of embedded software encrypting registration method of combination embedded device
CN109450618A (en) * 2019-01-11 2019-03-08 无锡华大国奇科技有限公司 A kind of encryption method and system based on MD5
CN110213306A (en) * 2018-02-28 2019-09-06 北京金风科创风电设备有限公司 Wind generating set starting control method and device
CN111859364A (en) * 2020-07-29 2020-10-30 杭州安恒信息技术股份有限公司 Authority authentication method, device, equipment and storage medium
CN115357869A (en) * 2022-10-19 2022-11-18 安徽华云安科技有限公司 Software activation method and device based on multipath configuration
CN116318982A (en) * 2023-03-10 2023-06-23 深圳市银拓科技有限公司 License-based method for activating software of product to be authorized and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592190B (en) * 2003-08-29 2011-06-29 三星电子株式会社 Hardware cryptographic engine and encryption method
CN102314572A (en) * 2011-10-14 2012-01-11 迈普通信技术股份有限公司 Registration information file generation method and device, and use authorization method of application software
CN103093129A (en) * 2013-01-09 2013-05-08 上海大唐移动通信设备有限公司 Registration code generation method and device used for software licensing
US20140082370A1 (en) * 2011-06-22 2014-03-20 Media Patents . S.L. Methods, apparatus and systems to improve security in computer systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592190B (en) * 2003-08-29 2011-06-29 三星电子株式会社 Hardware cryptographic engine and encryption method
US20140082370A1 (en) * 2011-06-22 2014-03-20 Media Patents . S.L. Methods, apparatus and systems to improve security in computer systems
CN102314572A (en) * 2011-10-14 2012-01-11 迈普通信技术股份有限公司 Registration information file generation method and device, and use authorization method of application software
CN103093129A (en) * 2013-01-09 2013-05-08 上海大唐移动通信设备有限公司 Registration code generation method and device used for software licensing

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563211A (en) * 2017-09-06 2018-01-09 荷花科技(北京)有限公司 Safe encryption method and system
CN110213306A (en) * 2018-02-28 2019-09-06 北京金风科创风电设备有限公司 Wind generating set starting control method and device
CN110213306B (en) * 2018-02-28 2022-03-08 北京金风科创风电设备有限公司 Wind generating set starting control method and device
CN108548271A (en) * 2018-04-17 2018-09-18 奥克斯空调股份有限公司 Air conditioning monitoring and the method and system of debugging software mandate
CN108548271B (en) * 2018-04-17 2020-04-21 奥克斯空调股份有限公司 Method and system for air conditioner monitoring and debugging software authorization
CN108897995A (en) * 2018-06-19 2018-11-27 河南正来电子科技有限公司 A kind of embedded software encrypting registration method of combination embedded device
CN109450618A (en) * 2019-01-11 2019-03-08 无锡华大国奇科技有限公司 A kind of encryption method and system based on MD5
CN109450618B (en) * 2019-01-11 2021-12-31 无锡华大国奇科技有限公司 MD 5-based encryption method and system
CN111859364A (en) * 2020-07-29 2020-10-30 杭州安恒信息技术股份有限公司 Authority authentication method, device, equipment and storage medium
CN115357869A (en) * 2022-10-19 2022-11-18 安徽华云安科技有限公司 Software activation method and device based on multipath configuration
CN116318982A (en) * 2023-03-10 2023-06-23 深圳市银拓科技有限公司 License-based method for activating software of product to be authorized and electronic equipment
CN116318982B (en) * 2023-03-10 2023-11-17 深圳市银拓科技有限公司 License-based method for activating software of product to be authorized and electronic equipment

Also Published As

Publication number Publication date
CN106919810B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN106919810A (en) Registration code generating method and device, software registration method and device
KR100200444B1 (en) Method of distribute software object
KR100188505B1 (en) Method and apparatus enabling software trial using an encryption header
KR100200443B1 (en) Method of distribution software object
US8843745B2 (en) Methods of authorizing a computer license
WO2018046008A1 (en) Storage design method of blockchain encrypted radio frequency chip
CN1985466B (en) Method of delivering direct proof private keys in signed groups to devices using a distribution CD
US7694153B2 (en) Changing product behavior in accordance with license
CA2242596C (en) System for controlling access and distribution of digital property
CN100456200C (en) Multi-token seal and unseal
CN101996154B (en) General processor supporting reconfigurable safety design
US20070055892A1 (en) Concealment of information in electronic design automation
WO2021218331A1 (en) Offline software licensing method, apparatus and device, and storage medium
WO2007098584A1 (en) System and method for product registration
CA2308755A1 (en) Reconfigurable secure hardware apparatus and method of operation
CN108090366B (en) Data protection method and device, computer device and readable storage medium
US20090222927A1 (en) Concealment of Information in Electronic Design Automation
CN109299586A (en) It is a kind of to decrypt Activiation method, system and storage medium offline
US11562050B2 (en) System and method for licensing and for measuring use of an IP block
CS Machado et al. Software control and intellectual property protection in cyber-physical systems
CN111506915A (en) Authorized access control method, device and system
Gallery et al. Conditional access in mobile systems: Securing the application
CN112307449A (en) Permission hierarchical management method and device, electronic equipment and readable storage medium
CN111104646A (en) Symmetric algorithm software authorization method based on equipment information
Snouffer et al. A COMPARISON OF THE SECURITY REQUIREMENTS

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
GR01 Patent grant
GR01 Patent grant