Anti-fake combination bar code and its coding method, bar code reading method and bar code reader
Technical field
The present invention relates to anti-counterfeit bar code field more particularly to a kind of anti-fake combination bar code and its coding method, bar code readings
Method and bar code reader.
Background technology
Anti-counterfeiting technology is answered in each production field extensively at present as a kind of important means for preventing fake products
With.Anti-fake anti-counterfeit bar code is a kind of setting method for anti-counterfeit simple, easy to use.Existing anti-counterfeit bar code is using specific encryption
The information stored in bar code is encrypted a kind of bar code to be formed in algorithm.Existing anti-counterfeit bar code is usually plain code, is easy
It is identified and cracks, antifalse effect is limited.
Invention content
The technical problem to be solved in the present invention is, in view of the drawbacks of the prior art, provide a kind of anti-fake combination bar code and
Its coding method, bar code reading method and bar code reader.
The technical solution adopted by the present invention to solve the technical problems is:A kind of anti-fake combination bar code, including it is at least one
Plain code and with the mutually matched at least one concealed code of the plain code, the matching relationship of the plain code and the concealed code is each other
It is identical or content part is identical with cipher key relation or content in plain text.
Preferably, the plain code is printed using common printed material, and the concealed code is printed using fluoresent printing ink
It brushes.
The present invention also provides a kind of coding methods of anti-fake combination bar code, include the following steps:
It is encoded information for any bar, plain code information and concealed code information are processed by pre-defined rule, it is described pre-
Set pattern then include make plain code information and the matching relationship of concealed code information be each other plaintext and cipher key relation or the complete phase of content
With or content part it is identical;
The plain code information is generated by least one plain code using the first enciphering and deciphering algorithm, and uses the second enciphering and deciphering algorithm
The concealed code information is generated at least one concealed code;
The plain code is printed using visible material, and the concealed code is printed using stealth material.
Preferably, the anti-fake combination bar code is stated clearly including one concealed code of a plain code correspondence, one
The corresponding multiple concealed codes of code, multiple plain codes correspond to a concealed code or multiple plain codes correspond to multiple institutes
State concealed code.
Preferably, the plain code is printed using common ink, the concealed code is printed using fluoresent printing ink.
The present invention also provides a kind of bar code reading methods of anti-fake combination bar code, include the following steps:
Plain code, the concealed code in same anti-fake combination bar code are distinguished respectively;
According to the matching relationship of the plain code and the concealed code, group is carried out to the plain code and concealed code by pre-defined rule
Close decoding process;
According to combination decoding process information is encoded as a result, restoring.
Preferably, use can distinguish plain code and the bar code reader of concealed code is distinguished respectively in same group of anti-fake combination bar code
Plain code and concealed code.
Preferably, the plain code and the matching relationship of concealed code be each other in plain text it is identical with cipher key relation or content,
Or content part is identical.
Preferably, further include distinguishing the plain code or concealed code error, the error of combination decoding process or being decoded into
The step of being prompted when work(.
The present invention also provides a kind of bar code readers of anti-fake combination bar code, including:
Bar code reading module:For distinguishing plain code, concealed code in same anti-fake combination bar code;
Processor module:For the matching relationship according to the plain code and the concealed code, by pre-defined rule to being stated clearly
Code and concealed code are combined decoding process;And information is encoded as a result, restoring according to combination decoding process.
Preferably, the bar code reading module includes that can send out visible light with the first light source of distinguishing plain code and can send out purple
Outer light is to distinguish the second light source of concealed code.
The present invention has the following advantages that compared with prior art:Implement the coding method of the anti-fake combination bar code of the present invention,
By being arranged to plain code information and concealed code information by pre-defined rule to being encoded information, respectively by the first enciphering and deciphering algorithm and
Second enciphering and deciphering algorithm is encrypted, and to form plain code and concealed code, passes through being used cooperatively for plain code and concealed code so that compiled
Code information is not easy identified or cracks, and has better antifalse effect.
The bar code reading method for implementing the anti-fake combination bar code of the present invention, it is bright in same anti-fake combination bar code by distinguishing
Code and concealed code, and eradicate pre-defined rule and decoding process is combined to plain code and concealed code, information, the party are encoded with reduction
Method need to be combined processing to plain code and concealed code, can effectively avoid the anti-fake combination bar code and be identified or crack, and have good
Antifalse effect.
Description of the drawings
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the flow chart of the coding method of the anti-fake combination bar code in the embodiment of the present invention 1.
Fig. 2 is the flow chart of the bar code reading method of the anti-fake combination bar code in the embodiment of the present invention 2.
Specific implementation mode
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail
The specific implementation mode of the present invention.
The present invention provides a kind of anti-fake combination bar code, which includes at least one plain code and mutual with plain code
At least one concealed code of cooperation, the matching relationship of plain code and concealed code are each other in plain text and cipher key relation or the complete phase of content
With or content part it is identical.It is to be appreciated that the cooperation of at least one plain code and at least one concealed code can be a plain code
A corresponding concealed code, a plain code correspond to multiple concealed codes, multiple plain codes correspond to a concealed code or multiple plain codes correspondence is more
A concealed code.Specifically, plain code is printed using common printed material, and concealed code is printed using fluoresent printing ink.
The anti-fake combination bar code is used cooperatively using plain code and concealed code so that is encoded information and is not easy identified or cracks, has
Better antifalse effect.
Embodiment 1
Fig. 1 shows the coding method of the anti-fake combination bar code in the present embodiment.The coding method includes the following steps:
S11:It is encoded information for any bar, is processed into plain code information and concealed code information by pre-defined rule, in advance
Set pattern then include make plain code information and the matching relationship of concealed code information be each other plaintext and cipher key relation or the complete phase of content
With or content part it is identical.
S12:Plain code information is generated by least one plain code using the first enciphering and deciphering algorithm, and uses the second enciphering and deciphering algorithm
Concealed code information is generated at least one concealed code.Specifically, the correspondence of anti-fake combination bar code can be a plain code pair
Answer a concealed code, a plain code to correspond to multiple concealed codes, multiple plain codes correspond to a concealed code or multiple plain codes correspond to it is multiple
Concealed code.
S13:Plain code is printed using visible material, and concealed code is printed using stealth material.It is to be appreciated that plain code and hidden
Shape code can be overlapped, can also non-overlapping copies.Specifically, it is bright as visible material printing that common ink printing may be used
Code prints concealed code using fluoresent printing ink as stealth material.It is to be appreciated that it is one that plain code and concealed code, which can print,
The bar code type of same type may be used in dimension code or Quick Response Code, the two, can also use different bar code types.
When plain code and concealed code do not overlap, if the anti-fake combination bar code includes a plain code and a concealed code,
Concealed code can be placed on any position around plain code, keep suitable distance between the two, in order to distinguish.Such as anti-fake combination
Bar code includes a plain code and multiple concealed codes, multiple stealths can accordingly be arranged around plain code, vice versa.It is appreciated that
Ground, position, order, relative position relation, rotation angle that plain code is put with concealed code in the anti-fake combination bar code etc. can be with
Independent assortment.
The coding method for implementing the anti-fake combination bar code of the present invention, it is bright by being arranged to being encoded information by pre-defined rule
Code information and concealed code information, are encrypted respectively by the first enciphering and deciphering algorithm and the second enciphering and deciphering algorithm, to form plain code
And concealed code, pass through being used cooperatively for plain code and concealed code so that be encoded information and be not easy identified or crack, have better
Antifalse effect.
Embodiment 2
Fig. 2 shows the bar code reading methods of the anti-fake combination bar code in the present embodiment.The bar code reading method includes as follows
Step:
S21:Plain code, the concealed code in same anti-fake combination bar code are distinguished respectively.Specifically, using plain code and hidden can be distinguished
The bar code reader of shape code distinguishes the plain code and concealed code in same group of anti-fake combination bar code respectively.Specifically, the bar code reading
Device can be arranged the first light source for sending out visible light for distinguishing plain code and send out purple for distinguish concealed code simultaneously
First light source and second light source can also be separately positioned on different bar code readers by the second light source of light.Further,
If distinguish plain code or the concealed code failure in same anti-fake combination bar code, decoding failure is prompted.
S22:According to the matching relationship of plain code and concealed code, plain code and concealed code are combined at decoding by pre-defined rule
Reason.Specifically, plain code and the matching relationship of concealed code are or content portions identical with cipher key relation or content in plain text each other
Split-phase is same.It is to be appreciated that if plain code is password, the content of concealed code needs the password to solve;If or the content of plain code needs
Password is wanted to solve, then concealed code is that the information of the two is combined at decoding by password when distinguishing out the plain code and concealed code
Reason.Alternatively, if plain code is identical with the content of concealed code or part is identical, judged really by comparing after recognition plain code and concealed code
The consistency of information is recognized to realize anti-fake purpose.
S23:According to combination decoding process information is encoded as a result, restoring.It is to be appreciated that in combination decoding process
Error or successfully decoded time-division, which are indescribably shown, goes back primary failure or successfully decoded.
The bar code reading method for implementing the anti-fake combination bar code of the present invention, it is bright in same anti-fake combination bar code by distinguishing
Code and concealed code, and eradicate pre-defined rule and decoding process is combined to plain code and concealed code, information, the party are encoded with reduction
Method need to be combined processing to plain code and concealed code, can effectively avoid the anti-fake combination bar code and be identified or crack, and have good
Antifalse effect.
The present invention also provides a kind of bar code reader of anti-fake combination bar code, the bar code reader packets of the anti-fake combination bar code
It includes:
Bar code reading module:For distinguishing plain code, concealed code in same anti-fake combination bar code.Specifically, bar code reading
Module includes that can send out visible light with the first light source of distinguishing plain code and can send out ultraviolet light to distinguish the second light source of concealed code.
Processor module:For the matching relationship according to plain code and concealed code, by pre-defined rule to plain code and concealed code into
Row combination decoding process;And information is encoded as a result, restoring according to combination decoding process.Specifically, plain code and concealed code
Matching relationship be identical or content part is identical with cipher key relation or content in plain text each other.
The bar code reader can distinguish plain code and concealed code in anti-fake combination bar code simultaneously, and to plain code and concealed code into
Row combined treatment can effectively avoid the anti-fake combination bar code and be identified or crack, has good antifalse effect.
The present invention is illustrated by several specific embodiments, it will be appreciated by those skilled in the art that, it is not departing from
In the case of the scope of the invention, various transformation and equivalent substitute can also be carried out to the present invention.In addition, being directed to particular condition or tool
Body situation can do various modifications, without departing from the scope of the present invention to the present invention.Therefore, the present invention is not limited to disclosed
Specific embodiment, and should include whole embodiments for falling within the scope of the appended claims.