CN110021106B - Bill identification method and equipment based on two-dimensional code - Google Patents
Bill identification method and equipment based on two-dimensional code Download PDFInfo
- Publication number
- CN110021106B CN110021106B CN201910306848.XA CN201910306848A CN110021106B CN 110021106 B CN110021106 B CN 110021106B CN 201910306848 A CN201910306848 A CN 201910306848A CN 110021106 B CN110021106 B CN 110021106B
- Authority
- CN
- China
- Prior art keywords
- bill
- dimensional code
- data
- encrypted
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/004—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip
- G07D7/0043—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip using barcodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to the field of data identification, in particular to a two-dimensional code technology. The invention provides a bill identification method based on a two-dimensional code, which comprises the following steps: step 1: acquiring encrypted data of the two-dimensional code; step 2: decrypting the encrypted data to obtain bill data; and step 3: searching and identifying matching information corresponding to the first encrypted signature in the equipment based on the second encrypted signature in the encrypted data; and 4, step 4: and integrating the matching information and the bill data and presenting the bill data. The invention solves the problem of anti-counterfeiting environmental adaptability and reduces the data hidden danger and the data maintenance cost. The two-dimensional code bill directly puts information into the bill through expansion of data storage quantity, realizes a mode of obtaining the information in the two-dimensional code through off-line analysis, achieves the anti-counterfeiting verification effect, does not depend on a regional network any more, has lower requirements on environment, does not need database maintenance, and has low cost and high safety.
Description
Technical Field
The invention relates to the field of software methods, in particular to a two-dimensional code technology.
Background
The two-dimensional code is widely used in industries needing to quickly mark information on articles, such as high-tech industries, storage and transportation industries, wholesale and retail industries and the like. The prior art is a chinese patent application with patent publication No. CN105235410A, and its technical scheme is shown in fig. 1, which discloses a bill with two-dimensional code and its interaction system and method. In the aspect of anti-counterfeiting, the invention needs to depend on physical characteristics such as anti-counterfeiting paper and the like, and is high in use cost; in the invention, the two-dimension code icon is a label with a double-layer structure, the operation difficulty is high, and the process is too complicated; the invention needs to rely on network for anti-counterfeiting identification, which makes the use environment of the invention have higher requirements. The second prior art is a chinese patent application with patent publication No. CN201540606U, and its technical scheme is shown in fig. 2, which discloses a two-dimensional code bill anti-counterfeiting system. The invention uses a hardware intelligent card for storing and reading bill information. The method has high use cost, and the conditions of damage, loss and the like are easy to occur in use, so that the method is not beneficial to use in a real scene; before the two-dimensional code is generated, the information of the smart card needs to be read through a card reader, the operation limits the generation of the bill with the two-dimensional code, and the generation is safe but not a humanized process.
Disclosure of Invention
In order to solve the problem of anti-counterfeiting environmental adaptability, solve the hidden data danger and reduce the data maintenance cost, the invention provides a bill identification method and equipment based on a two-dimensional code, which directly put information into a bill, realize a mode of obtaining the information in the two-dimensional code through off-line analysis and achieve the anti-counterfeiting verification effect. The invention does not depend on a regional network any more, has lower requirement on the environment, does not need database maintenance, and has low cost, high safety and simple operation flow.
In order to achieve the above object, the present invention provides a two-dimensional code-based bill identification method, including:
step 1: acquiring encrypted data of the two-dimensional code;
step 2: decrypting the encrypted data to obtain bill data;
and step 3: searching and identifying matching information corresponding to the first encrypted signature in the equipment based on the second encrypted signature in the encrypted data;
and 4, step 4: and integrating the matching information and the bill data and presenting the bill data.
Preferably, the method further comprises a two-dimensional code preparation process, wherein the preparation process comprises:
preparation step 1: collecting bill information of the bill;
preparation step 2: encoding the collected bill information to the two-dimensional code;
a preparation step 3: and integrating the two-dimensional code with the bill.
Preferably, if the second encrypted signature in step 3 is matched with the first encrypted signature, presenting the ticket data; otherwise, the rendering process is aborted.
Preferably, the bill is: insurance policy, bill, traffic penalty policy, financial statement; the bill is a paper bill or an electronic bill.
Preferably, the presented bill data is consistent with the format and the format of the matching information.
Preferably, the presented ticket data format is as follows: text, picture, PDF, web page.
Preferably, the bill information includes a company name, a number, a contact number, an address, a product name, and a money amount.
Preferably, the preparation step 2 further comprises an encryption process and a compression process, wherein the encryption process is asymmetric encryption and symmetric encryption; the compression process is a binary compression algorithm.
Preferably, the correspondence between the first encrypted signature and the second encrypted signature is: one-to-one, many-to-one, one-to-many.
Preferably, the preparation step 3 is:
printing the two-dimensional code prepared to be coded in the step 2 and the bill in a combined manner;
or, printing the two-dimensional code prepared to be coded in the step 2 and pasting the two-dimensional code on a bill.
Preferably, when the identification device is used for scanning the encrypted data of the two-dimensional code, if the first encrypted signature is matched with the second encrypted signature, the encrypted data is output; otherwise, the output process is stopped or a prompt message is displayed.
Preferably, the step 3 further comprises:
and acquiring the asymmetric encryption information in the encrypted data, and decrypting the asymmetric encryption information according to the public key in the matching information.
A bill identifying apparatus based on a two-dimensional code, comprising:
the input analysis unit is used for acquiring the two-dimension code and analyzing the encrypted data of the two-dimension code;
the decryption unit is used for decrypting the encrypted data to obtain bill data;
and the comparison presentation unit is used for searching and identifying the matching information corresponding to the first encrypted signature in the equipment based on the second encrypted signature in the encrypted data, and integrating and presenting the bill data.
Preferably, the input analysis unit includes an analysis program.
Preferably, the decryption unit comprises a symmetric key, and/or an asymmetric key.
Preferably, the presented bill data is consistent with the format and the format of the matching information.
Preferably, the identification device is a tablet, a mobile phone, a computer or a customization device; or based on the application software or applet of the mobile handset.
In order to solve the anti-counterfeiting environmental adaptability problem, solve the data hidden trouble and reduce the data maintenance cost, the two-dimensional code bill of the invention directly puts the information into the bill through the expansion of the data storage quantity, realizes the mode of obtaining the information in the two-dimensional code through off-line analysis, and achieves the anti-counterfeiting verification effect. The invention does not depend on a regional network any more, has lower requirement on the environment, does not need database maintenance, and has low cost, high safety and simple operation.
Drawings
FIG. 1 is a schematic structural view of a prior art solution;
FIG. 2 is a schematic structural diagram of a second prior art solution;
fig. 3 is a flowchart of a two-dimensional code-based bill identification method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the scope of the present invention.
In view of the fact that the existing method cannot realize a rapid and convenient data carrier acquisition method meeting the requirements of different application scenes, the embodiment of the invention provides a method for acquiring a two-dimensional code data carrier.
Example one
The embodiment provides a method and a device for identifying a two-dimensional code data carrier, as shown in fig. 1, the design flow of the invention is as follows:
1. bill information input
The entry of the bill information can be the information collection which is charged by an authority unit. Of course, this method is mainly used for special bills issued by special units, such as invoices. Common bills such as other vouchers can be filled in through self-service information to complete the entry.
The ticket information here is generally, but not limited to: the company name number contacts the telephone address product name amount and the like;
2. generating two-dimensional code
The two-dimensional code is a high-capacity two-dimensional code. The two-dimensional code can support the total amount of bill information, namely, the bill information can be encoded into binary data and stored in the two-dimensional code. The two-dimensional code can also store related information on the bill, such as only the name of a company on the bill, but can store other sensitive and critical information such as a contact telephone of the company and the like in the two-dimensional code. The generation process of the two-dimensional code is an independently developed generation program and is a non-public generation method. The generation process combines various encryption and compression technologies, and the structure rule is complex and difficult to crack. The various encryption techniques described above may be asymmetric encryption, symmetric encryption, and the like. The compression techniques described above are primarily binary compression algorithms. Therefore, the two-dimensional code is not counterfeitable and is not falsifiable, and the safety of data can be ensured. All data are stored in the two-dimensional code, so that a server is not needed to support data storage, and the cost is greatly saved. The information of the original database is born by one two-dimensional code, and the decentralization of the data is realized.
Presenting two-dimensional code and bill in combination
The two-dimensional code can be directly combined with the electronic bill, and the two-dimensional code is directly coded on the electronic bill. Or another pdf page can be used for storing two-dimensional codes, and a new pdf document can be generated together with the electronic bill.
The two-dimensional code can be displayed together with the bill, and the two-dimensional code is generally displayed below the bill. When printing the bill, directly print the two-dimensional code together. Of course, the two-dimensional code can also be attached to the bill in a label pasting mode.
4. Validating tickets using custom devices or apps
The customization equipment is equipment containing a two-dimensional code analysis program. The customization device can be divided into the following 5 parts;
the input part is used for receiving the two-dimensional code;
and (3) an analysis part: the two-dimension code analysis program is used for analyzing the two-dimension code to obtain encrypted data;
and a decryption part: decrypting the data by using the asymmetric secret key in the equipment, and acquiring signature part information according to an integration rule;
and a comparison part: for comparison of signatures, and other biometric comparisons;
the presentation part: the method is used for presenting results, and the presenting mode can be diversified and different between two parties or between three parties;
the device type may be: pad, mobile phone, custom android device, etc. The mobile phone may use an app on the mobile phone, or may be an applet or the like. If the program is a small program, the bill verification can be realized under the condition of a network.
The two-dimensional code can be analyzed only by the customized equipment, so that the privacy and authority of the information are guaranteed.
The customized device contains the encrypted signature of the subject company, and the two-dimensional code also contains the encrypted signature of the company. The setting can guarantee the safety of the customization equipment, and meanwhile, the equipment and the two-dimensional code are bound, so that double-layer guarantee is achieved. If a lawbreaker wants to steal information or forge information, he must steal the generated code and modify the device by himself, which is a great difficulty and cost.
And the verification process after the decryption is finished can be naked eye data comparison or OCR comparison can be directly realized. Firstly, the authority of the data is realized if the decryption is successful, and then the data is compared, so that the authenticity and the effectiveness of the data can be proved. Therefore, the method can realize the anti-counterfeiting of the bill and protect the safety of the information and the main body.
And after the decryption is completed, the two-dimensional code can also contain other related information, such as a business contact telephone, besides the information of the bill. The method and the device can protect sensitive information and provide convenient information acquisition for related personnel.
According to the invention, all data are stored in the two-dimensional code, and the analysis program is also arranged on the equipment. Therefore, the invention can complete the verification process in an off-line state.
In summary, the method for acquiring the data carrier of the two-dimensional code provided by the embodiment of the invention has the following beneficial effects:
(1) the bill based on the two-dimensional code can verify the authenticity of the bill under an off-line condition, thereby enhancing the adaptability of the bill to the environment and expanding the application range;
(2) the two-dimensional code bill can store other information except the bill, protect private information and meanwhile enhance targeted transmission of the information;
(3) the two-dimensional code in the bill is an information carrier, the support of a huge database is not needed, the data cost is saved, the decentralization is realized, the risk of database leakage is avoided, and the safety is improved.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A bill identification method based on two-dimensional codes is characterized by comprising the following steps:
step 1: acquiring encrypted data of the two-dimensional code;
step 2: decrypting the encrypted data to obtain bill data;
and step 3: searching and identifying matching information corresponding to the first encrypted signature in the equipment based on the second encrypted signature in the encrypted data;
and 4, step 4: integrating the matching information and the bill data and presenting the bill data;
further comprising a two-dimensional code preparation process, the preparation process comprising:
preparation step 1: collecting bill information of the bill;
preparation step 2: encoding the collected bill information to the two-dimensional code;
a preparation step 3: integrating the two-dimension code with a bill;
the preparation step 2 further comprises an encryption process and a compression process, wherein the encryption process is asymmetric encryption and symmetric encryption; the compression process is a binary compression algorithm;
the preparation step 3 is as follows:
printing the two-dimensional code prepared to be coded in the step 2 and the bill in a combined manner;
or, printing the two-dimensional code coded in the step 2 and pasting the two-dimensional code on a bill;
when the encrypted data of the two-dimensional code is scanned by adopting identification equipment, if a first encrypted signature is matched with a second encrypted signature, the encrypted data is output; otherwise, stopping the output process or displaying the prompt message;
the step 3 further comprises:
and acquiring the asymmetric encryption information in the encrypted data, and decrypting the asymmetric encryption information according to the public key in the matching information.
2. The two-dimensional code-based bill identifying method according to claim 1, wherein if the second encrypted signature matches the first encrypted signature in step 3, the bill data is presented; otherwise, the rendering process is aborted.
3. The bill identification method based on the two-dimensional code according to claim 1, wherein the bill is: insurance policy, bill, traffic penalty policy, financial statement; the bill is a paper bill or an electronic bill.
4. The two-dimensional code-based bill recognition method according to claim 1, wherein the presented bill data is in accordance with the format and the layout of the matching information.
5. The bill identification method based on the two-dimensional code according to claim 1, wherein the presented bill data format is as follows: text, picture, PDF, web page.
6. The two-dimensional code-based bill identifying method according to claim 2, wherein the bill information includes a company name, a serial number, a contact number, an address, a product name, and a money amount.
7. The two-dimensional code-based bill identification method according to claim 1, wherein the correspondence between the first encrypted signature and the second encrypted signature is: one-to-one, many-to-one, one-to-many.
8. A two-dimensional code-based bill identifying apparatus for implementing the method of any one of claims 1 to 7, comprising:
the input analysis unit is used for acquiring the two-dimension code and analyzing the encrypted data of the two-dimension code;
the decryption unit is used for decrypting the encrypted data to obtain bill data;
and the comparison presentation unit is used for searching and identifying the matching information corresponding to the first encrypted signature in the equipment based on the second encrypted signature in the encrypted data, and integrating and presenting the bill data.
9. The two-dimensional code-based bill identifying apparatus according to claim 8, wherein the input parsing unit includes a parsing program.
10. The two-dimensional code-based bill identifying device according to claim 8, wherein the decryption unit includes a symmetric key, and/or an asymmetric key;
the format and the format of the presented bill data are consistent with those of the matching information;
the identification equipment is a tablet, a mobile phone, a computer and customization equipment; or based on the application software or applet of the mobile handset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910306848.XA CN110021106B (en) | 2019-04-17 | 2019-04-17 | Bill identification method and equipment based on two-dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910306848.XA CN110021106B (en) | 2019-04-17 | 2019-04-17 | Bill identification method and equipment based on two-dimensional code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110021106A CN110021106A (en) | 2019-07-16 |
CN110021106B true CN110021106B (en) | 2021-03-30 |
Family
ID=67191557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910306848.XA Active CN110021106B (en) | 2019-04-17 | 2019-04-17 | Bill identification method and equipment based on two-dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110021106B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1267311A1 (en) * | 2001-06-12 | 2002-12-18 | Kam Fu Wong | Barcoded banknote and associated apparatus for processing such a banknote |
CN101763676B (en) * | 2009-10-23 | 2011-12-07 | 北京派瑞根科技开发有限公司 | Method for authenticating endorsement signature on information medium |
CN103793990B (en) * | 2012-11-02 | 2016-06-29 | 航天信息股份有限公司 | The verification method of invoice and system |
CN104091191B (en) * | 2014-07-09 | 2017-08-25 | 上海象形通讯科技股份有限公司 | A kind of efficiently and effectively false proof authenticating method |
CN105989318A (en) * | 2015-02-13 | 2016-10-05 | 福建新大陆电脑股份有限公司 | Anti-counterfeit bill, and anti-counterfeit device and method thereof |
CN107528833A (en) * | 2017-08-09 | 2017-12-29 | 成都派沃特科技有限公司 | The method and its system of contactless network transmission are carried out based on Quick Response Code |
CN109992984B (en) * | 2019-04-17 | 2022-01-14 | 尤尼泰克(嘉兴)信息技术有限公司 | File identification method and equipment based on two-dimensional code |
-
2019
- 2019-04-17 CN CN201910306848.XA patent/CN110021106B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110021106A (en) | 2019-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10320807B2 (en) | Systems and methods relating to the authenticity and verification of photographic identity documents | |
CA2925325C (en) | Document authentication based on expected wear | |
US20110089233A1 (en) | Device and process for the authentication of authorizations or enablement of a person with the use of a mobile communication device | |
US20150161594A1 (en) | Payment unit, system and method | |
EP2237519A1 (en) | Method and system for securely linking digital user's data to an NFC application running on a terminal | |
CN104809490A (en) | Card anti-counterfeiting system based on multidimensional code and authentication method based on card anti-counterfeiting system | |
CN102930634A (en) | Invoice true check system based on cloud computing and encrypted two-dimensional codes | |
CN103942897A (en) | Method for money withdrawing without card on ATM | |
US20160196509A1 (en) | Ticket authorisation | |
CN106096437A (en) | A kind of certificate card managing device and method | |
CN101246548A (en) | Biological information storage method and system | |
CN110020540A (en) | A kind of certificate recognition methods and equipment based on two dimensional code | |
CN110009079A (en) | A kind of label identification method and equipment based on two dimensional code | |
CN101388076A (en) | Method and apparatus for generating two-dimension bar-code | |
CN205015906U (en) | Anti -fake verification system of electron certificate | |
CN109992984B (en) | File identification method and equipment based on two-dimensional code | |
JP2018081658A (en) | Business card and business card management system | |
CN110021106B (en) | Bill identification method and equipment based on two-dimensional code | |
CN110111461A (en) | A kind of pass identified off-line method and apparatus based on two dimensional code | |
KR101711697B1 (en) | Security bankbook, method and apparatus for providing bankbook printing service using identification code | |
CN103020506A (en) | Key equipment and method integrating photographing and bar code identification technologies | |
Masters et al. | Forensic data recovery and examination of magnetic swipe card cloning devices | |
CN113408583B (en) | Identity verification method, device and equipment | |
WO2001003077A1 (en) | Document verification system | |
WO2020143567A1 (en) | 2d barcode having self-verification function and encoding method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |