Invention content
Shortcoming present in regarding to the issue above, the present invention provide a kind of Quick Response Code and dot pattern making generationHave relevance, and has the combined anti-fake mark and generation method based on the same ID of high-grade anti-counterfeiting performanceWith device.
To achieve the above object, the present invention provides a kind of combined anti-fake mark based on the same ID, including Quick Response CodeWith dot pattern;
The Quick Response Code by the ID number, Quick Response Code extracted from ID number database parameter information, as parse the two dimensionCode special Quick Response Code identification software download address information cleartext information, and after cryptographic operation, by identical oneOr the ciphertext message of multiple character compositions is generated;
The dot pattern is generated by ID number identical with Quick Response Code, and area is not more than the area of Quick Response Code, by canIt is made containing carbon coating by what naked eyes black light was identified.
The above-mentioned combined anti-fake mark based on the same ID, wherein the size of the dot pattern is in 17x17 pixelsBetween~67x67 pixels, the dot pattern is made of multiple ink dots, and the ink dot, which uses, to be known by naked eyes black lightIt is other to be made containing carbon coating;
Between 1x1 pixels~3x3 pixels, the minimum range between the two neighboring ink dot exists the size of the ink dotBetween 2 pixel~8 pixels.
The present invention provides a kind of generation method of the combined anti-fake mark based on the same ID, includes the following steps:
S1, by two-dimension code generator, by the parameter information of the ID number, Quick Response Code extracted from ID number database, plaintextInformation and ciphertext message are converted to Quick Response Code;
S2, by dot pattern generator, will an area be generated by ID number identical with Quick Response Code and be not more than clear areaThe dot pattern of domain area.
Above-mentioned generation method, wherein in step sl, including following sub-step:
S11, in the Quick Response Code that two-dimension code generator is established generates the page, input is by the ID that is extracted in ID number databaseNumber, the supplemental characteristic of Quick Response Code, can be used as special Quick Response Code software download website information cleartext information and secret letter to be addedBreath;
S12, it encryption information is treated by cipher mode is encrypted, to be formed by identical one or more charactersThe ciphertext message of composition;
S13, meet Quick Response Code according to by the ID number, cleartext information and the ciphertext message that are extracted in ID number database to generateThe Quick Response Code of supplemental characteristic.
Above-mentioned generation method, wherein in step s 2, including following sub-step:
S21, in the dot pattern that dot pattern generator is established generates the page, input identical with Quick Response Code ID number,And the supplemental characteristic of Quick Response Code;
S22, a dot pattern is generated according to the supplemental characteristic of ID number identical with Quick Response Code and Quick Response Code.
Above-mentioned generation method, wherein in step S22, dot pattern generator is to the ruler in Quick Response Code supplemental characteristicVery little data are parsed, so that the area of the dot pattern generated is not more than the area of generated Quick Response Code.
The present invention provides a kind of generating means of the combined anti-fake mark based on the same ID, including two-dimension code generatorWith dot pattern pattern generator;
The parameter by the ID number, Quick Response Code extracted from ID number database that the two-dimension code generator is used to be inputtedThe cleartext information of information, special Quick Response Code identification software download address information for parsing the Quick Response Code, and by encryptionThe ciphertext message formed after operation, by identical one or more characters generates Quick Response Code;
The ID number identical with Quick Response Code that the dot pattern generator is used to get generates an area and is not more thanThe dot pattern of white space area.
Above-mentioned generating means, wherein two-dimension code generator includes MIM message input module, encrypting module and generates mouldBlock;
Described information input module be used for input by the ID number, Quick Response Code extracted in ID number database supplemental characteristic, canThe cleartext information and confidential information to be added of download website information as special Quick Response Code software;
The encrypting module is encrypted for calling cipher mode to treat encryption information, to be formed by identical oneThe ciphertext message of a or multiple character compositions;
The generation module is used for according to ID number, the supplemental characteristic of Quick Response Code, cleartext information and ciphertext message to generate twoTie up code.
Above-mentioned generating means, wherein the dot pattern generator includes MIM message input module and generation module;
Described information input module is used to input the supplemental characteristic of ID number identical with Quick Response Code and Quick Response Code;
The generation module is used to generate a point according to the supplemental characteristic of ID number identical with Quick Response Code and Quick Response CodeSystem of battle formations shape.
Above-mentioned generating means, wherein the generation module also solves the dimension data in Quick Response Code supplemental characteristicAnalysis, so that the area of the dot pattern generated is not more than the area of generated Quick Response Code.
Compared with prior art, the present invention has the following advantages:
Combined anti-fake mark in the present invention, which is combined by Quick Response Code with dot pattern, to be constituted, due to Quick Response Code and dot matrixFigure be include identical ID number, therefore, the Quick Response Code of generation and dot pattern can be made to have relevance by ID number;
In addition, since Quick Response Code can only could distinguish out the content information mutually bound with it by special Quick Response Code software,And dot pattern can not be read device again after being replicated, scanning and be identified, even if after being copied by fake producerThe information with the sensible binding of the anti-counterfeiting label can not be got, therefore, so that the mark of the combined anti-fake in the present invention is had high-gradeAnti-counterfeiting performance.
Specific implementation mode
As shown in Figure 1, the present invention provides a kind of combined anti-fake mark based on the same ID, including Quick Response Code 1 and pointSystem of battle formations shape 2.Wherein, Quick Response Code by the ID number, Quick Response Code extracted from ID number database parameter information, as parse the two dimensionCode special Quick Response Code identification software download address information cleartext information, and after cryptographic operation, by identical oneOr the ciphertext message of multiple character compositions is generated.
Dot pattern is generated by ID number identical with Quick Response Code, and area is not more than the area of Quick Response Code, by can be by meatWhat eye black light was identified is made containing carbon coating.
In the present embodiment, dot pattern is implanted in Quick Response Code in the Different Plane of same article.
Dot pattern 2 is made of multiple ink dots 21, and the size of ink dot is between 1x1 pixels~3x3 pixels, two neighboring inkMinimum range between point between 2 pixel~8 pixels, the size of dot pattern 17x17 pixels~67x67 pixels itBetween.
Under the 2400DPI precisions of images, an ink dot is 3*3 pixel sizes;Under the 600DPI precisions of images, an ink dotFor 1*1 pixel sizes.
Under the 2400DPI precisions of images, the size of two neighboring ink dot spacing is 8 pixels, which is from ink dotDistance of the heart position to another ink dot center;Under the 600DPI precisions of images, the size of two neighboring ink dot spacing is 2Pixel, the spacing are the distance from ink dot center to another ink dot center.
Under the 2400DPI precisions of images, the size of dot pattern is 67x67 pixels;Under the 600DPI precisions of images, dot matrixThe size of figure is 17*17 pixels.
Wherein, ink dot is the ink dot of regular shape or the ink dot of irregular shape, and the top surface of ink dot is smooth structureOr texture structure.
Ink dot utilizes at least one in printing, spraying, drafting using the coating that can be identified by naked eyes black lightKind mode is attached on the white space in Quick Response Code.Wherein, can be carbon containing by the coating that naked eyes black light is identifiedIt can be seen that one kind in coating or carbon containing invisible coating, carbon containing visible coating is carbon containing visible ink or ink, carbon containingInvisible coating is carbon containing colorless ink or ink.
The area of white space is not less than dot pattern area.
Since carbon containing visible ink or ink and carbon containing colorless ink or ink can absorb the red of specific bandOutside line, therefore, only the information in dot pattern can be identified in infrared ray identification device.
As shown in Fig. 2, the present invention provide it is a kind of based on the same ID combined anti-fake mark generation method, including withLower step:
S1, by two-dimension code generator, by the parameter information of the ID number, Quick Response Code extracted from ID number database, plaintextInformation and ciphertext message are converted to Quick Response Code.
In step sl, including following sub-step:
S11, in the Quick Response Code that two-dimension code generator is established generates the page, input is by the ID that is extracted in ID number databaseNumber, the supplemental characteristic of Quick Response Code, can be used as special Quick Response Code software download website information cleartext information and secret letter to be addedBreath.
S12, it encryption information is treated by cipher mode is encrypted, to be formed by identical one or more charactersThe ciphertext message of composition.
In step s 12, it is as follows to treat the step of encryption information is encrypted:
S121, basis are implanted with the current display time of the operating system of two-dimension code generator to determine time interval Duan XuNumber;
S122, encryption information encryption behaviour is treated with selected cipher mode corresponding thereto according to time interval section serial numberMake.
It also needs to proceed as follows step before step S12 is implemented:
To be divided within 00~59 second 11 time interval sections, and by each time interval section respectively with a kind of cipher mode phaseBinding, to form 11 one-time pad encryption segments.
Such as:1st encryption segment is mutually bound with des encryption mode, the 2nd encryption segment and 3DES encryption mode are mutually tied upFixed, the 3rd encryption segment is mutually bound with TEA cipher modes, the 4th encrypts segment and XTEA cipher modes are mutually bound, the 5th encryptsSegment mutually binds with RC4 cipher modes, the 6th encryption segment is mutually bound with PANAMA cipher modes, the 7th encryption segment andTwofish cipher modes mutually bind, the 8th encryption segment is mutually bound with CAST-128 cipher modes, the 9th encryption segment andCAST-256 cipher modes mutually bind, the 10th encryption segment is mutually bound with md5 encryption mode, the 11st encryption segment andEnigma cipher modes are mutually bound.
If in addition, also needing to carry out second of cryptographic operation to the ciphertext message for completing first time cryptographic operation, in stepRapid S122 executes step S123 after implementing:
A kind of cipher mode is called by encryption order pointer, to be carried out to the ciphertext message for completing first time cryptographic operationSecond of cryptographic operation.
In step S123, encryption order pointer judges second in random call and after choosing to second of cipher modeWhether secondary cipher mode and first time cipher mode are identical cipher mode;
If it is determined that second of cipher mode is identical cipher mode with first time cipher mode, then this time random adjust is abandonedA pointer position is moved forward or rearward by encryption order pointer using current location as starting point, and will be with with selection operationCipher mode of the corresponding cipher mode of current pointer location as second of cryptographic operation.
In step S123, cipher mode includes that des encryption mode, 3DES encryption mode, TEA cipher modes, XTEA addClose mode, RC4 cipher modes, PANAMA cipher modes, Twofish cipher modes, CAST-128 cipher modes, CAST-256 addClose mode, md5 encryption mode and enigma cipher modes.
S13, meet Quick Response Code according to by the ID number, cleartext information and the ciphertext message that are extracted in ID number database to generateThe Quick Response Code of supplemental characteristic.
S2, by dot pattern generator, will an area be generated by ID number identical with Quick Response Code and be not more than clear areaThe dot pattern of domain area.
In step s 2, including following sub-step:
S21, in the dot pattern that dot pattern generator is established generates the page, input identical with Quick Response Code ID number,And the supplemental characteristic of Quick Response Code;
S22, a dot pattern is generated according to the supplemental characteristic of ID number identical with Quick Response Code and Quick Response Code.
In step S22, dot pattern generator parses the dimension data in Quick Response Code supplemental characteristic, so that instituteThe area of the dot pattern of generation is not more than the area of generated Quick Response Code.
S3, two-dimension code generator and dot pattern generator are respectively by two dimension being generated, including the same ID numberCode is uploaded to Cloud Server with dot pattern and is stored.
Cloud Server establishes the data that ID number is title and stores chained list, and by two after receiving Quick Response Code and dot patternDimension code is stored in dot pattern in data storage chained list.
As shown in figure 3, the present invention provides a kind of generating means of the combined anti-fake mark based on the same ID, including twoTie up code generator 3 and dot pattern pattern generator 5;
Two-dimension code generator 3 is used to be believed what is inputted by ID number, the parameter of Quick Response Code extracted from ID number database 4The cleartext information of breath, special Quick Response Code identification software download address information for parsing the Quick Response Code, and by encryption behaviourThe ciphertext message formed after work, by identical one or more characters generates Quick Response Code.
Wherein, two-dimension code generator 3 includes MIM message input module, encrypting module and generation module:
MIM message input module be used for input by the ID number, Quick Response Code extracted in ID number database supplemental characteristic, can be used asThe cleartext information and confidential information to be added of the download website information of special Quick Response Code software.
Encrypting module is encrypted for calling cipher mode to treat encryption information, to be formed by identical one orThe ciphertext message of multiple character compositions.
Encrypting module can treat encryption information and carry out one-time pad encryption operation and/or secondary cryptographic operation.
Generation module is used for according to ID number, the supplemental characteristic of Quick Response Code, cleartext information and ciphertext message to generate Quick Response Code.
The ID number identical with Quick Response Code that dot pattern generator 5 is used to get generates an area and is not more than blankThe dot pattern of region area.
Wherein, dot pattern generator includes MIM message input module and generation module;
MIM message input module is used to input the supplemental characteristic of ID number identical with Quick Response Code and Quick Response Code;
Generation module is used to generate a dot chart according to the supplemental characteristic of ID number identical with Quick Response Code and Quick Response CodeShape.
In addition, generation module also parses the dimension data in Quick Response Code supplemental characteristic, so that the dot matrix generatedThe area of figure is not more than the area of generated Quick Response Code.
Cloud Server 6 receives the Quick Response Code and dot pattern that two-dimension code generator is uploaded with dot pattern generator, goes forward side by sideRow storage.
Cloud Server establishes the data that ID number is title and stores chained list, and by two after receiving Quick Response Code and dot patternDimension code is stored in dot pattern in data storage chained list.Data store chained list in also be stored with for as ciphertext message,And the confidential information to be added of unencryption.
Only as described above, only presently preferred embodiments of the present invention, professional who are familiar with this art such as.After the technological means for understanding the present invention, natural energy is changed under the teachings of the present invention according to actual needs.Therefore allAccording to variation and modification on an equal basis made by scope of the present invention patent, once should still remain within the scope of the patent.