CN104408637A - Method and system for identifying one-dimension code information - Google Patents
Method and system for identifying one-dimension code information Download PDFInfo
- Publication number
- CN104408637A CN104408637A CN201410735592.1A CN201410735592A CN104408637A CN 104408637 A CN104408637 A CN 104408637A CN 201410735592 A CN201410735592 A CN 201410735592A CN 104408637 A CN104408637 A CN 104408637A
- Authority
- CN
- China
- Prior art keywords
- dimension code
- code information
- information
- identified
- algorithm
- 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
Abstract
The invention discloses a system and method for identifying one-dimension code information. According to the system and method, one-dimension codes to be identified are processed through a predetermined algorithm to obtain one-dimension code checking information, one-dimension code checking information obtained by processing one-dimension code information issued by a credible party through the same predetermined algorithm is pre-saved in a server, the former one-dimension code checking information is compared with the latter one-dimension code checking information, and if the former one-dimension code checking information is the same as the latter one-dimension code checking information, the one-dimension code information to be identified is credible, so that the modification of the one-dimension codes can be avoided and the processing complexity during one-dimension code identification can be lowered.
Description
Technical field
The present invention relates to one-dimension code, particularly the identification of one-dimension code.
Background technology
In prior art, product arranges one-dimension code information as identify label with the place of production of ID product, type, the information such as date of manufacture, so that review product, in case product is counterfeiting, but the identify label of this one-dimension code is easily copied, although have some at present by transformation one-dimension code itself, as constructed the method for new one-dimension code or arrange enciphered message in one-dimension code, to prevent from being copied, but this needs production one-dimension code again, a kind of method is also had to be the one-dimension code that trusted party is issued all be kept in identified server, the trusted party one-dimension code of the one-dimension code that will be identified and preservation contrasts, judge, but this method need very Large Copacity to preserve trusted party one-dimension code.The invention provides a kind of recognition device and method of one-dimension code information, it itself is not transformed one-dimension code information, very large capacity is not needed yet, but the check information that the one-dimension code of preserving trusted party issue in server is in advance obtained by pre-defined algorithm, the length of the check information obtained by pre-defined algorithm will be less than the length of the one-dimension code that trusted party is issued, the one-dimension code information that this check information and needs are identified is obtained check information by identical algorithms contrast, if consistent, then illustrate that the one-dimension code information that will be identified is that trusted party is issued, if inconsistent, then illustrate that the one-dimension code information that will be identified is that insincere side issues.
Summary of the invention
The object of the present invention is to provide the whether believable method and system in a kind of identification one-dimension code Information issued side, it is without the need to transforming existing one-dimension code information, and in the process identified, can reduce the memory capacity of needs.Its concrete technical scheme is as follows:
A kind of recognition methods of one-dimension code information, wherein, when the one-dimension code information existing and will be identified being detected, the one-dimension code information that will be identified described in server obtains, start one-dimension code verification unit simultaneously, one-dimension code verification unit is calculated the described one-dimension code information that will be identified by predetermined algorithm, obtain one-dimension code check information, the one-dimension code information check information corresponding with the one-dimension code information that trusted party is issued that use described pre-defined algorithm to obtain issued from trusted party has been preserved in advance in server, above-mentioned two check informations are compared, if consistent, the one-dimension code information that will be identified described in then judging is that trusted party is issued, if inconsistent, the one-dimension code information that will be identified described in then judging is that insincere side issues.
A kind of recognition system of one-dimension code information, comprising server, one-dimension code verification unit, when server detects the one-dimension code information existing and will be identified, the one-dimension code information that will be identified described in described server obtains, start one-dimension code verification unit simultaneously, one-dimension code verification unit is calculated the described one-dimension code information that will be identified by predetermined algorithm, obtain one-dimension code check information, the one-dimension code information check information corresponding with the one-dimension code information that trusted party is issued that use described pre-defined algorithm to obtain issued from trusted party has been preserved in advance in server, above-mentioned two check informations are compared, if consistent, the one-dimension code information that will be identified described in then judging is that trusted party is issued, if inconsistent, the one-dimension code information that will be identified described in then judging is that insincere side issues.
Further, the length of the described described check information preserved in advance is less than the length calculating the one-dimension code information that described trusted party is issued.
Further, described algorithm is random algorithm or multinomial algorithm.
Further, described one-dimension code verification unit can be positioned among server or outside.
Further, when result of determination is believable, then allow user's access of one-dimension code mark, if it is determined that when result is insincere, user's access of refusal one-dimension code mark.
Owing to have employed by obtaining one-dimension code check information to the one-dimension code that will be identified by pre-defined algorithm in the present invention, and the one-dimension code check information that the one-dimension code information saving trusted party issue in the server is in advance obtained by identical pre-defined algorithm, by comparing these two information, can awareness information consistent time, then show that the one-dimension code information that will be identified is believable, this avoid and one-dimension code itself is transformed, in addition, pre-defined algorithm is processed one-dimension code information, the length of the one-dimension code check information that it obtains will much smaller than one-dimension code length itself, save the memory capacity of server.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, to those skilled in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 shows the system chart of the embodiment of the present invention.
Fig. 2 shows the bar code figure of the embodiment of the present invention.
Fig. 3 shows the method flow diagram of the embodiment of the present invention.
Embodiment
Illustrate clearly and completely the technical scheme in the embodiment of the present invention below in conjunction with drawings and Examples, described embodiment is only the present invention's part embodiment, but not as the foundation limited the present invention.Do not making based on those skilled in the art's those of ordinary skill the every other embodiment obtained under creative work prerequisite, all belonging to the category of the present invention's protection.
According to Fig. 1, system of the present invention comprises server 1, one-dimension code verification unit 2, when server 1 detects the one-dimension code information that existence on object or user 3 will be identified, described server 1 obtains the described one-dimension code information that will be identified, start one-dimension code verification unit 2 simultaneously, one-dimension code verification unit 2 is calculated the described one-dimension code information that will be identified by predetermined algorithm, obtain one-dimension code check information, the one-dimension code information check information corresponding with the one-dimension code information that trusted party is issued that use described pre-defined algorithm to obtain issued from trusted party has been preserved in advance in server 1, above-mentioned two check informations are compared, if consistent, the one-dimension code information that will be identified described in then judging is that trusted party is issued, if inconsistent, the one-dimension code information that will be identified described in then judging is that insincere side issues.
In the embodiment of the present invention, one-dimension code can adopt one-dimensional bar code: Code39 code, Codabar code, Code25 code, ITF25 code, Matrix25 code, UPC-A code, UPC-E code, EAN-13 code, EAN-8 code, China Post's code, Code-B code, MSI code, the bar code such as Codel1 code, Code93 code, ISBN code, ISSN code, Code128 code EAN128 code, Code39EMS any one, and its numeral that can read for naked eyes, letter or other symbol.Can to print or the mode such as stickup is formed on object or user.Fig. 2 gives a kind of concrete bar code figure, bar code wherein adopts the mode of character and digit, for XQ3205202008018688, this information itself belongs to trusted party and issues, should for this bar code information, algorithm is adopted to process, specifically, described algorithm is random algorithm or multinomial algorithm, when utilizing the one-dimension code of pre-defined algorithm to trusted party to calculate check information, and preserve in advance, the length of the described check information now calculated by pre-defined algorithm is less than the length calculating the one-dimension code information that described trusted party is issued.Such as, adopt a kind of multinomial algorithm, its formula is p=(α
1a
1+ α
2a
2+ ... α
na
n), α herein
1to α
nbe coefficient, can select according to actual requirement, a
1to a
nnumerical information corresponding to one-dimension code, such simplification calculates, above-mentioned coefficient all gets 1, numerical information is calculated, reserved character, the check information being obtained XQ3205202008018688 by algorithm is XQ53, XQ53 is preserved in the server, for the calculating needing the one-dimension code information identified to carry out same algorithm, obtain proof test value, if be also XQ53, then judge that the information that will identify can trusted party be issued, if other values, then judge, the information that identify is that trustless side issues.
Also random algorithm can be adopted as hash algorithm, and hash algorithm is a kind of algorithm that typically can shorten data length, and hash algorithm is well known in the art, does not repeat at this.
In a specific embodiment, also above-mentioned one-dimension code information can be split into two part A and B, respectively by algorithm, process be carried out to the code word in A and B and obtains corresponding A ' and B ', A ' and the length of B ' be all less than A and B.Like this, the reduction of length is conducive to reducing the capacity needed for data storage.
One-dimension code verification unit 2 is positioned among server 1 in one embodiment, and in an another embodiment, it is the individual component independently and outside server 1.The present invention is known, according to result of determination in the embodiment of the present invention, can control the access of the user of one-dimension code mark, particularly, when result of determination is believable, then allow user's access of one-dimension code mark, if it is determined that when result is insincere, user's access of refusal one-dimension code mark.
Fig. 3 shows the particular flow sheet of the embodiment of the present invention, specifically, utilizes one-dimension code message identification user, or object; Step S1 is that server detects the one-dimension code information that village will identify; Step S2, server obtains the one-dimension code information that will be identified; Step S3 is,
Start one-dimension code verification unit, one-dimension code verification unit is calculated the described one-dimension code information that will be identified by predetermined algorithm, obtains one-dimension code check information; Step S4 is, the one-dimension code information check information corresponding with the one-dimension code information that trusted party is issued that use described pre-defined algorithm to obtain issued from trusted party has been preserved in advance in server, above-mentioned two check informations are compared, if consistent, then turn to S5, then the one-dimension code information that will be identified described in judging is that trusted party is issued, if inconsistent, then turn to S6, then the one-dimension code information that will be identified described in judging is that insincere side issues.
It should be noted that on the program recorded medium by certain form, coding or the transmission medium by certain type implement the aspect by software simulating of the present invention.Program recorded medium can be magnetic medium (such as, floppy disk or hard-drive) or optical medium (such as, aacompactadisk read onlyamemory or " CD ROM "), and can be read-only or random access.Similarly, transmission medium can be twisted-pair feeder, coaxial cable, optical fiber or other suitable transmission medium known in the art.The present invention is not by the restriction of these aspects of any given embodiment.
Finally it should be noted that, above embodiment is only in order to illustrate technical scheme of the present invention but not to be limited, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art are to be understood that: it still can be modified to technical scheme of the present invention or equivalent replacement, and these are revised or be equal to the spirit and scope that replacement also can not make amended technical scheme disengaging technical solution of the present invention.
Claims (10)
1. the recognition methods of an one-dimension code information, wherein, when the one-dimension code information existing and will be identified being detected, the one-dimension code information that will be identified described in server obtains, start one-dimension code verification unit simultaneously, one-dimension code verification unit is calculated the described one-dimension code information that will be identified by predetermined algorithm, obtain one-dimension code check information, the one-dimension code information check information corresponding with the one-dimension code information that trusted party is issued that use described pre-defined algorithm to obtain issued from trusted party has been preserved in advance in server, above-mentioned two check informations are compared, if consistent, the one-dimension code information that will be identified described in then judging is that trusted party is issued, if inconsistent, the one-dimension code information that will be identified described in then judging is that insincere side issues.
2. the recognition methods of one-dimension code information according to claim 1, wherein said algorithm is random algorithm or multinomial algorithm.
3. the recognition methods of one-dimension code information according to claim 1, described one-dimension code verification unit can be positioned among server or outside.
4. the recognition methods of one-dimension code information according to claim 1, when result of determination is believable, then allows user's access of one-dimension code mark, if it is determined that when result is insincere, and user's access of refusal one-dimension code mark.
5. the recognition methods of one-dimension code information according to claim 1, the length of the described described check information preserved in advance is less than the length calculating the one-dimension code information that described trusted party is issued.
6. the recognition system of an one-dimension code information, comprising server, one-dimension code verification unit, when server detects the one-dimension code information existing and will be identified, the one-dimension code information that will be identified described in described server obtains, start one-dimension code verification unit simultaneously, one-dimension code verification unit is calculated the described one-dimension code information that will be identified by predetermined algorithm, obtain one-dimension code check information, the one-dimension code information check information corresponding with the one-dimension code information that trusted party is issued that use described pre-defined algorithm to obtain issued from trusted party has been preserved in advance in server, above-mentioned two check informations are compared, if consistent, the one-dimension code information that will be identified described in then judging is that trusted party is issued, if inconsistent, the one-dimension code information that will be identified described in then judging is that insincere side issues.
7. the recognition system of one-dimension code information according to claim 6, described algorithm is random algorithm or multinomial algorithm.
8. the recognition system of one-dimension code information according to claim 6, described one-dimension code verification unit can be positioned among server or outside.
9. the recognition system of one-dimension code information according to claim 6, wherein when result of determination is believable, then allows user's access of one-dimension code mark, if it is determined that when result is insincere, and user's access of refusal one-dimension code mark.
10. the recognition system of one-dimension code information according to claim 6, the length of the described described check information preserved in advance is less than the length calculating the one-dimension code information that described trusted party is issued.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410735592.1A CN104408637A (en) | 2014-12-04 | 2014-12-04 | Method and system for identifying one-dimension code information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410735592.1A CN104408637A (en) | 2014-12-04 | 2014-12-04 | Method and system for identifying one-dimension code information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104408637A true CN104408637A (en) | 2015-03-11 |
Family
ID=52646266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410735592.1A Pending CN104408637A (en) | 2014-12-04 | 2014-12-04 | Method and system for identifying one-dimension code information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104408637A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106203572A (en) * | 2016-07-25 | 2016-12-07 | 四川新健康成生物股份有限公司 | A kind of bar code encryption method and bar code encryption system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1251452A (en) * | 1998-10-19 | 2000-04-26 | 海南百合数据通讯工程有限公司 | Non-reversible random function digital-code encryption anti-fake method |
US6565002B1 (en) * | 1998-01-22 | 2003-05-20 | Unicate B.V. | Method and system for identifying one or more objects |
CN1702669A (en) * | 2005-06-27 | 2005-11-30 | 成都市欧普信息网络技术有限公司 | Digital short message counterfeit technique |
JP5125547B2 (en) * | 2008-01-28 | 2013-01-23 | 富士ゼロックス株式会社 | Image generating apparatus, image processing apparatus, program, and print medium |
CN103310164A (en) * | 2013-06-18 | 2013-09-18 | 齐宇庆 | Verification method of electronic seal pattern and verification method of file containing electronic seal |
CN103761656A (en) * | 2014-01-07 | 2014-04-30 | 邝君 | Printing inspecting method and device of commodity information |
-
2014
- 2014-12-04 CN CN201410735592.1A patent/CN104408637A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6565002B1 (en) * | 1998-01-22 | 2003-05-20 | Unicate B.V. | Method and system for identifying one or more objects |
CN1251452A (en) * | 1998-10-19 | 2000-04-26 | 海南百合数据通讯工程有限公司 | Non-reversible random function digital-code encryption anti-fake method |
CN1702669A (en) * | 2005-06-27 | 2005-11-30 | 成都市欧普信息网络技术有限公司 | Digital short message counterfeit technique |
JP5125547B2 (en) * | 2008-01-28 | 2013-01-23 | 富士ゼロックス株式会社 | Image generating apparatus, image processing apparatus, program, and print medium |
CN103310164A (en) * | 2013-06-18 | 2013-09-18 | 齐宇庆 | Verification method of electronic seal pattern and verification method of file containing electronic seal |
CN103761656A (en) * | 2014-01-07 | 2014-04-30 | 邝君 | Printing inspecting method and device of commodity information |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106203572A (en) * | 2016-07-25 | 2016-12-07 | 四川新健康成生物股份有限公司 | A kind of bar code encryption method and bar code encryption system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106649346B (en) | Data repeatability checking method and device | |
CN107943949B (en) | Method and server for determining web crawler | |
CN110609941B (en) | Risk identification method and device for Internet operation event | |
CN107908948B (en) | A kind of Android APP device-fingerprint generation method applied to security risk control | |
CN105184083A (en) | Digital identity code used for medical instrument whole-process quality tracing and coding method thereof | |
WO2020143379A1 (en) | Abnormal data detection method and system | |
CN102842052B (en) | A kind of identity code generating method | |
CN103428080A (en) | Data unpacking and data packing method | |
CN105740667A (en) | User behavior based information identification method and apparatus | |
WO2019075968A1 (en) | Cross-page recognition method for form information, electronic device, and computer-readable storage medium | |
CN112015806A (en) | Method and device for storing data by block chain | |
CN107729375B (en) | Log data sorting method and device | |
CN104408637A (en) | Method and system for identifying one-dimension code information | |
US20160179168A1 (en) | Electronic device and method for detecting power usage of electronic device | |
CN110675028A (en) | Block chain-based food safety supervision method, device, equipment and system | |
US9830326B2 (en) | Identifying data offsets using binary masks | |
CN107766909B (en) | The method and system of anti-tamper processing is carried out to two-dimension code pattern | |
CN103810641A (en) | Fresh agricultural product circulation tracing entity responsibility identifying system and method | |
CN106874173A (en) | The method of testing and device of Page Template | |
CN108334335A (en) | A kind of software source code version determines method and device | |
CN109359274B (en) | Method, device and equipment for identifying character strings generated in batch | |
US10019488B2 (en) | Automated identification of record header tags | |
CN111045892A (en) | Method and device for detecting process state of intelligent contract execution | |
CN107481764B (en) | 3D Nand Flash scanning detection method and system | |
CN101908133B (en) | Method and device for decoding bar code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150311 |
|
RJ01 | Rejection of invention patent application after publication |