Anti-fake combination bar code and coding method, bar code reading method and bar code reader
Technical field
The present invention relates to anti-counterfeit bar code field, particularly relate to a kind of anti-fake combination bar code and coding method, bar code reading method and bar code reader.
Background technology
Anti-counterfeiting technology, as a kind of important means preventing fake products, is widely used in each production field at present.Anti-counterfeit bar code is false proof is a kind ofly arrange method for anti-counterfeit simple, easy to use.Existing anti-counterfeit bar code adopts specific cryptographic algorithm to be encrypted a kind of bar code of formation to the information stored in bar code.Existing anti-counterfeit bar code is generally plain code, is easily identified and cracks, and antifalse effect is limited.
Summary of the invention
The technical problem to be solved in the present invention is, for the defect of prior art, provides a kind of anti-fake combination bar code and coding method, bar code reading method and bar code reader.
The technical solution adopted for the present invention to solve the technical problems is: a kind of anti-fake combination bar code, at least one concealed code comprising at least one plain code and cooperatively interact with described plain code, described plain code and the matching relationship of described concealed code are each other expressly with cipher key relation or content is identical or content part is identical.
Preferably, described plain code adopts common printed print material to form, and described concealed code adopts fluoresent printing ink printing to form.
The present invention also provides a kind of coding method of anti-fake combination bar code, comprises the steps:
For arbitrary by coded message, be treated to plain code information and concealed code information by pre-defined rule, described pre-defined rule comprises makes plain code information and the matching relationship of concealed code information be each other expressly with cipher key relation or content is identical or content part is identical;
Adopt the first enciphering and deciphering algorithm that described plain code information is generated at least one plain code, and adopt the second enciphering and deciphering algorithm that described concealed code information is generated at least one concealed code;
Use visible material to print described plain code, and use stealth material to print described concealed code.
Preferably, described anti-fake combination bar code comprises a corresponding described concealed code of described plain code, the corresponding multiple described concealed code of described plain code, the corresponding described concealed code of multiple described plain code or the corresponding multiple described concealed code of multiple described plain code.
Preferably, adopt common ink to print described plain code, adopt fluoresent printing ink to print described concealed code.
The present invention also provides a kind of bar code reading method of anti-fake combination bar code, comprises the steps:
Distinguish plain code, the concealed code in same anti-fake combination bar code respectively;
According to the matching relationship of described plain code and described concealed code, by pre-defined rule, combination decoding process is carried out to described plain code and concealed code;
According to the result of combination decoding process, restore by coded message.
Preferably, the bar code reader can distinguishing plain code and concealed code is adopted to distinguish plain code in same group of anti-fake combination bar code and concealed code respectively.
Preferably, described plain code and the matching relationship of concealed code are each other expressly with cipher key relation or content is identical or content part is identical.
Preferably, be also included in the described plain code of recognition or described concealed code make mistakes, combine decoding process make mistakes or successfully decoded time carry out the step pointed out.
The present invention also provides a kind of bar code reader of anti-fake combination bar code, comprising:
Bar code reading module: for distinguishing plain code, the concealed code in same anti-fake combination bar code;
Processor module: for the matching relationship according to described plain code and described concealed code, carries out combination decoding process by pre-defined rule to described plain code and concealed code; And according to the result that combination decoding processes, restore by coded message.
Preferably, described bar code reading module comprise can send visible ray with distinguish plain code the first light source and ultraviolet light can be sent to distinguish the secondary light source of concealed code.
The present invention compared with prior art tool has the following advantages: the coding method implementing anti-fake combination bar code of the present invention, by being arranged to plain code information and concealed code information to by coded message by pre-defined rule, be encrypted respectively by the first enciphering and deciphering algorithm and the second enciphering and deciphering algorithm, to form plain code and concealed code, by plain code and concealed code with the use of, make not easily to be identified by coded message or to crack, there is better antifalse effect.
Implement the bar code reading method of anti-fake combination bar code of the present invention, by distinguishing plain code in same anti-fake combination bar code and concealed code, and eradicate pre-defined rule to plain code and concealed code carry out combination decoding process, with reduction by coded message, the method need carry out combined treatment to plain code and concealed code, this anti-fake combination bar code effectively can be avoided to be identified or to crack, there is good antifalse effect.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the process flow diagram of the coding method of anti-fake combination bar code in the embodiment of the present invention 1.
Fig. 2 is the process flow diagram of the bar code reading method of anti-fake combination bar code in the embodiment of the present invention 2.
Embodiment
In order to there be understanding clearly to technical characteristic of the present invention, object and effect, now contrast accompanying drawing and describe the specific embodiment of the present invention in detail.
The invention provides a kind of anti-fake combination bar code, at least one concealed code that this anti-fake combination bar code comprises at least one plain code and cooperatively interacts with plain code, plain code and the matching relationship of concealed code are each other expressly with cipher key relation or content is identical or content part is identical.Understandably, at least one plain code and the cooperation of at least one concealed code can be a corresponding concealed code of plain code, the corresponding multiple concealed code of plain code, the corresponding concealed code of multiple plain code or the corresponding multiple concealed code of multiple plain code.Particularly, plain code adopts common printed print material to form, and concealed code adopts fluoresent printing ink printing to form.This anti-fake combination bar code adopt plain code and concealed code with the use of, make not easily to be identified by coded message or to crack, there is better antifalse effect.
Embodiment 1
Fig. 1 illustrates the coding method of the anti-fake combination bar code in the present embodiment.This coding method comprises the steps:
S11: for arbitrary by coded message, be treated to plain code information and concealed code information by pre-defined rule, pre-defined rule comprises makes plain code information and the matching relationship of concealed code information be each other expressly with cipher key relation or content is identical or content part is identical.
S12: adopt the first enciphering and deciphering algorithm that plain code information is generated at least one plain code, and adopt the second enciphering and deciphering algorithm that concealed code information is generated at least one concealed code.Particularly, the corresponding relation of anti-fake combination bar code can be the corresponding concealed code of a plain code, the corresponding multiple concealed code of plain code, the corresponding concealed code of multiple plain code or the corresponding multiple concealed code of multiple plain code.
S13: use visible material printing plain code, and use stealth material to print concealed code.Understandably, plain code and concealed code can be overlapped, also can non-overlapping copies.Particularly, common ink printing can be adopted to print plain code as visible material, adopt fluoresent printing ink to print concealed code as stealth material.Understandably, plain code and concealed code all can print for one-dimension code or Quick Response Code, and both can adopt the bar code kind of identical type, also can adopt different bar code kinds.
When plain code and concealed code do not overlap, if this anti-fake combination bar code comprises a plain code and a concealed code, concealed code can be placed on optional position around plain code, keeps suitable distance between the two, so that recognition.As this anti-fake combination bar code comprises a plain code and multiple concealed code, can the multiple stealth of relative set around plain code, vice versa.Understandably, in this anti-fake combination bar code, plain code and concealed code are put position, order, relative position relation, the anglec of rotation etc. all can independent assortments.
Implement the coding method of anti-fake combination bar code of the present invention, by being arranged to plain code information and concealed code information to by coded message by pre-defined rule, be encrypted respectively by the first enciphering and deciphering algorithm and the second enciphering and deciphering algorithm, to form plain code and concealed code, by plain code and concealed code with the use of, make not easily to be identified by coded message or to crack, there is better antifalse effect.
Embodiment 2
Fig. 2 illustrates the bar code reading method of the anti-fake combination bar code in the present embodiment.This bar code reading method comprises the steps:
S21: distinguish plain code, the concealed code in same anti-fake combination bar code respectively.Particularly, the bar code reader can distinguishing plain code and concealed code is adopted to distinguish plain code in same group of anti-fake combination bar code and concealed code respectively.Particularly, this bar code reader can arrange the first light source of the sent visible ray for distinguishing plain code and the secondary light source for the sent purple light of distinguishing concealed code simultaneously, also the first light source and secondary light source can be separately positioned on different bar code readers.Further, if when the plain code distinguished in same anti-fake combination bar code or concealed code failure, prompting is decoded unsuccessfully.
S22: according to the matching relationship of plain code and concealed code, carries out combination decoding process by pre-defined rule to plain code and concealed code.Particularly, plain code and the matching relationship of concealed code are each other expressly with cipher key relation or content is identical or content part is identical.Understandably, if plain code is password, then the content of concealed code needs this password to solve; If or the content of plain code needs password to solve, then concealed code is password, when distinguishing out this plain code and concealed code, both information is carried out combination decoding process.Or, if plain code is identical with the content of concealed code or part is identical, after recognition plain code and concealed code, judge that the consistance of confirmation is to realize false proof object by contrast.
S23: according to the result of combination decoding process, restore by coded message.Understandably, to make mistakes or the successfully decoded time-division is shown indescribably and goes back primary failure or successfully decoded in combination decoding process.
Implement the bar code reading method of anti-fake combination bar code of the present invention, by distinguishing plain code in same anti-fake combination bar code and concealed code, and eradicate pre-defined rule to plain code and concealed code carry out combination decoding process, with reduction by coded message, the method need carry out combined treatment to plain code and concealed code, this anti-fake combination bar code effectively can be avoided to be identified or to crack, there is good antifalse effect.
The present invention also provides a kind of bar code reader of anti-fake combination bar code, and the bar code reader of this anti-fake combination bar code comprises:
Bar code reading module: for distinguishing plain code, the concealed code in same anti-fake combination bar code.Particularly, bar code reading module comprise can send visible ray with distinguish plain code the first light source and ultraviolet light can be sent to distinguish the secondary light source of concealed code.
Processor module: for the matching relationship according to plain code and concealed code, carries out combination decoding process by pre-defined rule to plain code and concealed code; And according to the result that combination decoding processes, restore by coded message.Particularly, plain code and the matching relationship of concealed code are each other expressly with cipher key relation or content is identical or content part is identical.
This bar code reader can distinguish plain code in anti-fake combination bar code and concealed code simultaneously, and carries out combined treatment to plain code and concealed code, this anti-fake combination bar code effectively can be avoided to be identified or to crack, have good antifalse effect.
The present invention is described by several specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to substituting to the present invention.In addition, for particular condition or concrete condition, various amendment can be made to the present invention, and not depart from the scope of the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise the whole embodiments fallen within the scope of the claims in the present invention.