Content of the invention
A kind of safe Quick Response Code preparation method, coding/decoding method and safe Quick Response Code mark is provided in the embodiment of the present invention,
Low to solve the problems, such as two-dimension code safe of the prior art.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
A kind of safe Quick Response Code preparation method, methods described includes:
Obtain the data storage areas of Quick Response Code;
In the module of composition Quick Response Code coding in described data storage areas, configure black microdot and its by relative position
The structure of composition, and white microdot and its structure being made up of relative position;
The structure be made up of described black microdot and its relative position, and white microdot and its be made up of relative position
Structure is implanted on the data storage areas of described Quick Response Code, forms safe Quick Response Code.
Preferably, the module of described Quick Response Code coding includes at least one black module and at least one white module;
Described configuration black microdot and its structure that is made up of relative position, and white microdot and its be made up of relative position
Structure, including:
Described white microdot and its structure being made up of relative position are configured on each described black module, and, every
The structure configuring described black microdot and its being made up of relative position in individual described white module, wherein, described white microdot
Size is less than the size of described black module, and the size of described black microdot is less than the size of described white module.
Preferably, described white microdot and its structure being made up of relative position are configured on each described black module,
With, described black microdot and its structure being made up of relative position are configured on each described white module, including:
Obtain implantation information, wherein, described implantation information includes third dimension text message;
Described implantation information is converted to third dimension implantation information coding;
Choose described third dimension implantation information coding, the structure be made up of with black microdot and its relative position, and white
Microdot and its mapping ruler corresponding to structure being made up of relative position;
Described white microdot is configured and its by relative position group in each described black module according to described mapping ruler
The structure becoming, and, described black microdot and its structure being made up of relative position are configured on each described white module.
Preferably, also include after described implantation information being converted to third dimension implantation information coding:
Described third dimension implantation information coding is encrypted;
Choose and implant the corresponding mapping ruler of information coding with the third dimension after described encryption;
The mapping ruler corresponding to information coding is implanted with the third dimension after encryption described in storage.
Preferably, the described data storage areas obtaining Quick Response Code include:
Obtain the coding rule of any one Quick Response Code;
Obtain the data storage areas of this Quick Response Code according to the coding rule of described Quick Response Code, wherein, described data storage
Region is used for storing user data.
A kind of safe Quick Response Code coding/decoding method, methods described includes:
Safe Quick Response Code is carried out separate, obtain and the black microdot corresponding to described safe Quick Response Code and its by relative position
Put the structure of composition, and white microdot and its structure being made up of relative position;
The structure be made up of to described black microdot and its relative position, and described white microdot and its by relative position group
The structure becoming is parsed, and obtains mapping ruler;
According to described mapping ruler by described black microdot and its structure that is made up of relative position, and white microdot and its
Third dimension implantation information coding is converted to by the structure that relative position forms;
Information coding is implanted according to the described third dimension and obtains the third dimension literary composition implanted with this third dimension corresponding to information coding
This information.
Preferably, obtain the third dimension text message implanted corresponding to information coding with this third dimension to include:
Described third dimension implantation information coding is verified, rejects mistake, or reduction is compensated to missing information,
Generate third dimension implantation message code;
Parse described third dimension implantation message code, obtain described third dimension text message.
Preferably, methods described also includes:
Judge whether a Quick Response Code is safe Quick Response Code;
If carrying out to described Quick Response Code separating, can obtain and the black microdot corresponding to described Quick Response Code and its by phase
Structure to position composition, and white microdot and its structure being made up of relative position, and meet mapping ruler, then this two dimension
Code is safe Quick Response Code.
Preferably, methods described also includes:
Judge whether described safe Quick Response Code is true;
If the information phase of described third dimension text message and the ordinary two dimensional code separated from described safe Quick Response Code
Coupling, then described safe Quick Response Code is true;Otherwise, described safe Quick Response Code is false.
A kind of safe Quick Response Code mark, described safe Quick Response Code mark includes:Safe Quick Response Code and printing mark, wherein,
Described safe Quick Response Code is printed on described printing mark.
From above technical scheme, a kind of safe Quick Response Code preparation method provided in an embodiment of the present invention, common
Configuration black, white microdot and its structure being made up of relative position on the data storage areas of Quick Response Code, and by these microdots
And its structure is implanted on the data storage areas of Quick Response Code, form safe Quick Response Code.This safe Quick Response Code modulates information,
In Image Coding, printout and IMAQ, information demodulation information extraction, the modulation of Application of composite present information and letter
Breath coding, information security and the multinomial advanced technology such as digital code anti-false, halftoning vector screening are it is achieved that Quick Response Code memory space
Dimension extends, and completely compatible original ordinary two dimensional code, solves ordinary two dimensional code and does not have security and anti-copying etc. and lacks
Fall into, can be widely applied to intellectual property protection, article authentication, false proof that much information service system such as trace to the source.
Additionally, present invention also offers a kind of safe Quick Response Code coding/decoding method, by conciliating to the separation of safe Quick Response Code
Analysis, is obtained the third dimension text message of its representative, and then is judged the true and false of safe Quick Response Code by this third dimension text message.By
Contain third dimension text message in safe Quick Response Code, text information is to be translated by special third dimension implantation information coding
Become, therefore, will not obtain, because of the mode such as duplication or scanning, the third dimension text message that safe Quick Response Code is hidden, and then compare
The security of ordinary two dimensional code and antifalsification are higher.
Present invention also offers a kind of safe Quick Response Code mark, by having the safe Quick Response Code of implantation message identification
It is arranged on printing mark, form safe Quick Response Code mark so that this safe Quick Response Code mark can be pasted or be applied many
Plant in information service system.Additionally, unique mark or the trade mark of user also can be added on this safe Quick Response Code mark, enter one
Improve to step application and the antifalsification of safe Quick Response Code.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, real below in conjunction with the present invention
Apply the accompanying drawing in example, the enforcement it is clear that described is clearly and completely described to the technical scheme in the embodiment of the present invention
Example is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of not making creative work, all should belong to present invention protection
Scope.
Below in conjunction with Fig. 1 to Fig. 8 to a kind of safe Quick Response Code preparation method provided in an embodiment of the present invention, coding/decoding method
And safe Quick Response Code mark is specifically described.
Referring to Fig. 1, it is a kind of flow chart of safe Quick Response Code preparation method provided in an embodiment of the present invention, concrete the method
Including:
Step S110:Obtain the data storage areas of Quick Response Code.
Wherein, the data storage areas obtaining Quick Response Code are specially:First obtain the Quick Response Code of any one, according to this two dimension
The coding rule of code obtains the data storage areas of this Quick Response Code, such as by the specification lookup to Quick Response Code, or pass through
Scanning device scanning obtains the coding rule of this Quick Response Code.Wherein, described data storage areas are except location information, system information
User data storage region in addition.Taking QR code as a example, region beyond 3 postings, version information and format information, use
In the region of storage user data, these regions are data storage areas.
Wherein, represent a coding in described every group white microdot or black microdot and its structure, all described whites are micro-
The code set of point or black microdot and its structure represents implantation information.
Step S120:In described data storage areas composition Quick Response Code coding module on, configuration black microdot and its
The structure being made up of relative position, and white microdot and its structure being made up of relative position.
Normally, size identical little module is regularly arranged forms by several for Quick Response Code, and each lattice
Gray scale is different, presents two kinds of colors of black and white.At least one black module is included in the module of described Quick Response Code coding
With at least one white module;
Step S120 specifically includes:Described white microdot is configured on each described black module and its by relative position group
The structure becoming, and, described black microdot and its structure being made up of relative position are configured on each described white module, its
In, the size of described white microdot is less than the size of described black module, and the size of described black microdot is less than described white mould
The size of block.
In the module of composition Quick Response Code coding in described data storage areas, configuration or embedding on the position of black little module
Enter the white microdot with certain structure distribution, that is, configure white microdot and its structure being made up of white microdot, and, in white
Configure on the position of little module or the embedded black microdot with certain structure distribution, that is, configure black microdot and its have black micro-
The structure of point composition.
Microdot on several wherein adjacent little modules forms a coding unit, and this coding unit represents the letter of implantation
Breath, and, in coding unit, the quantity of microdot and position can assume various permutation and combination, every kind of permutation and combination, can represent one
Basic symbol, such as numeral, character etc., a series of units then can represent a character string or information.
Additionally, the present invention is in described other codings except configuration or embedded black and white microdot and structure on Free Region, example
As, symbol, the mark such as geometry falls within the range of the present invention protected.
Step S130:The structure be made up of described black microdot and its relative position, with white microdot and its by relative
The structure of position composition is implanted on the data storage areas of described Quick Response Code, forms safe Quick Response Code.
Specifically, by orthogonal (or halftoning) modulation technique, and I, Q orthogonal modulation technique, image in 2 D code is carried out
Halftoning orthogonal vector is modulated, and realizes modulates information and vast capacity modulates information.Implantable in ordinary two dimensional code be equivalent to
The data of its 10 to 1000 times of two-dimensional code data total amount, to form safe Quick Response Code, as shown in Figure 7.
As shown in Fig. 2 in a preferred embodiment, in above-mentioned steps S120:Group in described data storage areas
Become in the module of Quick Response Code coding, configuration black microdot and its structure that is made up of relative position, and white microdot and its by phase
The structure of position composition is specifically included:
Step S121:Obtain implantation information, wherein, described implantation information is third dimension text message.This third dimension text
Data storage areas in the corresponding ordinary two dimensional code of information or third dimension information space, this third dimension text message can record two
The identity informations such as the fingerprint of dimension code publisher, watermark, the information that ordinary two dimensional code is issued carries out authenticity annotation, stops him
People copies, so that ordinary two dimensional code becomes safe Quick Response Code.
Step S122:Described implantation information is converted to third dimension implantation information coding.Being typically implanted message identification is literary composition
Word or character string, this word or character string are converted to the message code of N number of 1 or 0 expression, so that this implantation information is planted
Enter or be embedded in ordinary two dimensional code.
Step S123:Choose described third dimension implantation information coding, the knot be made up of with black microdot and its relative position
Structure, and white microdot and its mapping ruler corresponding to structure being made up of relative position.
For example, the coding table of comparisons stores multigroup black microdot and its structure being made up of black microdot, and, white
Microdot and the structure being made up of white microdot.Every kind of mapping ruler represents the quantity of one group of white microdot and its by white microdot
The structure of distribution composition, and black microdot quantity and its by the black microdot structure that forms of distribution.
For ensureing the uniqueness of safe Quick Response Code, in the safe Quick Response Code generating every time, black microdot and white microdot are little
In module, mapping ruler respectively and quantity are different from, but in same safe Quick Response Code, in all little modules, black is micro-
The distribution rule of point and quantity are identicals, and the corresponding all white microdots and its structure being made up of white microdot, in little mould
In block, rule respectively and quantity are also identical.
Step S124:Described white microdot is configured and its by phase in each described black module according to described mapping ruler
Structure to position composition, and, described black microdot is configured on each described white module and its is made up of relative position
Structure.In step S123, choose the current black microdot in the little module in data storage areas, and the reflecting of white microdot
After penetrating rule and quantity, black microdot and white microdot are respectively configured or are implanted on each self-corresponding little module.Now,
Complete black microdot to be implanted and the making of white microdot.Afterwards, execute abovementioned steps S130, by black microdot and its by
The structure of relative position composition, and white microdot and its structure being made up of relative position be implanted to the data of described Quick Response Code and deposit
Step on storage area domain, to form safe Quick Response Code.
Additionally, being security and the antifalsification being further ensured that implantation information, in above-mentioned steps S122:By described implantation letter
Breath also includes after being converted to third dimension implantation information coding:
Step S1221:Described third dimension implantation information coding is encrypted.For example, by special algorithm pair
Third dimension implantation information coding is encrypted.It should be noted that generally, third dimension space encoding is typically unjust
Open, therefore can carry out multi-enciphering, and then can achieve the information privacy under naked state and safety.
Step S1222:Choose and implant the corresponding mapping ruler of information coding with the third dimension after described encryption.Can be concrete
Ground, can be chosen by computer random, or be manually set the mapping ruler of current safety Quick Response Code, and according to this locating rule
Third dimension implantation information coding after encryption is carried out black color dots position and the configuration of white point position, that is, chooses one group of black microdot
Quantity and the structure being made up of these black microdots, and the quantity of white microdot and the knot being made up of these white microdots
Structure.
Step S1223:Implant corresponding to information coding with the third dimension after encryption described in computer or system storage
Mapping ruler, in order to searching or parsing the third dimension implantation information coding of current safety Quick Response Code, to obtain implantation information.
In the present embodiment, it is encrypted by the third dimension is implanted with information coding, increased implantation information coding
Complexity, further increases deciphering or the difficulty of decoding information coding, improves antifalsification and the security of safe Quick Response Code.
Additionally, in above-mentioned steps S120:In the module of Quick Response Code coding, configure black microdot and its have relative position
The structure of composition, and white microdot and its be made up of relative position structure when, also include:The implantation information of pre- implantation is carried out
Redundancy is processed.
It is specially:According to the black microdot of described selection, white microdot mapping ruler on described data storage areas
Configuration least one set third dimension information coding, wherein, each group of third dimension information coding by a series of black microdot or
White microdot and its structure being made up of relative position are constituted.Due to ordinary two dimensional code free space (data storage areas) relatively
Many, therefore, it can using methods such as verification, compensation on free space, to prevent single one group of implantation message identification from making
Or during editor, mistake occurs, or there is error, lead to not identify or read the implantation message identification of safe Quick Response Code.
Therefore, the free space of ordinary two dimensional code arranges redundancy, prevent single implantation message identification None- identified, and affect to pacify
The identification of full Quick Response Code and use.
A kind of safe Quick Response Code preparation method provided in an embodiment of the present invention, in the data storage areas of common Quick Response Code
Upper configuration black, white microdot and its structure being made up of relative position, and these microdots and its structure are implanted to Quick Response Code
Data storage areas on, formed safe Quick Response Code.This safe Quick Response Code modulates information, Image Coding, printout with
And in IMAQ, information demodulation information extraction, the modulation of Application of composite present information and information coding, information security and number
The multinomial advanced technologies such as false proof, the halftoning vector screening of code are it is achieved that the dimension of Quick Response Code memory space extends and completely compatible
Original ordinary two dimensional code, solves ordinary two dimensional code and does not have the defect such as security and anti-copying, can be widely applied to knowledge
Property right protection, article authentication, false proof that much information service system such as trace to the source.
In a specific embodiment, as shown in figure 3, being another safety two dimension code system provided in an embodiment of the present invention
The flow chart making method.The method is specially:
Step 201:The text message of Quick Response Code is embedded in ordinary two dimensional code () taking QR code as a example, generates ordinary two dimensional
Code figure (step 202).
Step 101:Select the pre- third dimension text message implanting ordinary two dimensional code, for example, this third dimension text message
Content is:" Industrial and Commercial Bank of China ".Step 102:Parameter configuration device in system or processor select or one ginseng of configuration
Count in third dimension text message, the 3rd text message conversion is generated third dimension information coding (step 103), for example, configuration
Configuration parameter to described third dimension text message is " 1 ", and described " Industrial and Commercial Bank of China " corresponding character is respectively
" ABCDEF ", then the third dimension information generating is encoded to " 1;ABCDEF”.Step 104 is compiled to the third dimension information in step 103
Code carries out cipher key, that is, select one or more encryption rules to " 1;ABCDEF " is encrypted, the letter generating after encryption
Cease for " 2UVWXYZ " (step 105);Then, execution step 106 character code conversion, for example, according to certain rule, " 2, U, V,
W, X, Y, Z " is corresponding respectively to be " 01,000,001,010,011,100,101,110 " with binary coding, then by " 2UVWXYZ "
The expression formula being converted to the binary numeral only comprising 0 or 1 is " 01000001010011100101110 ".Step 107, to step
The character code generating in rapid 106 carries out information Error Control, that is, check whether binary expression formula is correct.If after conversion
Binary number value expression correct, then execution step 108, configure mapping ruler;Otherwise re-execute step 106.In system
Processor choose the mapping ruler of configuration, that is, the black color dots position of the quantity of black color dots position and current quantity is on little module
Distribution rule, and the quantity of white point position and the white point position of current quantity, after the distribution rule on little module, will join
The black and white microdot put and its structure being made up of relative position are implanted to Quick Response Code coding in data storage areas
On little module, i.e. step 109:Frame address of cache.Wherein, step 109 is included at least one binary numeral table
Reach formula " 01000001010011100101110 " to be replicated by black microdot and white microdot mapping ruler, and do redundancy
Process.
Step 301:The frame address that the ordinary two dimensional code figure generating in step 202 and step 109 are generated is reflected
Penetrate through halftone dot modulation, using I, Q orthogonal modulation technique, image in 2 D code carried out with halftoning orthogonal vector modulation,
Generate safe Quick Response Code (step 302).That is, comprise the implicit encryption letter of " Industrial and Commercial Bank of China " in this safe Quick Response Code of generation
Breath.
The present embodiment in Quick Response Code planar range, outside Quick Response Code normally represents symbol ability, using Quick Response Code
Micro-space, in addition opens new free memory, i.e. the Free Region of Quick Response Code, and will implant identification information, such as produces
Product coding, network access address etc. are implanted in this free memory, realize the extension to ordinary two dimensional code storage capacity, shape
Become third dimension memory space, compared with for ordinary two dimensional code, improve antifalsification and security.Additionally, this safe Quick Response Code due to
It is to enter edlin and configuration information in idle third dimension memory space, therefore, do not affect the recognition of former ordinary two dimensional code information.
Invention additionally discloses a kind of safe Quick Response Code coding/decoding method, corresponding to the safe Quick Response Code of one of previous embodiment
Preparation method, as shown in figure 4, described coding/decoding method includes:
Step S210:Safe Quick Response Code is carried out separate, obtain with the black microdot corresponding to described safe Quick Response Code and
Its structure being made up of relative position, and white microdot and its structure being made up of relative position.
Wherein, separate safe Quick Response Code and obtain ordinary two dimensional code, several black microdots and its by these black microdot groups
The structure becoming, and several white microdots and its structure being made up of these white microdots.Described step S210 is swept by equipment
Retouch safe Quick Response Code, differentiate that scheduling algorithm carries out separating using certain position and image definition, realize safe Quick Response Code microdot and divide
Resolution collection, image rectification and information extraction, information demodulation, information inspection error correction and information decryption processing.This step and aforementioned reality
Apply step S130 implantation black microdot in example, white microdot and its reciprocal by the consitutional operation of relative position.
Step S220:The structure be made up of to described black microdot and its relative position, and described white microdot and its by
The structure of relative position composition is parsed, and obtains mapping ruler.According to detached black microdot, the quantity of white microdot and point
Bit distribution rule, screens the mapping ruler corresponding with it, corresponding step S123 with previous embodiment of this step S220.
Step S230:According to the mapping ruler being parsed by described black microdot and its structure that is made up of relative position,
The structure be made up of with white microdot and its relative position is converted to third dimension implantation information coding.By parsing black, white
The mapping ruler of point position, the black microdot in safe Quick Response Code or white microdot are converted to third dimension implantation information coding, its
Described in the third dimension implant information coding by a string black microdot or white microdot and its structure that is made up of relative position by
Combine according to certain mapping ruler, and described third dimension implantation information coding is represented by a basic symbol, such as digital,
Character etc., or represent character string etc..
Step S240:Implant information coding acquisition according to the described third dimension to implant corresponding to information coding with this third dimension
Third dimension text message.
Translate described third dimension implantation information coding and obtain third dimension text message, obtain the implantation information of user.Respectively
Translate each described character string, obtain and the third dimension text message corresponding to each character string described.Wherein, reflected by address
Penetrate Static-state Space vector algorithm, arrange and quote version information and cipher key index information, realize to third dimension spatial information
Correct acquisition, parsing and the meaning of one's words understand.
The present embodiment achieves the decoding to safe Quick Response Code by step S210 to step S240, obtains safe Quick Response Code
In third dimension text message or implantation information, and can be by by the third dimension text message of deciphering and the literary composition pre-setting
This information is compared, and to judge whether the information source of this safe Quick Response Code is identical with implantation text message, if two groups of phases
With, then explanation is same information source, and then corresponding to the article of this safe Quick Response Code or information security, more common two
Dimension code is safer and reliable.
In above-mentioned steps S240, as shown in figure 5, in step S240, information coding being implanted according to the described third dimension and obtains
Implant the corresponding third dimension text message of information coding with this third dimension to include:
Step S241:Described third dimension implantation information coding is verified, rejects mistake, or missing information is carried out
Compensate reduction, generate third dimension implantation message code, to guarantee this third dimension implantation information password correctly parsing
Corresponding third dimension text message.Usually, can be verified by computer program or detect third dimension implantation information coding
Whether correct, and detect whether third dimension implantation message code lacks, or omit.
Step S242:Parse described third dimension implantation message code, obtain described third dimension text message.
Additionally, also including in step S241:Judge whether the length of the third dimension implantation message code of current parsing surpasses
Cross preset length, wherein, described preset length implants the code length of information for user.If the third dimension implantation of current parsing
The length of message code exceedes code implant length, resolves into two or more characters to this third dimension implantation message code
String.Usually, the third dimension implantation information coding being parsed by mapping ruler is longer, and the information of expression is more, directly parses meeting
The consuming time, and easily malfunction, therefore, first third dimension implantation message code is carried out segmentation fractionation.Wherein, can be according to implantation
The length of message code is split, and such as code implant length is 8, and the code more than 8 for the length is carried out according to every 8 one group
Split, to improve efficiency and the accuracy of parsing coding.
In another preferred embodiment, methods described can also be used to check whether the Quick Response Code being decoded is safety
Quick Response Code.Specifically step includes:
Step S211:One Quick Response Code is obtained by specific scanning device.
Step S212:Whether the Quick Response Code judging described acquisition is safe Quick Response Code;Judge in scanned Quick Response Code
A common Quick Response Code, black microdot and its structure being made up of relative position whether can be isolated, and white microdot and
Its structure being made up of relative position, and whether met pre- by the structure parsing these microdots and its be made up of relative position
If mapping ruler.
If carrying out to described Quick Response Code separating, can obtain and the black microdot corresponding to described Quick Response Code and its by phase
Structure to position composition, and white microdot and its structure being made up of relative position, and meet mapping ruler, then this two dimension
Code is safe Quick Response Code.Continue executing with step S210 to step S230.Otherwise, this Quick Response Code is non-security Quick Response Code.
Additionally, also including after step S240:Judge whether described safe Quick Response Code is true.
It is specially:Judge the third dimension text message parsing and the ordinary two dimensional separated from described safe Quick Response Code
Whether the information of code matches, and that is, whether third dimension text message is identical with the information being previously implanted, if the described third dimension is civilian
This information is identical with implantation information in advance, then prove that described third dimension text message is identical with the issue object of implantation information.
For example, the third dimension text message obtaining in safe Quick Response Code is " Industrial and Commercial Bank of China ", and implanting text message is " China
Agricultural bank ", the content of text messages that both understand is different, and therefore, this interpreted safe Quick Response Code is false.If two groups of solutions
The text message read is identical, then illustrate that the safe Quick Response Code of this scanning is true.
A kind of safe Quick Response Code coding/decoding method that the present embodiment provides, by the separation of safe Quick Response Code and parsing, obtaining
The third dimension text message representing to it, and then the true and false of safe Quick Response Code is judged by this third dimension text message.Due to peace
Third dimension text message is contained, text information is to be translated into by special third dimension implantation information coding in full Quick Response Code, because
This, will not obtain, because of the mode such as duplication or scanning, the third dimension text message that safe Quick Response Code is hidden, and then than common
The security of Quick Response Code and antifalsification are higher.
In a specific embodiment, as shown in fig. 6, the tool of a kind of safe Quick Response Code decoding providing for the present embodiment
Body flow chart, corresponding to the safe Quick Response Code Making programme of accompanying drawing 3, the comprising the following steps that of decoding:
Step 3001:Obtain a safe Quick Response Code, wherein, in addition it is also necessary to first sentence before obtaining any one Quick Response Code
Whether this Quick Response Code disconnected is safe Quick Response Code, specially:By being capable of identify that the equipment of safe Quick Response Code to any one Quick Response Code
It is scanned, if can obtain that in the data storage areas of detected Quick Response Code there is certain mapping ruler after scanning
Black microdot, white microdot and its structure being made up of relative position, and the mapping ruler being parsed belongs in database and deposits
One kind of multiple mapping rulers of storage, then prove that the Quick Response Code of this detection is safe Quick Response Code.Then this safe Quick Response Code is entered
Row separates and parses, and obtains a common Quick Response Code 2001, and carries black color dots position, the graphical information of white point bit distribution.
Step 2002:Ordinary two dimensional code is parsed, obtains the Quick Response Code text message on ordinary two dimensional code, specifically may be used
By mobile phone A PP, the equipment such as scanner obtains this Quick Response Code text message.
Step 1001:Obtain by the configuration parameter of detached safe two-dimension code pattern.Wherein, described configuration parameter refers to two
Black microdot and the distribution rule corresponding to white microdot in each little module of dimension code, these distribution rules can be by configuring ginseng
Number obtains, and therefore, the distribution rule corresponding to black-white point is found in distribution, and quantity is so as to obtain frame address
Mapping (step 1002), is generated the step 109 in safe Quick Response Code, is reflected by address in this step correspondence and an aforementioned embodiment
Penetrate and can obtain a series of coded strings being made up of binary code 1/0, the coded strings that for example this obtains after step 1002 are
" 01000001010011100101110 ", then execution step 1003, information Error Control, i.e. volume in checking procedure 1002
Whether sequence is correct, specifically can judge whether coded strings are wrong by way of comparing or calculating, if inspection is errorless,
Execution step 1004;Otherwise, jump to step 1001, again parse safe Quick Response Code.Step 1004:Code character is changed, that is,
Coded strings are converted into character string, for example, coded strings " 01000001010011100101110 " are converted into " 2UVWXYZ " word
Symbol string.It should be noted that under normal circumstances, for ensureing the information security hidden in safe Quick Response Code, typically making safety
In Quick Response Code, can be encrypted to each character string, therefore, before the content to character string parses, first will be to this word
Symbol string is decrypted, i.e. step 1005:Obtain cipher key.Because different coded strings correspond to different AESs, therefore,
Need the index finding encryption could decode.Step 1006, is decoded to character string after finding cipher key index.For example, right
Generating new character string after character string " 2UVWXYZ " deciphering is " 1ABCDEF " it is preferred that can be several in described character string
Word, letter, symbol or above several combination.Step 1007:Decompose third dimension information.Wherein said third dimension information refers to
It is stored in the character string on the free space of ordinary two dimensional code, or message identification.Normally, due to letter that character string is to be carried
Breath is more, so the character string after deciphering typically all can be very long.For example, described new character string " 1ABCDEF " is decomposed into
" 1 " and " ABCDEF ", concrete decomposition rule can designed, designed as needed.Step 1008:Understand every group of character string after decomposing
Implication, obtain third dimension text message.For example, in the present embodiment the implication that " ABCDEF " represents is " the industrial and commercial silver of China
OK ", " 1 " represents this bank's sequence number.User can by understanding third dimension text message out, that is, the Industrial and Commercial Bank of China with
And its sequence number, and then judge the information that this safe Quick Response Code is carried, or the true and false of commodity, so more common Quick Response Code and
Speech, the security of this safe Quick Response Code and antifalsification are higher.
A kind of safe Quick Response Code mark, is applied to a kind of safe Quick Response Code preparation method of previous embodiment, as Fig. 8 institute
Show, this safe Quick Response Code mark includes:Safe Quick Response Code and printing mark, wherein, described safe Quick Response Code is printed on described print
In brush mark.
Present invention also offers a kind of safe Quick Response Code mark, by having the safe Quick Response Code of implantation message identification
It is arranged on printing mark, form safe Quick Response Code mark so that this safe Quick Response Code mark can be pasted or be applied many
Plant in information service system.Additionally, unique mark or the trade mark of user also can be added on this safe Quick Response Code mark, enter one
Improve to step application and the antifalsification of safe Quick Response Code.
Additionally, a kind of safe Quick Response Code preparation method, coding/decoding method and safe Quick Response Code mark that the present invention provides also have
There is following beneficial effect:
1st, safety, anti-copying, false proof anti-channeling, attack resistance.
2nd, can achieve offline discriminating, there is non repudiation.
3rd, safe multidimensional code can be generated based on any Quick Response Code, such as DM, PDF417 etc..
4th, it is widely used, safe Quick Response Code provided in an embodiment of the present invention or safe Quick Response Code mark can be directly in electronics
Use, for recording circulation and transfer of goods information etc. under version form." one yard of multiple-effect " facilitates design and the realization of marketing program, additionally,
Code can also be expanded and do false proof link of tracing to the source.
5th, RFID identification function can be simulated.Coding can be expanded using ordinary two dimensional code as product coding as chip coding.
6th, change the traditional discriminant approach of digital code anti-false inquiry, not to inquire about first as differentiating true and false foundation, to expand
Coding information differentiates true and false, it is to avoid fake products true code head looks into as really embarrassment.Additionally, the present embodiment is provided in safe Quick Response Code mark
Safe Quick Response Code be not required to cover, be also not required to scrape checking off.
7th, entrance link is convenient:If consumer-user scans multidimensional code, it is directly entered marketing link;If manager
Scanning input multidimensional code, then be directly entered management link, and then can reduce marketing management cost, reduce marketing management personnel and
Time puts into
8th, " one yard of multiple-effect " saves mark area, alternative uncovering label, reduces mark cost, can arbitrary number of times look into
Ask, do not affect true and false property and judge.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row
The comprising of his property, so that including a series of process of key elements, method, article or equipment not only include those key elements, and
And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or equipment institute
Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including institute
Also there is other identical element in process, method, article or the equipment of stating key element.
The above is only the specific embodiment of the present invention, makes skilled artisans appreciate that or realizing this
Bright.Multiple modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase one
The scope the widest causing.