Summary of the invention
For the weak point existed in the problems referred to above, the invention provides a kind of pattern changeable, and there is combined anti-fake mark, generation method and the generating apparatus of the position changeable formula of dirigibility.
For achieving the above object, the invention provides a kind of combined anti-fake mark of position changeable formula, comprise Quick Response Code mark to identify with the identity code being superimposed upon its surface, described identity code mark is arranged on the position between two locating areas on the acentric position in described Quick Response Code mark except locating area or adjacent, and the edge of described identity code mark can not exceed the edge of described Quick Response Code mark.
The combined anti-fake mark of above-mentioned position changeable formula, wherein, described identity code mark is made up of an identity code, multiple identity code or connected by multiple identity code unit;
When described identity code mark comprises multiple identity code unit, multiple identity code unit is dispersing mode arrangement or dense arrangement mode.
The combined anti-fake mark of above-mentioned position changeable formula, wherein, when the quantity of described identity code is one, described identity code is arranged on upper side position, lower position, leftward position, right positions, the position, oblique upper, tiltedly lower position of the central point in described Quick Response Code mark except locating area or is that benchmark distributes with central point.
The combined anti-fake mark of above-mentioned position changeable formula, wherein, when the quantity of described identity code is one, described identity code is arranged on two locating areas that same level is arranged or the leg-of-mutton center be made up of three locating areas.
The combined anti-fake mark of above-mentioned position changeable formula, wherein, the edge that the edge of described identity code and described Quick Response Code identify coincides or is arranged on the inner side at the edge that described Quick Response Code identifies.
The combined anti-fake mark of above-mentioned position changeable formula, wherein, the interference element of interference effect can be produced when being provided with visual described identity code on the surface of described identity code, the interference element that described interference element is single pattern or the interference element group be made up of the interference element of at least two single patterns, described interference element is the one in point coding, lines, numeral and the letter different from described identity code generating material.
A kind of generation method that the present invention also provides combined anti-fake of position changeable formula to identify, comprises the following steps:
S1, generate in the page in Quick Response Code mark, by extract from ID number storehouse No. ID, parameter information, the cleartext information of Quick Response Code mark, and information to be encrypted or the parameter information of presetting information storage area to be encrypted are converted to Quick Response Code mark;
S2, to generate in the page in identity code mark, generates the identity code that an area is not more than Quick Response Code mark area and identify;
S3, according to inputted location parameter, by identity code mark be arranged on Quick Response Code mark in non-central location on.
Above-mentioned generation method, wherein, in step s 2, generate in the page in identity code mark, No. ID identical with step S1, the supplemental characteristic that identifies of Quick Response Code can be inputted, the area of identity code mark, quantity and pattern are set, and the pattern of interference element and quantity.
Above-mentioned generation method, wherein, in step s3, location parameter is position coordinates point, identity code mark is arranged on the non-central location in Quick Response Code mark, comprises following two kinds of situations according to position coordinates point:
Situation a:
Described identity code mark is arranged on the upper side position of the central point in described Quick Response Code mark except locating area except, lower position, leftward position, right positions, position, oblique upper or oblique lower position;
Situation b:
Described identity code is arranged on two locating areas that same level is arranged or the leg-of-mutton center be made up of three locating areas.
The generating apparatus that the present invention also provides a kind of combined anti-fake of position changeable formula to identify, comprising:
Quick Response Code identification generator, for generating in the page in Quick Response Code mark, by extract from ID number storehouse No. ID, parameter information, the cleartext information of Quick Response Code mark, and information to be encrypted is converted to Quick Response Code mark;
Identity code identification generator, for generating in the page in identity code mark, according to the identity code mark that in step S1 No. ID generates an area and be not more than Quick Response Code mark area;
Identity code home position setting apparatus, for according to inputted location parameter, is arranged on identity code mark on the non-central location in Quick Response Code mark.
Compared with prior art, the present invention has the following advantages:
Identity code can be arranged on the region of Quick Response Code mark except center according to inputted position coordinates by the present invention, compared with its existing Quick Response Code, has more diversity and dirigibility;
Owing to being also provided with interference element on identity code, therefore, the barrier propterty of identity code can be improved, make fake producer's None-identified go out the real anti-fake code corresponding with article, greatly add false proof security and the difficulty of deciphering.
Embodiment
The combined anti-fake mark of a kind of position changeable formula of the present invention, comprise Quick Response Code mark to identify with the identity code being superimposed upon its surface, identity code mark is arranged on the position between two locating areas on the acentric position in Quick Response Code mark except locating area or adjacent, and the edge of identity code mark can not exceed the edge of Quick Response Code mark.
Identity code mark is made up of an identity code, multiple identity code or connected by multiple identity code unit;
When identity code mark comprises multiple identity code unit, multiple identity code unit is dispersing mode arrangement or dense arrangement mode.
As shown in Figure 2, the present embodiment provides a kind of combined anti-fake of position changeable formula to identify, and comprises Quick Response Code mark 1 and the identity code 2 being superimposed upon its surface, and the edge of this identity code 2 can not exceed the edge of Quick Response Code mark 1.
Wherein, this identity code 2 is arranged in Quick Response Code mark, the leftward position of central point except locating area and Quick Response Code identify on the region between edge.
As shown in Figure 3, the present embodiment provides a kind of combined anti-fake of position changeable formula to identify, and comprises Quick Response Code mark 1 and the identity code 2 being superimposed upon its surface, and the edge of this identity code 2 can not exceed the edge of Quick Response Code mark 1.
Wherein, this identity code 2 is arranged on the leg-of-mutton central area that in Quick Response Code mark 1, three locating areas are formed.
As shown in Figure 4, the present embodiment provides a kind of combined anti-fake of position changeable formula to identify, and comprises Quick Response Code mark 1 and three identity codees 2 being superimposed upon its surface, and the edge of this identity code 2 can not exceed the edge of Quick Response Code mark 1.
Wherein, two identity codees in three identity codees to be separately positioned in Quick Response Code mark between adjacent two locating areas.In addition, the interference element of interference effect can be produced when being also provided with visual cue code on the surface of two identity codees, the interference element that interference element is single pattern or the interference element group be made up of the interference element of at least two single patterns, interference element is the one in point coding, lines, numeral and the letter different from identity code generating material.
In the present embodiment, interference element is lines.Wherein, because the coating material forming these lines is different from the coating material forming identity code, therefore, when identifying identity code, the lines as interference element can not impact identity code.
In addition, the another one identity code in three identity codees is then arranged on the position of another locating area, and the edge that one of them edge of this identity code and Quick Response Code identify coincides.
As shown in Figure 5, the present embodiment provides a kind of combined anti-fake of position changeable formula to identify, and comprises Quick Response Code mark 1 and the identity code 2 being superimposed upon its surface, and the edge of this identity code 2 can not exceed the edge of Quick Response Code mark 1.
This identity code 2 is arranged in Quick Response Code mark, the oblique lower position of central point except locating area and Quick Response Code identify on the region between edge.Wherein, this identity code 2 is spliced by four identity code unit 21.
A kind of generation method that the present invention also provides combined anti-fake of position changeable formula to identify, comprises the following steps:
S1, generate in the page in Quick Response Code mark, by extract from ID number storehouse No. ID, parameter information, the cleartext information of Quick Response Code mark, and information to be encrypted or the parameter information of presetting information storage area to be encrypted are converted to Quick Response Code mark;
S2, to generate in the page in identity code mark, generates the identity code that an area is not more than Quick Response Code mark area and identify;
S3, according to inputted location parameter, by identity code mark be arranged on Quick Response Code mark in non-central location on.
As shown in Figure 6, a kind of generation method that the present invention also provides combined anti-fake of position changeable formula to identify, comprises the following steps:
S1, generate in the page in Quick Response Code mark, by extract from ID number storehouse No. ID, parameter information, the cleartext information of Quick Response Code mark, and information to be encrypted is converted to Quick Response Code mark.
In step sl, following sub-step is comprised:
S11, the Quick Response Code mark set up in two-dimension code generator generate in the page, input by No. ID that extracts in ID number storehouse, the Quick Response Code supplemental characteristic, the cleartext information that can be used as the download website information of special Quick Response Code software and the information to be encrypted that identify.
S12, treat enciphered message by cipher mode and be encrypted, to form the ciphertext message be made up of identical one or more characters.
In step s 12, the step that enciphered message is encrypted is treated as follows:
S121, according to implantation have the current display time of the operating system of two-dimension code generator to determine time interval section sequence number;
S122, treat enciphered message cryptographic operation according to time interval section sequence number with selected cipher mode corresponding thereto.
Also need to proceed as follows step before step S12 implements:
00 ~ 59 second is divided into 11 time interval sections, and each time interval section is bound mutually with a kind of cipher mode respectively, once encrypt segment to form 11.
Such as: the 1st encryption segment is bound mutually with des encryption mode, 2nd encryption segment is bound mutually with 3DES cipher mode, 3rd encryption segment is bound mutually with TEA cipher mode, 4th encryption segment is bound mutually with XTEA cipher mode, 5th encryption segment is bound mutually with RC4 cipher mode, 6th encryption segment is bound mutually with PANAMA cipher mode, 7th encryption segment is bound mutually with Twofish cipher mode, 8th encryption segment is bound mutually with CAST-128 cipher mode, 9th encryption segment is bound mutually with CAST-256 cipher mode, 10th encryption segment is bound mutually with md5 encryption mode, 11st encryption segment is bound mutually with enigma cipher mode.
In addition, if also need the ciphertext message to completing first time cryptographic operation to carry out second time cryptographic operation, then after step S122 implements, step S123 is performed:
A kind of cipher mode is called, to carry out second time cryptographic operation to the ciphertext message completing first time cryptographic operation by encryption order pointer.
In step S123, encryption order pointer is at random call and after choosing second time cipher mode, judges whether second time cipher mode is identical cipher mode with cipher mode for the first time;
If judge, second time cipher mode and for the first time cipher mode are as identical cipher mode, then abandon this random call and selection operation, be starting point with current location by encryption order pointer, a mobile pointer position forward or backward, and using the cipher mode of the cipher mode corresponding with current pointer location as second time cryptographic operation.
In step S123, cipher mode comprises des encryption mode, 3DES cipher mode, TEA cipher mode, XTEA cipher mode, RC4 cipher mode, PANAMA cipher mode, Twofish cipher mode, CAST-128 cipher mode, CAST-256 cipher mode, md5 encryption mode and enigma cipher mode.
S13, according to by No. ID that extracts in ID number storehouse, cleartext information and ciphertext message identify to generate the Quick Response Code meeting the supplemental characteristic that Quick Response Code identifies.
In addition, after Quick Response Code mark generates, the region in Quick Response Code mark except three locating areas and its center marks off multiple coordinate grid, and carries out assignment for each coordinate grid.
S2, to generate in the page in identity code mark, according to the identity code mark that in step S1 No. ID generates an area and be not more than Quick Response Code mark area;
In step s 2, following sub-step is comprised:
S21, the identity code mark set up at identity code identification generator generate in the page, input No. ID identical with step S1, the supplemental characteristic that identifies of Quick Response Code, the area parameters of identity code mark, quantity and pattern are set, and the pattern of interference element and quantity.
S22, generate identity code according to the input information in step S21 and configuration information and identify.
In step S22, identity code identification generator is resolved the dimensional data in Quick Response Code identification parameter data, with the area making the area of generated identity code mark be not more than generated Quick Response Code mark.
In addition, if having selected pattern and the quantity of interference element in the step s 21, then the identity code mark surface after generation is provided with selected interference element.
S3, according to generated identity code mark area parameters, select its Quick Response Code mark in location parameter, with by identity code mark be arranged on Quick Response Code mark in non-central location on.
In step s3, selectable position parameter forming position coordinate points, comprises following sub-step:
S31, according to inputted position coordinates point, to mark and the coordinate grid of assignment in Quick Response Code mark to find;
S32, in identity code mark, find its central point, and central point is corresponding with coordinate grid, identity code mark is preset on relevant position that Quick Response Code identifies.
In addition, in step s 32, after on the relevant position that identity code mark is preset in Quick Response Code mark, also need to carry out edge analysis to the edge of Quick Response Code mark, the edge whether identified beyond Quick Response Code with the edge in determination flag code mark.
If result of determination for exceeding, then returning step S31, re-entering position coordinates point, or directly returning step S21, re-enter the area parameters of the identity code mark that will generate;
If result of determination is not for exceed, then generate final combined anti-fake mark pattern.
In generated final combined anti-fake mark pattern, identity code mark is arranged on the non-central location in Quick Response Code mark, comprises following two kinds of situations:
Situation a:
Identity code mark is arranged on the upper side position of central point except locating area except in Quick Response Code mark, lower position, leftward position, right positions, position, oblique upper or oblique lower position;
Situation b:
Identity code is arranged on two locating areas that same level is arranged or the leg-of-mutton center be made up of three locating areas.
As shown in Figure 7, a kind of generation method that the present invention also provides combined anti-fake of position changeable formula to identify, comprises the following steps:
S1, generate in the page in Quick Response Code mark, by extract from ID number storehouse No. ID, parameter information, the cleartext information of Quick Response Code mark, and the parameter information presetting information storage area to be encrypted is converted to Quick Response Code mark.
In step sl, following sub-step is comprised:
S11, to generate in the page in Quick Response Code mark, input by No. ID that extracts in ID number storehouse, the parameter information that identify with the Quick Response Code generated, as the cleartext information of the download website information of special Quick Response Code software and the parameter information of default information storage area to be encrypted;
S12, according in S11 corresponding information generate Quick Response Code mark.
In addition, after Quick Response Code mark generates, the region in Quick Response Code mark except three locating areas and its center marks off multiple coordinate grid, and carries out assignment for each coordinate grid.
S2, to generate in the page in identity code mark, according to the identity code mark that in step S1 No. ID generates an area and be not more than Quick Response Code mark area;
In step s 2, following sub-step is comprised:
S21, the identity code mark set up at identity code identification generator generate in the page, input No. ID identical with step S1, the supplemental characteristic that identifies of Quick Response Code, the area parameters of identity code mark, quantity and pattern are set, and the pattern of interference element and quantity.
S22, generate identity code according to the input information in step S21 and configuration information and identify.
In step S22, identity code identification generator is resolved the dimensional data in Quick Response Code identification parameter data, with the area making the area of generated identity code mark be not more than generated Quick Response Code mark.
In addition, if having selected pattern and the quantity of interference element in the step s 21, then the identity code mark surface after generation is provided with selected interference element.
S3, according to generated identity code mark area parameters, select its Quick Response Code mark in location parameter, with by identity code mark be arranged on Quick Response Code mark in non-central location on.
In step s3, selectable position parameter forming position coordinate points, comprises following sub-step:
S31, according to inputted position coordinates point, to mark and the coordinate grid of assignment in Quick Response Code mark to find;
S32, in identity code mark, find its central point, and central point is corresponding with coordinate grid, identity code mark is preset on relevant position that Quick Response Code identifies.
In addition, in step s 32, after on the relevant position that identity code mark is preset in Quick Response Code mark, also need to carry out edge analysis to the edge of Quick Response Code mark, the edge whether identified beyond Quick Response Code with the edge in determination flag code mark.
If result of determination for exceeding, then returning step S31, re-entering position coordinates point, or directly returning step S21, re-enter the area parameters of the identity code mark that will generate;
If result of determination is not for exceed, then generate final combined anti-fake mark pattern.
In generated final combined anti-fake mark pattern, identity code mark is arranged on the non-central location in Quick Response Code mark, comprises following two kinds of situations:
Situation a:
Identity code mark is arranged on the upper side position of central point except locating area except in Quick Response Code mark, lower position, leftward position, right positions, position, oblique upper or oblique lower position;
Situation b:
Identity code is arranged on two locating areas that same level is arranged or the leg-of-mutton center be made up of three locating areas.
As shown in Figure 8, the generating apparatus that the present invention also provides a kind of combined anti-fake of position changeable formula to identify, comprising:
Quick Response Code identification generator 4, for generating in the page in Quick Response Code mark, by extract from ID number storehouse 5 No. ID, parameter information, the cleartext information of Quick Response Code mark, and information to be encrypted or preset the parameter information of information storage area to be encrypted and be converted to Quick Response Code mark.
Identity code identification generator 6, for generating in the page in identity code mark, according to the identity code mark that in step S1 No. ID generates an area and be not more than Quick Response Code mark area.
Wherein, generate in the page in identity code mark, No. ID identical with step S1, the supplemental characteristic that identify of Quick Response Code can be inputted, area parameters, quantity and pattern that identity code identifies are set, and the pattern of interference element and quantity.
Identity code home position setting apparatus 7, for according to inputted position coordinates point, is arranged on identity code mark on the non-central location in Quick Response Code mark.
Edge analysis module is also comprised at identity code home position setting apparatus 7.After on the relevant position that identity code mark is preset in Quick Response Code mark, also need to carry out edge analysis to the edge of Quick Response Code mark, the edge whether identified beyond Quick Response Code with the edge in determination flag code mark.
If result of determination is for exceeding, then can re-enter position coordinates point, or re-enter the area parameters of the identity code mark that will generate;
If result of determination is not for exceed, then generate final combined anti-fake mark pattern.
Cloud Server 8 receives final combined anti-fake mark pattern, and stores.
Cloud Server, after receiving final combined anti-fake mark pattern, is set up corresponding data and is stored chained list, and is stored in data storage chained list by final combined anti-fake mark pattern.
Only as described above, be only preferred embodiment of the present invention, such as professional who are familiar with this art.After understanding technological means of the present invention, natural energy, according to actual needs, is changed under the teachings of the present invention.Therefore all equal changes of doing according to the present patent application the scope of the claims and modification, once should still remain within the scope of the patent.