CN108875316A - Licensing generation and verification method and server based on block chain - Google Patents
Licensing generation and verification method and server based on block chain Download PDFInfo
- Publication number
- CN108875316A CN108875316A CN201810556683.7A CN201810556683A CN108875316A CN 108875316 A CN108875316 A CN 108875316A CN 201810556683 A CN201810556683 A CN 201810556683A CN 108875316 A CN108875316 A CN 108875316A
- Authority
- CN
- China
- Prior art keywords
- licensing
- block chain
- license
- client
- identification information
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012795 verification Methods 0.000 title claims abstract description 17
- 238000010200 validation analysis Methods 0.000 claims description 26
- 230000015654 memory Effects 0.000 claims description 23
- 230000005540 biological transmission Effects 0.000 claims description 10
- 230000001052 transient effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/105—Arrangements for software license management or administration, e.g. for managing licenses at corporate level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Storage Device Security (AREA)
Abstract
The licensing that the invention discloses a kind of based on block chain generates and verification method and server, and wherein licensing generation method includes:Receive the license request that client is sent;Corresponding licensing is generated according to license request;Licensing is stored to block chain, and obtains corresponding first block chain storage identification information;Licensing and corresponding first block chain storage identification information are sent to client.Licensing generation provided in an embodiment of the present invention and verification method and server, after generating corresponding licensing according to license request, by storing licensing to block chain and the characteristic that can not be distorted that has using block chain, on the one hand the basic function to client issue licenses is realized, on the other hand it ensure that the reliability of the licensing stored in block chain, the problem of licensing stored in block chain verify data the most being verified, be changed to avoid the original license for verifying to the licensing that client is held.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of licensing based on block chain generate and verification method and
Server.
Background technique
Manufacturer is often one unique licensing of specific user configuration when selling software product, user according to
Licensing runs software product in its client.The main purpose of licensing is to prevent the illegal traveling software product of user,
The circulation of piracy software is blocked to protect the legitimate rights and interests of manufacturer.Currently, licensing generally carry out issuing in the following manner and
Verifying:Firstly, client generates registration code, server generates licensing according to registration code;Secondly, client periodically uploads license
Demonstrate,prove the validation verification that server-side carries out licensing.
This license awarding and verification mode have a problem that, i.e., if the operation maintenance personnel of server modifies data
Library may be such that the original license for verifying stored in server changes, and then cause to the normal of client
There is the erroneous judgement of verifying failure in licensing.Therefore, relevant staff how to be effectively prevent to carry out the related data of licensing
It arbitrarily distorts, is current urgent problem to be solved.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of generation of licensing and verification methods and server, to solve to use
The problem of being tampered is easy in the original license of verifying.
According in a first aspect, the embodiment of the invention provides a kind of licensing generation methods based on block chain, including:It connects
Receive the license request that client is sent;Corresponding licensing is generated according to the license request;The licensing is stored
To block chain, and obtain the corresponding first block chain storage identification information of the licensing;By the licensing and the license
It demonstrate,proves corresponding first block chain storage identification information and is sent to the client.
Licensing generation method provided in an embodiment of the present invention based on block chain is corresponded to being generated according to license request
Licensing after, it is on the one hand real by storing licensing to block chain and the characteristic that can not be distorted that has using block chain
Show the basic function to client issue licenses, on the other hand ensure that the reliability of the licensing stored in block chain,
The licensing stored in block chain verify data the most can verify the licensing that client is held, to avoid being used for
The problem of original license of verifying is changed.
With reference to first aspect, in first aspect first embodiment, the client passes through described in following steps generation
License request:Corresponding registration code is generated according to the encryption of the registration information of client;The registration code is stored to block chain,
And the corresponding second block chain storage identification information of the registration code for obtaining the transmission of block chain;It is deposited according to the second block chain
It stores up identification information and generates the license request.
Licensing generation method provided in an embodiment of the present invention based on block chain, due to the registration code for generating client
It is stored into block chain, realizes can not distorting for registration code, while registration code being entered to the second block chain storage identification of chain storage
Information generate license request, and then make server according to license request generate licensing during, can use into
The registration code of chain storage, ensure that the one-to-one correspondence of licensing and registration code.
First embodiment with reference to first aspect, in first aspect second embodiment, the registration code is registration letter
The encryption information of breath, the registration information include at least one of corresponding client machine code, IP address and registion time
Information;The licensing is the encryption information of License Info, and the License Info includes corresponding registration information, validity period, the heart
Jump time and proofing state.
Licensing generation method provided in an embodiment of the present invention based on block chain, due to will uniquely characterize client
The a part of the client machine code and IP address of identity as registration information, and registion time is introduced into registration information, so that
Registration information realizes unique corresponding with specific client, and can distinguish the note each time of client by registion time
Volume behavior, realizes the time management to registration information.Since registration information has been carried out encryption to generate corresponding note
Volume code avoids registration information from leaking so that the safety and reliability of registration code gets a promotion.In addition, using registration information, having
Effect phase, heart time and proofing state form License Info, and it is unique right can to guarantee that License Info is realized with specific client
It answers, and the validity management to licensing can be realized by validity period, heart time and proofing state.Due to that will permit letter
Breath has carried out encryption to generate corresponding licensing, so that the safety and reliability of licensing gets a promotion, avoids being permitted
It can leakage of information.
Second embodiment with reference to first aspect, in first aspect third embodiment, according to the license request
Corresponding licensing is generated, including:Extract the second block chain storage identification information in the license request;According to described
Two block chains storage identification information inquires corresponding registration code in block chain;The registration code stored in the block chain is carried out
Decryption is to extract corresponding registration information;Generate corresponding License Info according to the registration information, to the License Info into
Row encryption is to generate corresponding licensing.
Licensing generation method provided in an embodiment of the present invention based on block chain, due to being known using the storage of the second block chain
Other information inquires corresponding registration code in block chain, and generates corresponding licensing using the registration code stored in block chain,
Licensing is corresponded with corresponding registration code, avoids the registration code for introducing mistake during generating licensing
And cause licensing mistake.
According to second aspect, the embodiment of the invention provides a kind of license validation methods based on block chain, including:It connects
Receive the licensing generation method based on block chain as described in first aspect or first aspect any embodiment generates first
Licensing and the corresponding first block chain of first licensing store identification information;It is stored and is identified according to the first block chain
Information is inquired in block chain corresponding prestores licensing;It prestores licensing according to described first licensing is tested
Card generates verification result.
License validation method provided in an embodiment of the present invention based on block chain, due to being known using the storage of the first block chain
Other information inquired in block chain it is corresponding prestore licensing, and the first licensing is verified using licensing is prestored, is kept away
Exempt to change for the licensing that prestores of verifying, to avoid verifying mistake occur to normal first licensing of client
The erroneous judgement of effect.
In conjunction with second aspect, in second aspect first embodiment, prestores licensing according to described and permitted described first
It can demonstrate,prove and be verified, including:First licensing is decrypted to obtain corresponding validity period;When first licensing
When being not in corresponding validity period, determine that first licensing is unverified.
License validation method provided in an embodiment of the present invention based on block chain, judges the first licensing using validity period
Whether it is in validity period, its is unverified directly to be determined for the first licensing being not in validity period, can be sent out in time
The licensing that exceeds the time limit of existing client, avoids client from running corresponding software product using the licensing to exceed the time limit for a long time, thus
Economic loss is caused to software vendor.
It is described to be permitted based on block chain in second aspect second embodiment in conjunction with second aspect first embodiment
Verification method, which can be demonstrate,proved, further includes:When first licensing was in corresponding validity period, first licensing pair is extracted
The heart time answered;Using the heart time as the period, licensing is prestored described in judgement and whether first licensing is identical;
When it is described prestore licensing it is identical as first licensing when, determine that first licensing passes through verifying;It is prestored when described
When licensing and first licensing be not identical, determine that first licensing is unverified.
License validation method provided in an embodiment of the present invention based on block chain, for the first licensing not exceeded the time limit,
Using heart time as the period, periodically compares the first licensing and prestore the consistency of licensing, it can be found that being supported for client
The various decodings and tampering for the first licensing having avoid passing through and decode licensing and the feelings of illegal traveling software product
Condition is conducive to the legitimate rights and interests for safeguarding software vendor.
In conjunction with second aspect first or second embodiment, in second aspect third embodiment, permitted when described first
When can demonstrate,prove unverified, the proofing state of first licensing is defined as failing.
License validation method provided in an embodiment of the present invention based on block chain, for client hold not by testing
First licensing of card is directly defined as failure licensing, prevents client to continue through unverified permitted from source
Operation corresponding software product can be demonstrate,proved, the legitimate rights and interests for safeguarding software vendor are conducive to.
In conjunction with second aspect third embodiment, in the 4th embodiment of second aspect, first license is being determined
Demonstrate,prove it is unverified after, the license validation method based on block chain further includes:Described first is inquired in block chain
The corresponding client of licensing.
License validation method provided in an embodiment of the present invention based on block chain is held not by the lookup of tracing to the source of block chain
By the client of the first licensing of verifying, realizes and illegally decode for licensing and tampering is called to account, be conducive to
Safeguard the legitimate rights and interests of software vendor.
According to the third aspect, the embodiment of the invention provides a kind of servers, including:Receiving unit, for receiving client
Hold the license request sent;License generating unit, for generating corresponding licensing according to the license request;License
Storage unit being demonstrate,proved, for storing the licensing to block chain, and obtaining the corresponding first block chain storage of the licensing
Identification information;Transmission unit, for sending out the licensing and the corresponding first block chain storage identification information of the licensing
It send to the client.
According to fourth aspect, the embodiment of the invention provides a kind of servers, including:Receiving unit, for receiving such as the
On the one hand the first licensing that the licensing generation method or described in first aspect any embodiment based on block chain generates
And the corresponding first block chain of first licensing stores identification information;Query unit, for according to the first block chain
Storage identification information is inquired in block chain corresponding prestores licensing;Authentication unit, for prestoring licensing pair according to
First licensing is verified, and verification result is generated.
According to the 5th aspect, the embodiment of the invention provides a kind of servers, including:Memory and processor, it is described to deposit
Connection is communicated with each other between reservoir and the processor, computer instruction is stored in the memory, and the processor passes through
The computer instruction is executed, thereby executing as described in the first aspect or first aspect any embodiment based on block chain
Licensing generation method, or execute the license based on block chain as described in second aspect or second aspect any embodiment
Demonstrate,prove verification method.
It is described computer-readable the embodiment of the invention provides a kind of computer readable storage medium according to the 6th aspect
Storage medium is stored with computer instruction, and the computer instruction is for making the computer execute such as first aspect or first party
Based on the licensing generation method of block chain described in any embodiment of face, or executes such as second aspect or second aspect and appoint
Based on the license validation method of block chain described in one embodiment.
Detailed description of the invention
The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, and attached drawing is schematically without that should manage
Solution is carries out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows the application scenarios schematic diagram of the embodiment of the present invention;
One specific example of the licensing generation method Fig. 2 shows one of embodiment of the present invention based on block chain
Flow chart;
Fig. 3 shows the flow chart that client in the embodiment of the present invention generates a specific example of license request;
Fig. 4, which is shown, realizes step S102 root in a kind of licensing generation method based on block chain in the embodiment of the present invention
The flow chart of a specific example of corresponding licensing is generated according to license request;
Fig. 5 shows a specific example of license validation method of one of the embodiment of the present invention based on block chain
Flow chart;
Fig. 6, which is shown, realizes step S303 root in a kind of license validation method based on block chain in the embodiment of the present invention
According to the flow chart for prestoring the specific example that licensing verifies the first licensing;
Fig. 7 shows the structural schematic diagram of a specific example of one of embodiment of the present invention server;
Fig. 8 shows the structural schematic diagram of a specific example of another server in the embodiment of the present invention;
Fig. 9 shows the structural schematic diagram of a specific example of the third server in the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
As shown in Figure 1, being the application scenarios schematic diagram of the embodiment of the present invention.Client 1 and server 2 respectively with block chain
3 communications, and be also in communication with each other between client 1 and server 2.
When client 1 needs to run certain software product etc., need first to generate licensing according to the registration information of the client 1
Request.In a specific embodiment, as shown in figure 3, client 1 can generate the license request by following steps:
Step S201:Corresponding registration code is generated according to the encryption of the registration information of client 1.Registration code can be registration letter
The encryption information of breath.Specifically, can be symmetric cryptography to the encryption method of registration information, but the present invention is not limited thereto.
Registration information can include but is not limited to corresponding client machine code, IP address and registion time.Wherein, client machine code
With IP address due to that can be used as client identification information with uniqueness;Registion time can distinguish the every of client
Primary registration behavior, realizes the time management to registration information.
Step S202:Registration code is stored to block chain, and obtains corresponding second block of registration code of block chain transmission
Chain stores identification information.It is stored into block chain by the registration code for generating client 1, can be realized can not usurping for registration code
Change, provides the foundation traced to the source and called to account when also occurring for subsequent licensing and verify unacceptable situation.In a specific embodiment
In, the corresponding second block chain storage identification information of registration code can be the friendship that registration code enters block chain feedback after chain storage
Easy ID, the transaction id have uniqueness.
Step S203:Identification information, which is stored, according to the second block chain generates license request.Registration code is entered into chain storage
Second block chain stores identification information and generates license request, and server in subsequent step can be made to give birth to according to license request
During at licensing, it can use the registration code into chain storage, ensure that the one-to-one correspondence of licensing and registration code.
After client 1 sends license request to server 2, as shown in Fig. 2, mainly execution is following for the server 2
Step:
Step S101:Receive the license request that client 1 is sent.
Step S102:Corresponding licensing is generated according to license request.In a specific embodiment, as shown in figure 4,
It can realize that step S102 generates the process of corresponding licensing according to license request by following sub-step:
Step S1021:The the second block chain extracted in license request stores identification information.As indicated earlier, the secondth area
Block chain storage identification information, that is, registration code enters a transaction id of block chain feedback after chain storage.
Step S1022:Identification information is stored according to the second block chain, and corresponding registration code is inquired in block chain.According to
Two block chains store identification information, i.e. registration code enters the transaction id that block chain is fed back after chain stores, and can enter chain query to correspondence
Registration code.Since block chain has the characteristic that can not be distorted, obtained to ensure that and be inquired on block chain according to transaction id
Registration code be client deposit original licensed code.
Step S1023:The registration code stored in block chain is decrypted to extract corresponding registration information.It is specific one
In embodiment, operation can be decrypted to registration code by manner of decryption corresponding with registration code cipher mode, thus
Extract corresponding registration information.
Step S1024:Corresponding License Info is generated according to registration information, License Info is encrypted to generate correspondence
Licensing.Specifically, License Info other than including registration information, can also include validity period, heart time and verifying shape
The information such as state.Wherein, registration information is directly related with client, and validity period refers to the effective time limit of licensing, heart time
Refer to the time cycle verified to licensing, proofing state refers to that licensing is currently in effective status and still fails
State.The validity of licensing can be managed by validity period, heart time and proofing state.Licensing can be for perhaps
Can information encryption information.Specifically, can be symmetric cryptography to the encryption method of License Info, but the present invention not as
Limit.
Step S103:Licensing is stored to block chain, and obtains the corresponding first block chain storage identification letter of licensing
Breath.The verify data during licensing stored in block chain can be used as subsequent authentication is held to compare client
Licensing.First block chain storage identification information can be the transaction id that licensing enters block chain feedback after chain storage,
But the present invention is not limited thereto.
Step S104:The corresponding first block chain storage identification information of licensing and licensing is sent to client 1.
Client 1 can run corresponding software product after receiving licensing by licensing.Due to being wrapped in licensing
Containing heart time, it is therefore desirable to periodically be verified to licensing.At the beginning of each verification process, the equipment for executing verifying,
Such as client or server, identification information inquiring and authenticating data in block chain can be stored according to the first block chain.
Optionally, in some embodiments of the invention, licensing can be also stored into block chain 3 by server 2, with after an action of the bowels
It is used when continuous license validation as verify data.
Licensing generation method provided in an embodiment of the present invention based on block chain is corresponded to being generated according to license request
Licensing after, it is on the one hand real by storing licensing to block chain and the characteristic that can not be distorted that has using block chain
Show the basic function to client issue licenses, on the other hand ensure that the reliability of the licensing stored in block chain,
The licensing stored in block chain verify data the most can verify the licensing that client is held, to avoid being used for
The problem of original license of verifying is changed.
The embodiment of the invention also provides a kind of license validation methods based on block chain, can be adapted for shown in Fig. 1
Server end 2 or client 1, as shown in figure 5, should license validation method based on block chain may comprise steps of:
Step S301:Receive the first licensing and the corresponding first block chain storage identification information of the first licensing.Specifically
, the first licensing is the licensing that client is held, and the first licensing is according to the above-mentioned licensing based on block chain
What generation method generated.
Step S302:Identification information is stored according to the first block chain inquire in block chain corresponding prestore licensing.In advance
Depositing licensing is in the above-mentioned licensing generation method based on block chain, and server 2 stores licensing in execution step S103
When to block chain, it is stored in the verify data of block chain.
Step S303:The first licensing is verified according to licensing is prestored, generates verification result.In a specific implementation
In mode, as shown in fig. 6, step S303 can be realized according to prestoring licensing to the first licensing by following sub-step
The process verified:
Step S3031:First licensing is decrypted to obtain corresponding validity period.Specifically, to the first licensing
Decryption method can be in the above-mentioned licensing generation method based on block chain, step S102 according to license request generate pair
The licensing and step S1024 answered encrypt License Info to generate the encryption method used in corresponding licensing
Corresponding decryption method.
Step S3032:Judge whether the first licensing was in corresponding validity period.Specifically, working as the first licensing not
When within corresponding validity period, step S3033 is executed;When the first licensing was in corresponding validity period, step is executed
S3034。
Step S3033:Determine that the first licensing is unverified.
Step S3034:Extract the corresponding heart time of the first licensing.Such as the above-mentioned licensing generation side based on block chain
Described in method, heart time is the time cycle verified to licensing.
Step S3035:Using heart time as the period, whether judgement prestores licensing identical as the first licensing.Specifically,
When prestore licensing it is identical as the first licensing when, execute step S3036;When prestoring licensing and the first licensing is not identical
When, execute step S3033.
Step S3036:Determine that the first licensing passes through verifying.It, can after determining that the first licensing is verified by this
With return step S3031, to wait for verifying next time.
Optionally, it after step S3033 determines that the first licensing is unverified, can also be performed following:
Step S3037:The proofing state of first licensing is defined as failing.By by the proofing state of the first licensing
It is defined as the operation of failure, client can be prevented to continue through first licensing and run corresponding software product, to protect
Protect the legitimate rights and interests of software vendor.
Step S3038:The corresponding client of the first licensing is inquired in block chain.Due to above-mentioned based on block chain
In licensing generation method, the corresponding registration code of the first licensing has been stored in block chain, iting is found that unverified first is permitted
After can demonstrate,proving, it can be traced to the source by block chain and search corresponding client, decode and distort the row such as licensing to illegal to realize
For call to account, protect the legitimate rights and interests of software vendor.
Fig. 7 show a kind of server provided in an embodiment of the present invention, which may include:Receiving unit 701 is permitted
Generation unit 702, license ticket storage unit 703 and transmission unit 704 can be demonstrate,proved.
Wherein, receiving unit 701 is used to receive the license request of client transmission;Detailed content refers to step S101 institute
It states.
License generating unit 702 is used to generate corresponding licensing according to license request;Detailed content refers to step
Described in S102.
License ticket storage unit 703 obtains corresponding first block of licensing for storing licensing to block chain
Chain stores identification information;Detailed content is with reference to described in step S103.
Transmission unit 704 is used to the corresponding first block chain storage identification information of licensing and licensing being sent to client
End;Detailed content is with reference to described in step S104.
Fig. 8 show another server provided in an embodiment of the present invention, which may include:Receiving unit 801,
Query unit 802 and authentication unit 803.
Wherein, receiving unit 801 is known for receiving the first licensing and the corresponding first block chain storage of the first licensing
Other information;Detailed content is with reference to described in step S301.Specifically, the first licensing is the licensing that client is held, and the
One licensing is generated according to the above-mentioned licensing generation method based on block chain.
Query unit 802, which is used to store identification information according to the first block chain to inquire in block chain, corresponding prestores license
Card;Detailed content is with reference to described in step S302.
Authentication unit 803 prestores licensing for basis and verifies to the first licensing, generates verification result;In in detail
Hold with reference to described in step S303.
The embodiment of the invention also provides the third servers, as shown in figure 9, the server may include processor 901
With memory 902, wherein processor 901 can be connected with memory 902 by bus or other modes, to pass through in Fig. 9
For bus connection.
Processor 901 can be central processing unit (Central Processing Unit, CPU).Processor 901 may be used also
Think other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable GateArray, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 902 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non-
Transient computer executable program and module, such as the licensing generation method and base based on block chain in the embodiment of the present invention
In the corresponding program instruction/module of the license validation method of block chain (for example, receiving unit shown in Fig. 7 701, licensing
Generation unit 702, license ticket storage unit 703 and transmission unit 704 and receiving unit shown in Fig. 8 801, query unit
802 and authentication unit 803).Processor 901 by operation be stored in memory 902 non-transient software program, instruction and
Module, thereby executing the various function application and data processing of processor, i.e., in realization above method embodiment based on area
The licensing generation method of block chain or license validation method based on block chain.
Memory 902 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;It storage data area can the data etc. that are created of storage processor 901.In addition,
Memory 902 may include high-speed random access memory, can also include non-transient memory, and a for example, at least disk is deposited
Memory device, flush memory device or other non-transient solid-state memories.In some embodiments, it includes opposite that memory 902 is optional
In the remotely located memory of processor 901, these remote memories can pass through network connection to processor 901.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 902, when being executed by the processor 901, are held
The licensing generation method based on block chain in row embodiment as shown in Figures 2 to 6 or the license validation based on block chain
Method.
Above-mentioned server detail can correspond to refering to Fig. 2 into embodiment shown in fig. 6 corresponding associated description and
Effect is understood that details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory,
RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation:) or solid state hard disk (Solid- HDD
State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (13)
1. a kind of licensing generation method based on block chain, which is characterized in that including:
Receive the license request that client is sent;
Corresponding licensing is generated according to the license request;
The licensing is stored to block chain, and obtains the corresponding first block chain storage identification information of the licensing;
The licensing and the corresponding first block chain storage identification information of the licensing are sent to the client.
2. the licensing generation method according to claim 1 based on block chain, which is characterized in that the client passes through
Following steps generate the license request:
Corresponding registration code is generated according to the encryption of the registration information of client;
The registration code is stored to block chain, and the corresponding second block chain storage of the registration code for obtaining the transmission of block chain
Identification information;
Identification information, which is stored, according to the second block chain generates the license request.
3. the licensing generation method according to claim 2 based on block chain, which is characterized in that the registration code is note
Volume information encryption information, the registration information include in corresponding client machine code, IP address and registion time at least
A kind of information;The licensing be License Info encryption information, the License Info include corresponding registration information, effectively
Phase, heart time and proofing state.
4. the licensing generation method according to claim 3 based on block chain, which is characterized in that according to the licensing
Request generates corresponding licensing, including:
Extract the second block chain storage identification information in the license request;
Identification information is stored according to the second block chain, and corresponding registration code is inquired in block chain;
The registration code stored in the block chain is decrypted to extract corresponding registration information;
Corresponding License Info is generated according to the registration information, the License Info is encrypted to generate corresponding license
Card.
5. a kind of license validation method based on block chain, which is characterized in that including:
Receive the first license that the licensing generation method based on block chain according to any one of claims 1 to 4 generates
Card and the corresponding first block chain of first licensing store identification information;
Identification information is stored according to the first block chain inquire in block chain corresponding prestore licensing;
It prestores licensing according to described first licensing is verified, generate verification result.
6. the license validation method according to claim 5 based on block chain, which is characterized in that prestored perhaps according to described
It can demonstrate,prove and first licensing is verified, including:
First licensing is decrypted to obtain corresponding validity period;
When first licensing was not in corresponding validity period, determine that first licensing is unverified.
7. the license validation method according to claim 6 based on block chain, which is characterized in that described to be based on block chain
License validation method further include:
When first licensing was in corresponding validity period, the corresponding heart time of first licensing is extracted;
Using the heart time as the period, licensing is prestored described in judgement and whether first licensing is identical;
When it is described prestore licensing it is identical as first licensing when, determine that first licensing passes through verifying;
When it is described prestore licensing and not identical first licensing when, determine that first licensing is unverified.
8. the license validation method according to claim 6 or 7 based on block chain, which is characterized in that when described first
When licensing is unverified, the proofing state of first licensing is defined as failing.
9. the license validation method according to claim 8 based on block chain, which is characterized in that determining described first
After licensing is unverified, the license validation method based on block chain further includes:
The corresponding client of first licensing is inquired in block chain.
10. a kind of server, which is characterized in that including:
Receiving unit, for receiving the license request of client transmission;
License generating unit, for generating corresponding licensing according to the license request;
License ticket storage unit for storing the licensing to block chain, and obtains corresponding firstth area of the licensing
Block chain stores identification information;
Transmission unit, for the licensing and the corresponding first block chain storage identification information of the licensing to be sent to institute
State client.
11. a kind of server, which is characterized in that including:
Receiving unit, it is raw for receiving the licensing generation method based on block chain according to any one of claims 1 to 4
At the corresponding first block chain of the first licensing and first licensing store identification information;
Query unit inquires for storing identification information according to the first block chain in block chain and corresponding prestores license
Card;
Authentication unit verifies first licensing for prestoring licensing according to, generates verification result.
12. a kind of server, which is characterized in that including:
Memory and processor communicate with each other connection, are stored in the memory between the memory and the processor
Computer instruction, the processor is by executing the computer instruction, thereby executing such as any one of claims 1 to 4 institute
The licensing generation method based on block chain stated, or execute as described in any one of claim 5 to 9 based on block chain
License validation method.
13. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to
It enables, the computer instruction is for executing the computer according to any one of claims 1 to 4 based on block chain
Licensing generation method, or execute the license validation side based on block chain as described in any one of claim 5 to 9
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810556683.7A CN108875316A (en) | 2018-05-31 | 2018-05-31 | Licensing generation and verification method and server based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810556683.7A CN108875316A (en) | 2018-05-31 | 2018-05-31 | Licensing generation and verification method and server based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108875316A true CN108875316A (en) | 2018-11-23 |
Family
ID=64336398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810556683.7A Withdrawn CN108875316A (en) | 2018-05-31 | 2018-05-31 | Licensing generation and verification method and server based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108875316A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109815647A (en) * | 2019-01-30 | 2019-05-28 | 京东方科技集团股份有限公司 | Management method, the management system of device, software server and software of software |
CN109960949A (en) * | 2019-01-28 | 2019-07-02 | 中国科学院数据与通信保护研究教育中心 | A kind of data storage verification method and device |
CN110264186A (en) * | 2019-06-28 | 2019-09-20 | 杭州复杂美科技有限公司 | A kind of cashing method, equipment and storage medium |
CN110414952A (en) * | 2019-07-29 | 2019-11-05 | 杭州复杂美科技有限公司 | Decentralization application dissemination method, equipment and storage medium |
CN110781523A (en) * | 2019-10-29 | 2020-02-11 | 北京海益同展信息科技有限公司 | Method and apparatus for processing information |
CN111164593A (en) * | 2019-12-27 | 2020-05-15 | 威创集团股份有限公司 | Registration authorization method and system |
CN111209539A (en) * | 2019-12-25 | 2020-05-29 | 杭州安恒信息技术股份有限公司 | Method for realizing license detection function based on ambari heartbeat mechanism |
CN111797367A (en) * | 2019-04-08 | 2020-10-20 | 中移(苏州)软件技术有限公司 | Software authentication method and device, processing node and storage medium |
CN112241518A (en) * | 2020-10-22 | 2021-01-19 | 广州市金其利信息科技有限公司 | Software authority management method and system based on block chain |
CN113132107A (en) * | 2019-12-31 | 2021-07-16 | 奇安信科技集团股份有限公司 | License encryption method and device, license decryption method and device and equipment |
CN113297558A (en) * | 2020-02-24 | 2021-08-24 | 海南趣块飞扬科技有限公司 | Authentication method, device, equipment and computer readable storage medium |
WO2021232295A1 (en) * | 2020-05-20 | 2021-11-25 | 新华三技术有限公司 | Method and apparatus for monitoring software license information, and server and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106600405A (en) * | 2016-11-17 | 2017-04-26 | 复旦大学 | Block-chain-based data rights protection method |
CN107018432A (en) * | 2017-03-28 | 2017-08-04 | 华为技术有限公司 | The Licensing Methods and equipment of media content |
CN107507091A (en) * | 2017-09-07 | 2017-12-22 | 复旦大学 | Enhanced data Right protection method based on block chain and intelligent contract |
CN107679369A (en) * | 2016-08-02 | 2018-02-09 | 华为技术有限公司 | A kind of method, apparatus and system of the licensing of shared digital content |
-
2018
- 2018-05-31 CN CN201810556683.7A patent/CN108875316A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679369A (en) * | 2016-08-02 | 2018-02-09 | 华为技术有限公司 | A kind of method, apparatus and system of the licensing of shared digital content |
CN106600405A (en) * | 2016-11-17 | 2017-04-26 | 复旦大学 | Block-chain-based data rights protection method |
CN107018432A (en) * | 2017-03-28 | 2017-08-04 | 华为技术有限公司 | The Licensing Methods and equipment of media content |
CN107507091A (en) * | 2017-09-07 | 2017-12-22 | 复旦大学 | Enhanced data Right protection method based on block chain and intelligent contract |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960949A (en) * | 2019-01-28 | 2019-07-02 | 中国科学院数据与通信保护研究教育中心 | A kind of data storage verification method and device |
CN109815647A (en) * | 2019-01-30 | 2019-05-28 | 京东方科技集团股份有限公司 | Management method, the management system of device, software server and software of software |
CN111797367A (en) * | 2019-04-08 | 2020-10-20 | 中移(苏州)软件技术有限公司 | Software authentication method and device, processing node and storage medium |
CN111797367B (en) * | 2019-04-08 | 2024-07-26 | 中移(苏州)软件技术有限公司 | Software authentication method and device, processing node and storage medium |
CN110264186A (en) * | 2019-06-28 | 2019-09-20 | 杭州复杂美科技有限公司 | A kind of cashing method, equipment and storage medium |
CN110414952A (en) * | 2019-07-29 | 2019-11-05 | 杭州复杂美科技有限公司 | Decentralization application dissemination method, equipment and storage medium |
CN110781523A (en) * | 2019-10-29 | 2020-02-11 | 北京海益同展信息科技有限公司 | Method and apparatus for processing information |
CN111209539A (en) * | 2019-12-25 | 2020-05-29 | 杭州安恒信息技术股份有限公司 | Method for realizing license detection function based on ambari heartbeat mechanism |
CN111164593B (en) * | 2019-12-27 | 2022-06-21 | 威创集团股份有限公司 | Registration authorization method and system |
CN111164593A (en) * | 2019-12-27 | 2020-05-15 | 威创集团股份有限公司 | Registration authorization method and system |
CN113132107A (en) * | 2019-12-31 | 2021-07-16 | 奇安信科技集团股份有限公司 | License encryption method and device, license decryption method and device and equipment |
CN113132107B (en) * | 2019-12-31 | 2023-02-07 | 奇安信科技集团股份有限公司 | License encryption method and device, license decryption method and device and equipment |
CN113297558A (en) * | 2020-02-24 | 2021-08-24 | 海南趣块飞扬科技有限公司 | Authentication method, device, equipment and computer readable storage medium |
WO2021232295A1 (en) * | 2020-05-20 | 2021-11-25 | 新华三技术有限公司 | Method and apparatus for monitoring software license information, and server and storage medium |
CN112241518A (en) * | 2020-10-22 | 2021-01-19 | 广州市金其利信息科技有限公司 | Software authority management method and system based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108875316A (en) | Licensing generation and verification method and server based on block chain | |
US10496811B2 (en) | Counterfeit prevention | |
CN110535648B (en) | Electronic certificate generation and verification and key control method, device, system and medium | |
CN105164633B (en) | The configuration and verifying carried out by trusted provider | |
US20190312877A1 (en) | Block chain mining method, device, and node apparatus | |
EP3804213B1 (en) | Shared secret establishment | |
US6516413B1 (en) | Apparatus and method for user authentication | |
US8312518B1 (en) | Island of trust in a service-oriented environment | |
CN107408183A (en) | The equipment carried out by hardening administration agent safely confirms | |
JP2018501567A (en) | Device verification method and equipment | |
WO2017102880A1 (en) | Securing webpages, webapps and applications | |
CN109347625B (en) | Password operation method, work key creation method, password service platform and equipment | |
CN111753014B (en) | Identity authentication method and device based on block chain | |
JP7347895B2 (en) | Hardware detection methods and apparatus, devices, and storage media | |
EP3292495B1 (en) | Cryptographic data | |
CN106060078A (en) | User information encryption method, user registration method and user validation method applied to cloud platform | |
CN102289632A (en) | Method for encrypting executable file under condition of unknown software source code | |
CN112865959A (en) | Consensus method of distributed node equipment, node equipment and distributed network | |
CN113438205A (en) | Block chain data access control method, node and system | |
CN105404815B (en) | The method for anti-counterfeit and system of safety computer platform host plug-in unit | |
CN113722749A (en) | Data processing method and device for block chain BAAS service based on encryption algorithm | |
CN106790304A (en) | Data access method, device, node and server cluster | |
CN111935164B (en) | Https interface request method | |
CN105117659A (en) | Anti-copying monitoring method used for data storage device | |
CN116248282B (en) | Firmware downloading method, electronic device, control device and computer readable storage medium |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210121 Address after: 215163 No. 9 Xuesen Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province Applicant after: Suzhou Lang run innovation intellectual property operation Co.,Ltd. Address before: 100034 4008, 4 floor, 9 building, 56 half moon street, Xicheng District, Beijing. Applicant before: SINOCHAIN TECHNOLOGY Co.,Ltd. |
|
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181123 |