CN104408502A - Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key) - Google Patents
Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key) Download PDFInfo
- Publication number
- CN104408502A CN104408502A CN201410570893.3A CN201410570893A CN104408502A CN 104408502 A CN104408502 A CN 104408502A CN 201410570893 A CN201410570893 A CN 201410570893A CN 104408502 A CN104408502 A CN 104408502A
- Authority
- CN
- China
- Prior art keywords
- information
- quick response
- response code
- carrier
- digital signature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 238000012795 verification Methods 0.000 title claims abstract description 33
- 230000004044 response Effects 0.000 claims description 149
- 230000007246 mechanism Effects 0.000 claims description 41
- 239000011159 matrix material Substances 0.000 claims description 13
- 238000004458 analytical method Methods 0.000 claims description 3
- 239000002131 composite material Substances 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 12
- 238000005516 engineering process Methods 0.000 abstract description 7
- 239000000969 carrier Substances 0.000 abstract 4
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 238000005242 forging Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000012797 qualification Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a two-dimension code generation method, a two-dimension code generation device, a two-dimension code verification method and a two-dimension code verification device based on a CPK (Combined Public Key). The generation method comprises the following steps that: key information of carriers of two-dimension codes is determined; the key information is signed according to a pre-configured private key, and digital signature information is generated; the digital signature information and the information of the carriers of the two-dimension codes are combined to generate anti-counterfeiting information; and the anti-counterfeiting information is coded according to a two-dimension code coding technology, and two-dimension codes are generated. The verification method comprises the following steps that: the two-dimension codes are decoded, and the digital signature information and the information of the carriers of the two-dimension codes stored in the three-dimension codes are read; the read digital signature information is analyzed to obtain a public key; and the digital signature information is verified according to the public key and the information of the carriers of the two-dimension codes. The authenticity and the completeness of the two-dimension codes are judged through a CPK signature verification protocol, so that the authenticity verification on the anti-counterfeiting information is realized; the verification process of the anti-counterfeiting information is simplified; and the difficulty for verifying the anti-counterfeiting information is reduced.
Description
Technical field
The present invention relates to generation and the verification technique of Quick Response Code, specifically, relate to a kind of Quick Response Code based on CPK (Combined Public Key, Conbined public or double key) and generate and verification method and device.
Background technology
Although existing anti-counterfeiting technology is widely used in productive life every field, but all have that to realize cost high, technical difficulty is large, the problem be easily cloned, especially for bill closely-related with daily life, security, certificate, certificate, the anti-counterfeiting technology of diploma and some articles of price, in existing anti-counterfeiting technology, although have employed the laser anti-counterfeit of continuous renewal, watermark, special paper ink, metal wire, fluorescent printing, particle accelerator stamp, the methods such as Laser Jet, but because huge interests are ordered about, lawless person still can constantly follow the tracks of, develop skill, and adopt high-tech crime means to bill, the staple products such as ticket are copied, copy, thus adulterant is circulated field.
At present, although government increases the hitting dynamics to manufacturing adulterant, but, still be difficult to the increase stoping adulterant, and crime is forged to increasing high-tech, general population differentiate adulterant also day by day difficulty, and how to allow the public fast, accurately, easily mirror determine whether it is true or false, be also current problem in the urgent need to address.
For the problem of the authenticity and integrity of checking anti-fake two-dimension code information that can not be simple in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
For the problem of the authenticity and integrity of checking anti-fake two-dimension code information that can not be simple in correlation technique, the present invention proposes the generation of the Quick Response Code of a kind of CPK and verification method and device, effectively can verify the authenticity of Quick Response Code, achieve the effect of the proof procedure simplifying anti-counterfeiting information, the difficulty reducing checking anti-counterfeiting information.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of generation method of the Quick Response Code based on CPK is provided.
This generation method comprises:
Determine the key message of the carrier of Quick Response Code;
According to pre-configured private key, key message is signed, generate digital signature information;
The information of the carrier of digital signature information and Quick Response Code is combined, generates anti-counterfeiting information;
According to Quick Response Code coding techniques, anti-counterfeiting information is encoded, generate Quick Response Code.
Wherein, this key message comprise following one of at least:
The numbering of carrier, the title of carrier, the date of carrier, the amount of money of carrier.
In addition, this generation method also can comprise:
Pre-configured private key, wherein, private key is the private key of the corresponding mechanism of carrier, and, when pre-configured private key, according to key management system according to private key matrix and Conbined public or double key algorithm, the name of the corresponding mechanism of carrier can be referred to as mark and generate the private key corresponding with the corresponding mechanism of carrier.
In addition, this generation method also can comprise:
Quick Response Code is printed to the precalculated position of corresponding carrier.
According to a further aspect in the invention, a kind of verification method of the Quick Response Code based on CPK is provided.
This verification method comprises:
Quick Response Code is decoded, reads the information of the carrier of digital signature information and the Quick Response Code stored in Quick Response Code;
The digital signature information read is analyzed, obtains PKI;
Information according to the carrier of PKI, Quick Response Code is verified digital signature information.
Wherein, the digital signature information read out is being analyzed, when obtaining PKI, can the digital signature information read out analyzed, determine the title of the corresponding mechanism of the carrier comprised in digital signature information; And according to the title of the corresponding mechanism of carrier and the PKI matrix of correspondence and Conbined public or double key algorithm, obtain PKI.
In addition, before the information of the carrier according to PKI, Quick Response Code is verified digital signature information, this verification method also can comprise:
The information of the digital signature information of reading and the carrier of Quick Response Code is mated with pre-configured black list information, if the match is successful, then stops the checking to digital signature information.
In addition, after the information of the carrier according to described PKI, described Quick Response Code is verified digital signature information, when being verified, this verification method also can comprise:
Information in the information of corresponding carrier read from described Quick Response Code and the carrier of Quick Response Code is carried out contrast verification.
In accordance with a further aspect of the present invention, a kind of generating apparatus of the Quick Response Code based on CPK is additionally provided.
This generating apparatus comprises:
Determination module, for determining the key message of the carrier of Quick Response Code;
Signature blocks, for signing to key message according to pre-configured private key, generates digital signature information;
Composite module, the information for the carrier by digital signature information and Quick Response Code combines, and generates anti-counterfeiting information;
Generation module, for encoding to anti-counterfeiting information according to Quick Response Code coding techniques, generates Quick Response Code.
According to another aspect of the invention, a kind of demo plant of the Quick Response Code based on CPK is additionally provided.
This demo plant comprises:
Decoder module, for decoding to Quick Response Code, reads the information of the carrier of digital signature information and the Quick Response Code stored in Quick Response Code;
Analysis module, for analyzing the digital signature information read, obtains PKI;
Authentication module, the information for the carrier according to PKI, Quick Response Code is verified digital signature information.
The present invention is in Quick Response Code generative process, and the private key key message to carrier corresponding by carrier is signed, thus ensure that the authenticity of data in Quick Response Code, and the checking for the later stage provides strong foundation.And in the proof procedure of Quick Response Code, by directly decoding the data in Quick Response Code, data according to decoding calculate carrier information, digital signature information, and calculate PKI according to digital signature information, utilize PKI and carrier information to carry out certifying digital signature information, and then determine the authenticity of Quick Response Code.
In whole proof procedure, the present invention is by planar bar code technology, accomplish whenever and wherever possible, simple checking, and then make the more convenient and universalization of checking means, achieve the effect of the proof procedure simplifying anti-counterfeiting information, the difficulty reducing checking anti-counterfeiting information.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the generation method of the Quick Response Code based on CPK according to the embodiment of the present invention;
Fig. 2 is the process flow diagram of the generation method of the Quick Response Code based on CPK according to the present invention one specific embodiment;
Fig. 3 is the process flow diagram of the verification method of the Quick Response Code based on CPK according to the embodiment of the present invention;
Fig. 4 is the process flow diagram of the verification method of the Quick Response Code based on CPK according to the present invention one specific embodiment;
Fig. 5 is the schematic diagram of the Quick Response Code bill based on CPK according to the embodiment of the present invention;
Fig. 6 sends out the process flow diagram of mechanism's issue based on the fake certification program of the Quick Response Code bill of CPK according to the carrier core of the embodiment of the present invention;
Fig. 7 is the block diagram of the generating apparatus of the Quick Response Code based on CPK according to the embodiment of the present invention;
Fig. 8 is the block diagram of the demo plant of the Quick Response Code based on CPK according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of generation method of the Quick Response Code based on Conbined public or double key CPK.
As shown in Figure 1, comprise according to the generation method of the Quick Response Code of the embodiment of the present invention:
Step S101, determines the key message of the carrier of Quick Response Code;
Step S103, signs to key message according to pre-configured private key, generates digital signature information;
Step S105, combines the information of the carrier of digital signature information and Quick Response Code, generates anti-counterfeiting information;
Step S107, encodes to anti-counterfeiting information according to Quick Response Code coding techniques, generates Quick Response Code.
Wherein, this key message comprise following one of at least:
The numbering of carrier, the title of carrier, the date of carrier, the amount of money of carrier.
In above process, so-called carrier refers to the article that Quick Response Code depends on, such as invoice, when carrier is invoice, the key message of the carrier of Quick Response Code can be the numbering of invoice, the unit of making out an invoice (namely, the title of carrier), the date of making out an invoice, the unit of payment, the title of kinds of goods, the quantity of kinds of goods, amount of money of payment etc., or the combination in any of above information, the information of the carrier of Quick Response Code is then cover above-mentioned key message, that is, the information of carrier can also comprise the information on carrier except key message, here, the information of carrier also can be called billing information.The generative process of Quick Response Code as shown in Figure 2, as can be seen from Figure 2, when generating the anti-fake two-dimension code of carrier (such as, invoice), first, needs the key message determining Quick Response Code carrier (such as, bill); Then, the key message of private key to carrier that mechanism corresponding to carrier (such as, the mechanism of issued notes or the other forms of mechanism associated with carrier) provides is signed, and obtains the signature of carrier anti-counterfeiting information; Then, then the anti-counterfeiting information of carrier signature and carrier information are combined, generate anti-counterfeiting information; Finally, utilizing Quick Response Code coding techniques, the anti-counterfeiting information of generation is being encoded, obtaining the Quick Response Code of carrier.
Wherein, in actual applications, different bill He Fa mechanisms has the CPK private key based on mechanism name identification, and individual core sends out the bill in the mechanism scope of business, line number of going forward side by side signature operations, can effectively prevent inner crime and mechanism from denying.
And when reality generates, the key message of the carrier of Quick Response Code can according to the carrier situation of reality, self-defining.
In addition, in order to realize above-mentioned steps, the two-dimensional code generation method based on CPK according to the embodiment of the present invention also can comprise: pre-configured private key, and wherein, private key is the private key of the corresponding mechanism of carrier, can obtain according to the title of the corresponding mechanism of carrier.During concrete practice, private key can be use private key matrix and Conbined public or double key algorithm by key management system according to the concrete grammar that the title of the corresponding mechanism of carrier obtains, the name of the corresponding mechanism of carrier is referred to as mark and generates the private key corresponding with the corresponding mechanism of carrier, when concrete practice, all mechanisms can be common the same private key matrix of use and Conbined public or double key algorithm, with enable the product of verifier to all mechanisms unify checking.
In addition, in order to prevent Anti-fake electronic label after a procedure, again utilized, generation method according to the Quick Response Code based on CPK of the embodiment of the present invention also can comprise: precalculated position Quick Response Code being printed to corresponding carrier, make Quick Response Code and carrier inseparable, and when being separated, Quick Response Code will being caused to be destroyed, prevent Quick Response Code to be recycled.
According to embodiments of the invention, additionally provide a kind of verification method of the Quick Response Code based on CPK.
As shown in Figure 3, comprise according to the verification method of the Quick Response Code based on CPK of the embodiment of the present invention:
Step S301, decodes to Quick Response Code, reads the information of the carrier of digital signature information and the Quick Response Code stored in Quick Response Code;
Step S303, analyzes the digital signature information read, obtains PKI;
Step S305, the information according to the carrier of PKI, Quick Response Code is verified digital signature information.
In above process, so-called carrier refers to the article that Quick Response Code depends on, such as invoice, when carrier is invoice, the key message of the carrier of Quick Response Code can be the numbering of invoice, the unit of making out an invoice (namely, the title of carrier), the date of making out an invoice, the unit of payment, the title of kinds of goods, the quantity of kinds of goods, amount of money of payment etc., or the combination in any of above information, the information of the carrier of Quick Response Code is then cover above-mentioned key message, that is, the information of carrier can also comprise the information on carrier except key message, here, the information of carrier also can be called billing information.When carrier is bill, the proof procedure of Quick Response Code as shown in Figure 4, as can be seen from Figure 4, when wanting checking carrier (such as, invoice) anti-fake two-dimension code time, first, need to be decoded to Quick Response Code by Quick Response Code decoding technique, thus read the signature of anti-counterfeiting information and the information of carrier that store in Quick Response Code; Then, the PKI of mechanism is determined according to the signature of anti-counterfeiting information, by the signature of the anti-counterfeiting information of PKI access carrier, read out the key message of carrier, the information of the carrier read is carried out to the extraction of key message simultaneously, then, the key message of the carrier read utilizing PKI from Quick Response Code and the key message extracted from the carrier information Quick Response Code compare, and whether the signature of checking anti-counterfeiting information is genuine.
And when reality generates, the key message of the carrier of Quick Response Code can according to the carrier situation of reality, self-defining.
In above-mentioned steps, the digital signature information read out is being analyzed, when determining PKI, can the digital signature information read out analyzed, determine the title of the corresponding mechanism of the carrier comprised in digital signature information; And according to the title of the corresponding mechanism of carrier and the PKI matrix of correspondence and Conbined public or double key algorithm, obtain PKI.
During concrete practice, according to the title of the corresponding mechanism of carrier and the PKI matrix corresponding with key management system and Conbined public or double key algorithm, the concrete grammar obtaining PKI can be the title of the corresponding mechanism according to carrier, by the PKI matrix corresponding with key management system and Conbined public or double key algorithm, calculate PKI.
When concrete practice, before the information of the carrier according to PKI, Quick Response Code is verified digital signature information, also the information of the carrier of the digital signature information of reading and Quick Response Code can be mated with pre-configured black list information, if the match is successful, then stop the checking to digital signature information.
Wherein, pre-configured blacklist is the unique identification of the forgery invoice that dynamic upgrades.
The PKI determined according to above-mentioned steps and the information of carrier are verified digital signature information, if authentication failed, then prove that this Quick Response Code is counterfeit, if be proved to be successful, the carrier core marked in information by the carrier comprised in this Quick Response Code when then proving this Quick Response Code is sent out made by mechanism and is produced, simultaneously, when being verified, in order to ensure the characteristic of the business unique association of the false proof signature that the He Fa mechanism of the carrier in this Quick Response Code signs and issues and this carrier, this verification method also comprises: the information recorded in the information of corresponding carrier read from described Quick Response Code and the carrier of Quick Response Code is carried out contrast verification, comparing result is identical, then prove the carrier of this Quick Response Code of binding (such as, bill) be genuine.
Below in conjunction with the example of Quick Response Code in commodity invoice, such scheme of the present invention is described in detail.
In the present embodiment, the unit of making out an invoice of invoice uses the mark of mechanism, such as XX commerce and trade company, and according to the private key matrix of CPK key management system and the private key of Conbined public or double key algorithm cost unit in next life.In Quick Response Code generative process, first need to sign with the key message of this private key to invoice, wherein, key message is in the present embodiment for invoice number (being numbered BJ0000187209 in this example), unit of making out an invoice, date of making out an invoice, payer, description of goods, item quantity, the amount of money etc. are combined into the character string of set form, then calculate the cryptographic hash of this character string, and this cryptographic hash is signed; Then, result of signing and above-mentioned billing information continue to combine, and according to Quick Response Code coding rule, are generated two-dimension code pattern; Finally, behind the fixed position of this Quick Response Code printer paper invoice, as shown in Figure 5, complete the making of CPK two-dimension code anti-counterfeit invoice at this point.
In concrete practice, invoice issuing unit (bill He Fa mechanism) will based on Mobile operating system, issued by CPK two-dimension code anti-counterfeit procedure publication, as shown in Figure 6, value received and charge the same to account of people then can be used mobile device to be downloaded by official channel and install this anti-pseudo-program; Wherein, this anti-pseudo-program embedded CPK Conbined public or double key algorithm and PKI matrix, can calculate the PKI of any bill He Fa mechanism in real time, and then complete the Quick Response Code verification operation to invoice according to PKI matrix and algorithm; In addition, the forgery invoice coding blacklist of dynamic renewal that this program is also built-in, directly can determine the bill in blacklist, shorten the proving time.
In the present embodiment, issued publicly, widely by CPK two-dimension code anti-counterfeit software, reach the false proof of group by authoritative institution, any individual can carry out the discriminating of the true and false anywhere or anytime to the bill received, effectively deterred fraud crime.
When value received and charge the same to account of, people receives bill, this anti-pseudo-program is then used to verify papers, first, value received and charge the same to account of people needs by the parsing to Quick Response Code, obtain signed data and the invoice information of bill by the Quick Response Code on this false proof program scanning bill; Then undertaken mate verify forging invoice blacklist according to the invoice number that parses and program inside, as there is matched record, then point out the suspicion of this invoice existence highly forgery, point out authentication failed;
For similar invoice, receipt has the bill of concrete receipt and payment unit like this, fake producer is unlikely carries out massive duplication for a certain true ticket, so the coupling of the blacklist to invoice number to above-mentioned steps of proof procedure can be omitted, but for admission ticket, the bills such as securities, fake producer makes profit with regard to likely carrying out massive duplication for a certain genuine piece, and once this batch of fake bill is put on market, as long as wherein counterfeit identify by other anti-counterfeit measures, then this numbering or sequence number will be added to the blacklist, and by network or other approach be extensively updated to be equipped with Quick Response Code differentiate software recognizer on, now, just can by carrying out the coupling of blacklist to the numbering after parsing, determine the fake bill of all this numberings of clone, and all fake bills also not having enough time to throw in also will put into market again, this gives heavy strike just can to fake producer economically, thus in economic aspect, reach the object stopped batch and fake.
If there is no matched record, then the mark (title of bill He Fa mechanism) of resolving the He Fa mechanism obtained in Quick Response Code in digital signature is carried out to signed data, here be unit of making out an invoice, and according to the title of bill He Fa mechanism obtained and the built-in PKI matrix of program and Conbined public or double key algorithm, calculate the PKI of this invoice core bill position; By this PKI, signed data is verified, if authentication failed, then point out this invoice for forging invoice, and stop checking; If be proved to be successful, then prove that this invoice is that the unit of making out an invoice indicated by invoice information on Quick Response Code opens, meanwhile, under being proved to be successful, obtaining a cryptographic hash, then, extracting invoice information in Quick Response Code, and to its technology cryptographic hash, then two cryptographic hash being contrasted, if different, then proving that this invoice is for forging invoice; If identical, then prove that this Quick Response Code is not tampered, and the invoice information in Quick Response Code is shown on scanning device, such as mobile phone screen, now, the invoice information that the information on screen and paper invoice are filled in can contrast by value received and charge the same to account of people, in order to determine that this Quick Response Code is corresponding to this invoice, if comparing result is identical, then invoice is real.
Can find out based on above description, the present invention is by often opening the ticket information of bill and being bundled in containing corresponding Quick Response Code simultaneously on bill; And by readable ticket information with resolve after 2 D code information contrast the mode whether conformed to, the qualification of the local real-time true and false can be carried out quickly and easily; In addition, the present invention adopts Quick Response Code as anti false information carrier, and cost is low, and information storage amount is large, and available scan image mode entry information, fast decoding, obtains fake certification result immediately; And Quick Response Code terminal authentication equipment is popularized, convenient, practical, with camera function and be loaded with the mobile electronic devices such as the mobile phone of CPK two-dimension code anti-counterfeit software can as certification terminal device; And CPK PKI is the algorithm system based on mark, can the PKI of instant computing signer, and ask for without the need to being connected to KMC, realize off-line verification completely; In addition, whether the present invention can, according to construction needs, select to network to ask for other information, as blacklist list etc.; Anti-counterfeit authentication method of the present invention not only antifalse effect is good, the more important thing is the electronic digital product that the current public can be utilized generally to use, carry with, as the necessary equipment of mobile phone and businessman, as scanner etc., differentiate authenticity of products fast, accurately, easily, adulterant was eliminated before circulation.
According to embodiments of the invention, additionally provide a kind of generating apparatus of the Quick Response Code based on CPK.
As shown in Figure 7, comprise according to the generating apparatus of the Quick Response Code based on CPK of the embodiment of the present invention:
Determination module 71, for determining the key message of the carrier of Quick Response Code;
Signature blocks 72, for signing to key message according to pre-configured private key, generates digital signature information;
Composite module 73, the information for the carrier by digital signature information and Quick Response Code combines, and generates anti-counterfeiting information;
Generation module 74, for encoding to anti-counterfeiting information according to Quick Response Code coding techniques, generates Quick Response Code.
According to embodiments of the invention, additionally provide a kind of demo plant of the Quick Response Code based on CPK.
As shown in Figure 8, comprise according to the demo plant of the Quick Response Code based on CPK of the embodiment of the present invention:
Decoder module 81, for decoding to Quick Response Code, reads the information of the carrier of digital signature information and the Quick Response Code stored in Quick Response Code;
Analysis module 82, for analyzing the digital signature information read, obtains PKI;
Authentication module 83, the information for the carrier according to PKI, Quick Response Code is verified digital signature information.
In sum, by means of technique scheme of the present invention, the present invention is in Quick Response Code generative process, and the key message of private key to carrier being sent out mechanism by carrier core is signed, thus ensure that the authenticity of data in Quick Response Code, the checking for the later stage provides strong foundation.And in the proof procedure of Quick Response Code, be the data in extracting directly Quick Response Code, the data according to extracting calculate carrier information, digital signature information, and send out the PKI of the title calculating He Fa mechanism of mechanism according to carrier core, certifying digital signature information, and then determine whether Quick Response Code is real; And CPK PKI is the algorithm system based on mark, can the PKI of instant computing signer, therefore in whole proof procedure, without the need to connecting Internet, achieve the function of local verification, accomplish whenever and wherever possible, simple checking, and then make the more convenient and universalization of checking means, achieve the effect of the proof procedure simplifying anti-counterfeiting information, the difficulty reducing checking anti-counterfeiting information; In addition, the present invention is by being bundled in often opening on bill by the ticket information of bill with containing corresponding Quick Response Code simultaneously; And by readable ticket information with resolve after 2 D code information contrast the mode whether conformed to, the qualification of the local real-time true and false can be carried out quickly and easily; In addition, whether the present invention can, according to construction needs, select to network to ask for other information, as blacklist list etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1., based on a generation method for the Quick Response Code of Conbined public or double key CPK, it is characterized in that, comprising:
Determine the key message of the carrier of described Quick Response Code;
According to pre-configured private key, described key message is signed, generate digital signature information;
The information of the carrier of described digital signature information and described Quick Response Code is combined, generates anti-counterfeiting information;
According to Quick Response Code coding techniques, described anti-counterfeiting information is encoded, generate Quick Response Code.
2. generation method according to claim 1, is characterized in that, described key message comprise following one of at least:
The numbering of carrier, the title of carrier, the date of carrier, the amount of money of carrier.
3. generation method according to claim 1, is characterized in that, described generation method comprises further:
Pre-configured private key, wherein, described private key is the private key of the corresponding mechanism of carrier, and, pre-configured private key comprises: the name of the corresponding mechanism of described carrier, according to private key matrix and Conbined public or double key algorithm, is referred to as mark and generates the private key corresponding with the corresponding mechanism of described carrier by key management system.
4. the generation method according to claims 1 to 3 any one, is characterized in that, described generation method comprises further:
Described Quick Response Code is printed to the precalculated position of corresponding carrier.
5. based on a verification method for the Quick Response Code of CPK, it is characterized in that, comprising:
Described Quick Response Code is decoded, reads the information of the carrier of digital signature information and the described Quick Response Code stored in described Quick Response Code;
The described digital signature information read is analyzed, obtains PKI;
Information according to the carrier of described PKI, described Quick Response Code is verified described digital signature information.
6. verification method according to claim 5, is characterized in that, analyzes, obtain PKI and comprise the described digital signature information read out:
The described digital signature information read out is analyzed, determines the title of the corresponding mechanism of the carrier comprised in described digital signature information;
According to the title of the corresponding mechanism of described carrier and the PKI matrix of correspondence and Conbined public or double key algorithm, obtain described PKI.
7. verification method according to claim 5, is characterized in that, before the information of the carrier according to described PKI, described Quick Response Code is verified described digital signature information, described verification method comprises further:
The information of the described digital signature information of reading and the carrier of described Quick Response Code is mated with pre-configured black list information, if the match is successful, then stops the checking to described digital signature information.
8. verification method according to claim 5, is characterized in that, after the information of the carrier according to described PKI, described Quick Response Code is verified described digital signature information, when being verified, described verification method comprises further:
Information in the information of the described carrier of correspondence read from described Quick Response Code and the carrier of described Quick Response Code is carried out contrast verification.
9. based on a generating apparatus for the Quick Response Code of CPK, it is characterized in that, comprising:
Determination module, for determining the key message of the carrier of described Quick Response Code;
Signature blocks, for signing to described key message according to pre-configured private key, generates digital signature information;
Composite module, the information for the carrier by described digital signature information and described Quick Response Code combines, and generates anti-counterfeiting information;
Generation module, for encoding to described anti-counterfeiting information according to Quick Response Code coding techniques, generates Quick Response Code.
10. based on a demo plant for the Quick Response Code of CPK, it is characterized in that, comprising:
Decoder module, for decoding to described Quick Response Code, reads the information of the carrier of digital signature information and the described Quick Response Code stored in described Quick Response Code;
Analysis module, for analyzing the described digital signature information read, obtains PKI;
Authentication module, the information for the carrier according to described PKI, described Quick Response Code is verified described digital signature information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410570893.3A CN104408502A (en) | 2014-10-22 | 2014-10-22 | Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key) |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410570893.3A CN104408502A (en) | 2014-10-22 | 2014-10-22 | Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key) |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104408502A true CN104408502A (en) | 2015-03-11 |
Family
ID=52646131
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410570893.3A Pending CN104408502A (en) | 2014-10-22 | 2014-10-22 | Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key) |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104408502A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104881698A (en) * | 2015-05-28 | 2015-09-02 | 程序 | Two dimensional code generation and verification method |
| WO2018006841A1 (en) * | 2016-07-06 | 2018-01-11 | 北京金山安全软件有限公司 | Qr code information transmission method, device and apparatus |
| CN108229596A (en) * | 2016-12-09 | 2018-06-29 | 北京大码技术有限公司 | Combined two-dimension code, digital certificates carrier, generation, reading device and method |
| CN109615030A (en) * | 2018-10-12 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Two-dimensional code anti-counterfeiting method, device and system based on security application |
| CN109886006A (en) * | 2019-02-28 | 2019-06-14 | 尤尼泰克(嘉兴)信息技术有限公司 | A kind of information source checking method and device based on two dimensional code |
| CN110445805A (en) * | 2019-08-22 | 2019-11-12 | 北京中科锐链科技有限公司 | A kind of false-proof authentication system and method for two dimensional code |
| CN112489411A (en) * | 2019-09-11 | 2021-03-12 | 珠海格力电器股份有限公司 | Method and device for acquiring information of electric appliance, storage medium and processor |
| CN114021096A (en) * | 2020-09-21 | 2022-02-08 | 深圳市华正联实业有限公司 | An anti-counterfeiting card and its verification system and verification method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1881229A (en) * | 2006-03-23 | 2006-12-20 | 南相浩 | Anti-counterfeit method and apparatus based on CPK electronic label |
| CN101369306A (en) * | 2008-08-29 | 2009-02-18 | 广东南方信息安全产业基地有限公司 | Electronic label security system |
| CN102932148A (en) * | 2012-10-25 | 2013-02-13 | 成都市易恒信科技有限公司 | System and method for preventing safety two-dimensional code counterfeiting on basis of combination of public key (CPK) authentication |
| KR20130071326A (en) * | 2011-12-20 | 2013-06-28 | 한국전자통신연구원 | Turbo encoder |
-
2014
- 2014-10-22 CN CN201410570893.3A patent/CN104408502A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1881229A (en) * | 2006-03-23 | 2006-12-20 | 南相浩 | Anti-counterfeit method and apparatus based on CPK electronic label |
| CN101369306A (en) * | 2008-08-29 | 2009-02-18 | 广东南方信息安全产业基地有限公司 | Electronic label security system |
| KR20130071326A (en) * | 2011-12-20 | 2013-06-28 | 한국전자통신연구원 | Turbo encoder |
| CN102932148A (en) * | 2012-10-25 | 2013-02-13 | 成都市易恒信科技有限公司 | System and method for preventing safety two-dimensional code counterfeiting on basis of combination of public key (CPK) authentication |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104881698A (en) * | 2015-05-28 | 2015-09-02 | 程序 | Two dimensional code generation and verification method |
| CN104881698B (en) * | 2015-05-28 | 2018-04-20 | 程序 | Quick Response Code generates and verification method |
| WO2018006841A1 (en) * | 2016-07-06 | 2018-01-11 | 北京金山安全软件有限公司 | Qr code information transmission method, device and apparatus |
| CN108229596A (en) * | 2016-12-09 | 2018-06-29 | 北京大码技术有限公司 | Combined two-dimension code, digital certificates carrier, generation, reading device and method |
| CN108229596B (en) * | 2016-12-09 | 2024-03-26 | 北京大码技术有限公司 | Combined two-dimensional code, electronic certificate carrier, generating and reading device and method |
| CN109615030A (en) * | 2018-10-12 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Two-dimensional code anti-counterfeiting method, device and system based on security application |
| WO2020073715A1 (en) * | 2018-10-12 | 2020-04-16 | 阿里巴巴集团控股有限公司 | Two-dimensional code anti-counterfeiting method, device and system based on security application |
| CN109886006A (en) * | 2019-02-28 | 2019-06-14 | 尤尼泰克(嘉兴)信息技术有限公司 | A kind of information source checking method and device based on two dimensional code |
| CN110445805A (en) * | 2019-08-22 | 2019-11-12 | 北京中科锐链科技有限公司 | A kind of false-proof authentication system and method for two dimensional code |
| CN112489411A (en) * | 2019-09-11 | 2021-03-12 | 珠海格力电器股份有限公司 | Method and device for acquiring information of electric appliance, storage medium and processor |
| CN112489411B (en) * | 2019-09-11 | 2023-06-06 | 珠海格力电器股份有限公司 | Method and device for acquiring information of electric appliance, storage medium and processor |
| CN114021096A (en) * | 2020-09-21 | 2022-02-08 | 深圳市华正联实业有限公司 | An anti-counterfeiting card and its verification system and verification method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104408502A (en) | Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key) | |
| US7051206B1 (en) | Self-authentication of value documents using digital signatures | |
| CN102129589A (en) | Asymmetric encryption two-dimension code anti-counterfeiting method | |
| CN101655996B (en) | Method for identifying the authenticity of bills fast | |
| US20140095398A1 (en) | Double ID Anti-Counterfeit Method and System | |
| US20050038754A1 (en) | Methods for authenticating self-authenticating documents | |
| CN104008322B (en) | Quick Response Code publisher's identity identifying method based on reliable digit signature | |
| CN104077624A (en) | Methods and systems for generating and checking electronic note with anti-counterfeiting two-dimension code | |
| WO2001015382A1 (en) | Legitimacy protection of electronic document and a printed copy thereof | |
| US20080197972A1 (en) | Traceability And Authentication Of Security Papers | |
| CN103810457A (en) | Offline license anti-counterfeiting method based on reliable digital signature and two-dimensional code | |
| CN104680202A (en) | Methods for generating and verifying two-dimension code of invoice | |
| CN101853605A (en) | Researchable commodity marker, anti-counterfeiting label and anti-counterfeiting method thereof | |
| CN102855577A (en) | Multiple merchandise anti-counterfeiting verification method based on cloud computing | |
| CN110517049A (en) | A kind of bill anti-counterfeit recognition methods and device based on two dimensional code and block chain | |
| US8931688B2 (en) | System and method for currency validation | |
| WO2015154646A1 (en) | Currency or security anti-counterfeiting tracing system based on one-time certificate technology | |
| CN109472335A (en) | A kind of lottery ticket anti-counterfeiting system and method for anti-counterfeit | |
| CN106952093B (en) | Blank electronic certificate generation and public verification method, device and system | |
| GB2405978A (en) | A method of preparing a document so that it can be authenticated | |
| CN101067883A (en) | A RFID-based closed-loop ticket anti-counterfeiting system | |
| CN101055651B (en) | Anti-counterfeit method for ticket using the secrete mark | |
| RU2195021C1 (en) | System of protective marking and document verification | |
| CN101059887A (en) | A bank card number and the second magnetic track main account number creation method and reading method | |
| Hoffman et al. | Securing number plates based on digital signatures and RFID |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150311 |
|
| WD01 | Invention patent application deemed withdrawn after publication |