CN105490992A - Method, device and system for verifying two-dimension codes - Google Patents
Method, device and system for verifying two-dimension codes Download PDFInfo
- Publication number
- CN105490992A CN105490992A CN201410483734.XA CN201410483734A CN105490992A CN 105490992 A CN105490992 A CN 105490992A CN 201410483734 A CN201410483734 A CN 201410483734A CN 105490992 A CN105490992 A CN 105490992A
- Authority
- CN
- China
- Prior art keywords
- angle
- quick response
- response code
- scanning angle
- scanning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method, a device and a system for verifying two-dimension codes. The method comprises the steps of scanning the two-dimension code generated by a verified terminal, wherein the two-dimension code comprises a positioning pattern; determining the scanning angle of the two-dimension code according to the positioning pattern of the two-dimension code; and then sending the scanning angle of the two-dimension code to a server, and thereby allowing the server to verify the validity of operation of scanning the two-dimension code according to the scanning angle. According to the method provided by the invention, the security of verification of the two-dimension code can be improved, and the security of the two-dimension code information can be protected.
Description
Technical field
The present invention relates to communication technical field, be specifically related to a kind of verification method of Quick Response Code, device and system.
Background technology
Popular along with intelligent terminal, Quick Response Code (Two-dimensionalcode) also gradually buds out into popularity, Quick Response Code, also known as two-dimensional bar code, it is with specific geometric figure according to certain rules at the chequered with black and white figure of the upper distribution of plane (two-dimensional directional), is a key of all information datas.For the ease of the order of location Quick Response Code coding, in Quick Response Code, generally there are three positioning patterns, lay respectively on three drift angles of Quick Response Code.
In the prior art, generally generate Quick Response Code by being verified terminal, verification terminal scans the Quick Response Code of this generation, then by verification terminal according to the positioning pattern in Quick Response Code, location Quick Response Code coded sequence, to understand 2 D code information.
To in the research and practice process of prior art, the present inventor finds, the verification method fail safe of existing Quick Response Code reduces, and is unfavorable for the safety of 2 D code information.
Summary of the invention
The embodiment of the present invention provides a kind of verification method of Quick Response Code, device and system, can improve the fail safe of Quick Response Code checking, the safety of protection 2 D code information.
The embodiment of the present invention improves a kind of verification method of Quick Response Code, comprising:
Scanning is verified the Quick Response Code that terminal generates, and described Quick Response Code comprises positioning pattern;
The scanning angle of described Quick Response Code is determined according to the positioning pattern of described Quick Response Code;
Send the scanning angle of described Quick Response Code to server, so that described server is verified according to the legitimacy of described scanning angle to Quick Response Code scan operation.
The embodiment of the present invention also provides a kind of terminal, comprises scanning element, determining unit and processing unit, as follows:
Described scanning element, for scanning the Quick Response Code being verified terminal and generating, described Quick Response Code comprises positioning pattern;
Described determining unit, for determining the scanning angle of described Quick Response Code according to the positioning pattern of described Quick Response Code;
Described processing unit, for sending the scanning angle of described Quick Response Code to server, so that described server is verified according to the legitimacy of described scanning angle to Quick Response Code scan operation.
A verification system for Quick Response Code, comprises any one terminal that the embodiment of the present invention provides.
The embodiment of the present invention adopts scanning to be verified the Quick Response Code of terminal generation, wherein, this Quick Response Code comprises positioning pattern, the scanning angle of this Quick Response Code is determined according to the positioning pattern of this Quick Response Code, then the scanning angle of this Quick Response Code is sent to server, so that this server is verified according to the legitimacy of this scanning angle to Quick Response Code scan operation; Due in this scenario; verification terminal is when scanning is verified the Quick Response Code of terminal; need checking scanning angle just can get 2 D code information; therefore; relative in prior art directly scanning with for the scheme obtaining 2 D code information; the fail safe of Quick Response Code checking can be improved, the safety of protection 2 D code information.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 a is the flow chart of the verification method of the Quick Response Code that the embodiment of the present invention provides;
Fig. 1 b is the schematic diagram of scanning angle in the embodiment of the present invention;
Fig. 1 c is another schematic diagram of scanning angle in the embodiment of the present invention;
Fig. 2 a is the verification method scene schematic diagram of the Quick Response Code that the embodiment of the present invention provides;
Fig. 2 b is the flow chart of the verification method of the Quick Response Code that the embodiment of the present invention provides;
Fig. 2 c is the confirmation scene schematic diagram of scanning angle in the embodiment of the present invention;
Fig. 3 a is the structural representation of the terminal that the embodiment of the present invention provides;
Fig. 3 b is another structural representation of the terminal that the embodiment of the present invention provides;
Fig. 4 is the another structural representation of the terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of verification method of Quick Response Code, device and system.Below be described in detail respectively.
Embodiment one,
Angle from verification terminal is described by the present embodiment, and this verification terminal is specifically as follows the equipment such as smart mobile phone or panel computer.
A verification method for Quick Response Code, comprising: scanning is verified the Quick Response Code that terminal generates, and wherein, this Quick Response Code comprises positioning pattern; The scanning angle of this Quick Response Code is determined according to the positioning pattern of this Quick Response Code; Send the scanning angle of this Quick Response Code to server, so that this server is verified according to the legitimacy of this scanning angle to Quick Response Code scan operation.
As shown in Figure 1a, the idiographic flow of the verification method of this Quick Response Code can be as follows:
101, scanning is verified the Quick Response Code that terminal generates, and wherein, this Quick Response Code comprises positioning pattern.
It should be noted that, for the ease of the order of location Quick Response Code coding, in Quick Response Code, generally to there are three positioning patterns, lay respectively on three drift angles of Quick Response Code.
102, the scanning angle of this Quick Response Code is determined according to the positioning pattern of this Quick Response Code.
Wherein, the determination mode of the scanning angle of Quick Response Code can have multiple, specifically can arrange according to the demand of practical application, such as, and specifically can any one mode as follows:
(1) first kind of way;
As shown in Figure 1 b, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marking other angles is successively respectively angle 1, angle 2 and angle 3 clockwise, determine the central point line of the positioning pattern at angle 1 and the positioning pattern at angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determine the scanning angle of this Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, see " ∠ a " in Fig. 1 b, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code, see " ∠ b " in Fig. 1 b, namely step " determine the scanning angle of this Quick Response Code according to the size of this angle " specifically can be as follows:
Determine that the acute angle in this angle is the scanning angle of this Quick Response Code; Or;
Determine that the obtuse angle in this angle is the scanning angle of this Quick Response Code.
(2) second way;
As illustrated in figure 1 c, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marking other angles is successively respectively angle 1, angle 2 and angle 3 clockwise, determine the central point line of the positioning pattern at angle 2 and the positioning pattern at angle 3, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3, determine the scanning angle of described Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code see " the ∠ c " in Fig. 1 c, " determining the scanning angle of this Quick Response Code according to the size of this angle " see " ∠ d " the i.e. step in Fig. 1 c specifically can be as follows:
Determine that the acute angle in this angle is the scanning angle of this Quick Response Code; Or;
Determine that the obtuse angle in this angle is the scanning angle of this Quick Response Code.
Certainly, other can also be had to determine the method for Quick Response Code scanning angle, no longer enumerate at this.
It should be noted that, above-mentioned each bar central point line, horizontal line and horizontal line vertical line etc. are all in the same plane with Quick Response Code, after this repeat no more.
103, the scanning angle of this Quick Response Code is sent to server, so that this server is verified according to the legitimacy of this scanning angle to Quick Response Code scan operation, such as, specifically can be as follows:
(1) generating validation problem according to this scanning angle, this validation problem is sent to server, so that this server is when receiving the Quick Response Code checking request of carrying Validation Answer Key, can verify this checking request according to this validation problem.
That is, server is after the validation problem receiving this generation, just this validation problem can be preserved, like this, if follow-up server receives the Quick Response Code checking request about this Quick Response Code, just can verify the Validation Answer Key carried in Quick Response Code checking request according to the validation problem of this preservation, if be verified, then allow to obtain 2 D code information corresponding to this Quick Response Code, if checking is not passed through, then do not allow to obtain 2 D code information corresponding to this Quick Response Code, thus ensure the safety of 2 D code information.
Optionally, in order to improve its flexibility, before generating validation problem according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate validation problem according to this scanning angle.
Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then without the need to generating validation problem, and/or, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using the foundation of revised scanning angle as generation validation problem, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating validation problem, namely " scanning angle of this Quick Response Code is shown in step, confirm for user " after, the verification method of this Quick Response Code can also comprise:
Receive the correction value of the scanning angle about this Quick Response Code of user's input.
Then now, step " according to this scanning angle generation validation problem " is specifically as follows: the correction value according to this scanning angle generates validation problem.
(2) generate Validation Answer Key according to this scanning angle, send Quick Response Code checking request to server, wherein, this Quick Response Code checking request carries this Validation Answer Key, so that this server can be verified this Validation Answer Key according to the validation problem prestored.
It should be noted that, wherein, validation problem can prestore in the server, this validation problem can be carried out arranging and sending to server by user in advance, also can be generated by verification terminal and be supplied to server, such as, see (1) in step 103.
After server receives this Validation Answer Key, just can verify this Validation Answer Key according to the validation problem of this preservation, if be verified, then allow to obtain 2 D code information corresponding to this Quick Response Code, if checking is not passed through, then do not allow to obtain 2 D code information corresponding to this Quick Response Code, thus ensure the safety of 2 D code information.
With generation validation problem in like manner, optionally, in order to improve its flexibility, before generating Validation Answer Key according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate Validation Answer Key according to this scanning angle.
Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then without the need to generating Validation Answer Key, and/or, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using the foundation of revised scanning angle as generation Validation Answer Key, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating Validation Answer Key, namely " scanning angle of this Quick Response Code is shown in step, confirm for user " after, the verification method of this Quick Response Code can also comprise:
Receive the correction value of the scanning angle about this Quick Response Code of user's input.
Then now, step " according to this scanning angle generation Validation Answer Key " is specifically as follows: the correction value according to this scanning angle generates Validation Answer Key.
Optionally, in order to prevent repeatedly initiating request mala fide, to extract Validation Answer Key, can also limit the number of times of the Quick Response Code checking request initiated in preset time, namely, before step " transmission carries the Quick Response Code checking request of described Validation Answer Key to server ", the method can also comprise:
Obtain the operating time of current transmission Quick Response Code checking request; When determining that the operating time distance of the current transmission Quick Response Code checking request last operating time sending Quick Response Code checking request exceedes preset first threshold, statistics sends the number of times of Quick Response Code checking request; If in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, request is to the operation of server then to stop this transmission Quick Response Code to be verified, the prompting message that such as transmission is refused to send request is to user, or lock operation interface, etc., and if in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then perform transmission and carry the Quick Response Code checking request of this Validation Answer Key to the step of server.
Wherein, preset time, preset first threshold and Second Threshold all can be arranged according to the demand of practical application, do not repeat them here.
It should be noted that, after execution of step 102, can select to perform (1) or (2) in step 103 according to the demand of practical application, such as, if now need to generate validation problem, then perform (1) in step 103, and if now need to generate Validation Answer Key, then (2) in execution step 103.
As from the foregoing, the present embodiment adopts scanning to be verified the Quick Response Code of terminal generation, wherein, this Quick Response Code comprises positioning pattern, determine the scanning angle of this Quick Response Code according to the positioning pattern of this Quick Response Code, then generate validation problem according to this scanning angle, and this validation problem is sent to server, so that server, when receiving the Quick Response Code checking request of carrying Validation Answer Key, is verified Validation Answer Key according to this validation problem; Or, generate Validation Answer Key according to this scanning angle, send the Quick Response Code checking of carrying this Validation Answer Key and ask to server, so that this server is verified Validation Answer Key according to the validation problem prestored; Due in this scenario; verification terminal is when scanning is verified the Quick Response Code of terminal; need checking scanning angle just can get 2 D code information; therefore; relative in prior art directly scanning with for the scheme obtaining 2 D code information; the fail safe of Quick Response Code checking can be improved, the safety of protection 2 D code information.
Embodiment two,
According to the method described by embodiment one, below citing is described in further detail.
See Fig. 2 a, the scene schematic diagram of the verification method of the Quick Response Code that this figure provides for the embodiment of the present invention, wherein, Quick Response Code generates by being verified terminal, then this Quick Response Code is scanned to generate validation problem by verification terminal, and validation problem is supplied to server, when needs obtain 2 D code information, this Quick Response Code is scanned to generate Validation Answer Key by another verification terminal (or this verification terminal), and this Validation Answer Key is sent to server, verified according to validation problem and Validation Answer Key by server, below will be described in detail.
For convenience, in the present embodiment, will be specially terminal A and terminal B with verification terminal, being verified terminal, to be specially terminal C be that example is described.Wherein, Quick Response Code generates by being verified terminal such as terminal C, and terminal A is as the verification terminal generating validation problem, and terminal B is as the verification terminal generating Validation Answer Key, and terminal A and terminal B can be different terminal, also can be same terminal.
As shown in Figure 2 b, a kind of verification method of Quick Response Code, idiographic flow can be as follows:
201, the Quick Response Code of terminal A sweep terminal C generation, wherein, this Quick Response Code comprises positioning pattern.
It should be noted that, for the ease of the order of location Quick Response Code coding, in Quick Response Code, generally to there are three positioning patterns, lay respectively on three drift angles of Quick Response Code, can see Fig. 1 b and Fig. 1 c.
202, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0 by terminal A, with angle 0 for initial angle, marks other angles clockwise successively and is respectively angle 1, angle 2 and angle 3, such as, and can see Fig. 2 c.
203, terminal A determines the central point line of the positioning pattern at angle 1 and the positioning pattern at angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determines the scanning angle of this Quick Response Code according to the size of this angle.
Such as, can determine that the acute angle in this angle is the scanning angle of this Quick Response Code, or, also can determine that the obtuse angle in this angle is the scanning angle of this Quick Response Code, etc., for convenience, in the present embodiment, the scanning angle being this Quick Response Code for the acute angle determining in this angle is described, such as, see " ∠ a " in Fig. 2 c.
204, terminal A generates validation problem according to this scanning angle, and this validation problem is sent to server.
Optionally, in order to improve its flexibility, before generating validation problem according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate validation problem according to this scanning angle.Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then without the need to generating validation problem.
In addition, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using the foundation of revised scanning angle as generation validation problem, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating validation problem.
Such as, see Fig. 2 c, the page of terminal A can show " ∠ a=40 ° ", the option that if now user presses " confirm and agree to following agreement ", then agree to generate validation problem according to current shown scanning angle, therefore, now can generate validation problem according to the angle value of " ∠ a=40 ° ", such as, generating validation problem is " ∠ a ", and preserve the answer " 40 ° " of its correspondence, like this, if Validation Answer Key is received for " 40 ° " follow-up, then be verified, allow to obtain this 2 D code information, otherwise, if subsequently received Validation Answer Key is not " 40 ° ", then verify and do not pass through, do not allow to obtain this 2 D code information.Otherwise, if time " ∠ a=40 ° ", the option that user does not press " confirm and agree to following agreement ", then represent and do not agree to generate validation problem according to current shown scanning angle, now user can revise " ∠ a=40 ° " further, such as, be modified to " ∠ a=45 ° ", etc., and press the option of " confirm and agree to following agreement ", then now terminal A can generate validation problem according to " ∠ a=45 ° " angle value, such as, generating validation problem is " ∠ a ", and preserve the Validation Answer Key " 45 ° " of its correspondence, like this, if Validation Answer Key is received for " 45 ° " follow-up, then be verified, allow to obtain this 2 D code information, otherwise, if subsequently received Validation Answer Key is not " 45 ° ", then verify and do not pass through, do not allow to obtain this 2 D code information, about the step of checking, follow-uply will to be described in detail, refer to step 210.
205, after server receives this validation problem, this validation problem is preserved.Such as preserve " ∠ a ", and " ∠ a=40 ° ".
206, the Quick Response Code of terminal B end of scan C generation, wherein, this Quick Response Code comprises positioning pattern.
It should be noted that, for the ease of the order of location Quick Response Code coding, in Quick Response Code, generally to there are three positioning patterns, lay respectively on three drift angles of Quick Response Code.
207, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0 by terminal B, with angle 0 for initial angle, marks other angles clockwise successively and is respectively angle 1, angle 2 and angle 3, such as, and can see Fig. 2 c.
208, terminal B determines the central point line of the positioning pattern at angle 1 and the positioning pattern at angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determines the scanning angle of this Quick Response Code according to the size of this angle.
Such as, can determine that the acute angle in this angle is the scanning angle of this Quick Response Code, or, also can determine that the obtuse angle in this angle is the scanning angle of this Quick Response Code, etc., for convenience, in the present embodiment, the scanning angle being this Quick Response Code for the acute angle determining in this angle is described, such as, see " ∠ a " in Fig. 2 c.
It should be noted that, also the scanning angle of this Quick Response Code can be determined according to other method, concrete can be arranged according to the demand of practical application, such as, except the method shown in step 208, also the central point line of the positioning pattern at angle 2 and the positioning pattern at angle 3 can be determined, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3, the scanning angle of described Quick Response Code is determined according to the size of this angle, etc., its implementation method is similar, does not repeat them here.
209, terminal B generates Validation Answer Key according to this scanning angle, and this Validation Answer Key is sent to server.
Optionally, in order to improve its flexibility, before generating Validation Answer Key according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate Validation Answer Key according to this scanning angle.Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then without the need to generating Validation Answer Key.
In addition, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using the foundation of revised scanning angle as generation Validation Answer Key, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating Validation Answer Key.
Such as, see Fig. 2 c, the page of terminal A can show " ∠ a=40 ° ", the option that if now user presses " confirm and agree to following agreement ", then agree to generate Validation Answer Key according to current shown scanning angle, therefore, now Validation Answer Key can be generated: " ∠ a=40 ° ".Otherwise, if time " ∠ a=40 ° ", the option that user does not press " confirm and agree to following agreement ", then represent and do not agree to generate Validation Answer Key according to current shown scanning angle, now user can revise " ∠ a=40 ° " further, such as, be modified to " ∠ a=45 ° ", etc., and press the option of " confirm and agree to following agreement ", then now terminal A can generate Validation Answer Key: " ∠ a=45 ° ".
Optionally, in order to prevent repeatedly initiating request mala fide to extract Validation Answer Key, can also limit the number of times of the Quick Response Code checking request initiated in preset time, namely, before step " transmission carries the Quick Response Code checking request of this Validation Answer Key to server ", the method can also comprise:
Obtain the operating time of current transmission Quick Response Code checking request; When determining that the operating time distance of the current transmission Quick Response Code checking request last operating time sending Quick Response Code checking request exceedes preset first threshold, statistics sends the number of times of Quick Response Code checking request; If in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, request is to the operation of server then to stop this transmission Quick Response Code to be verified, the prompting message that such as transmission is refused to send request is to user, or lock operation interface, etc., and if in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then perform transmission and carry the Quick Response Code checking request of this Validation Answer Key to the step of server.
Such as, can arrange when the expression receiving user's triggering needs to initiate Quick Response Code checking request (carrying current authentication answer), when such as user presses " confirmation " or " transmission " key on terminal screen, obtain the current operating time, then determine whether this operating time distance last operating time sending Quick Response Code checking request exceedes preset first threshold, such as, whether more than 1 hour, if exceeded, then can think that current initiated Quick Response Code checking is asked as to initiate first, so, counter can be started, statistics sends the number of times of Quick Response Code checking request, if in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, such as, more than 5 times, then confirm that current operation is maliciously, so request is to the operation of server to stop this transmission Quick Response Code to be verified, the prompting message that such as transmission is refused to send request is to user, or lock operation interface, etc., if and in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then confirm that current operation is normal running, so perform transmission to carry the Quick Response Code checking request of this Validation Answer Key to the step of server.
210, after server receives the Validation Answer Key of terminal B transmission, according to the validation problem preserved before, this Validation Answer Key is verified, if be verified, terminal B is then allowed to obtain corresponding 2 D code information, such as, the corresponding 2 D code information of this Quick Response Code can be sent to terminal B by server, or the message that transmission is verified is to terminal C, there is provided corresponding 2 D code information to terminal B by terminal C, etc., otherwise, if checking is not passed through, terminal B is not then allowed to obtain corresponding 2 D code information, such as, information that checking do not pass through can be sent to terminal B, or transmission refusal provides the prompting message of 2 D code information to terminal B, etc..
Such as, if in step 205, the validation problem of preservation is: " ∠ a ", and " ∠ a=40 ° ", if the Validation Answer Key then now received is " ∠ a=40 ° ", then determine to be verified, allow terminal B to obtain corresponding 2 D code information, otherwise, if the Validation Answer Key received is not " ∠ a=40 ° ", be such as " ∠ a=50 ° ", then determine that checking is not passed through, do not allow terminal B to obtain corresponding 2 D code information.
If get corresponding 2 D code information, then terminal B can carry out follow-up operation according to this 2 D code information, if obtain less than corresponding 2 D code information, then terminal B can scan this Quick Response Code again, generate Validation Answer Key and send to server, re-start checking, its operating procedure is same as described above, namely re-execute step 206 ~ 210, do not repeat them here.
Optionally, in order to prevent repeatedly initiating request mala fide, to extract Validation Answer Key, except can again end side (such as terminal B) to initiate in preset time Quick Response Code checking request number of times limit except, also similar device can be also set at server side, such as, receive the Validation Answer Key of terminal B transmission at server after, the number of times of the Validation Answer Key that the terminal B that receives in preset time sends continuously can be added up, if exceed preset 3rd threshold value, then stop the operation of terminal B, such as send and represent that the prompting message of refusal is to terminal B, etc., if and do not exceed preset 3rd threshold value, just according to the validation problem preserved before, this Validation Answer Key is verified, certainly, other method can also be adopted to prevent the malicious operation behavior of some terminal, do not repeat them here.
As from the foregoing, the Quick Response Code that the present embodiment adopts end of scan C to generate, wherein, this Quick Response Code comprises positioning pattern, the scanning angle of this Quick Response Code is determined according to the positioning pattern of this Quick Response Code, then validation problem is generated by terminal A according to this scanning angle, and this validation problem is sent to server, so that server is when the Quick Response Code checking of carrying Validation Answer Key receiving verification terminal such as terminal B transmission is asked, can verify Validation Answer Key according to this validation problem, when being verified, terminal B is allowed to obtain corresponding 2 D code information, otherwise, if checking is not passed through, terminal B is not then allowed to obtain corresponding 2 D code information, due in this scenario, verification terminal is when scanning is verified the Quick Response Code of terminal, need checking scanning angle just can get 2 D code information, therefore, relative in prior art directly scanning with for the scheme obtaining 2 D code information, the fail safe of Quick Response Code checking can be improved, the safety of protection 2 D code information.
Embodiment three,
In order to implement above method better, the embodiment of the present invention also provides a kind of terminal, and as shown in Figure 3 a, this terminal can comprise scanning element 301, determining unit 302 and processing unit 303, as follows:
Scanning element 301, for scanning the Quick Response Code being verified terminal and generating, wherein, this Quick Response Code comprises positioning pattern.
It should be noted that, for the ease of the order of location Quick Response Code coding, in Quick Response Code, generally to there are three positioning patterns, lay respectively on three drift angles of Quick Response Code.
Determining unit 302, for determining the scanning angle of described Quick Response Code according to the positioning pattern of described Quick Response Code.
Processing unit 303, for sending the scanning angle of this Quick Response Code to server, so that this server is verified according to the legitimacy of this scanning angle to Quick Response Code scan operation, such as, specifically can be as follows:
Processing unit 303, may be used for generating validation problem according to this scanning angle, this validation problem is sent to server, so that this server is when receiving the Quick Response Code checking request of carrying Validation Answer Key, verifies Validation Answer Key according to this validation problem.
That is, server is after the validation problem receiving this generation, just this validation problem can be preserved, like this, if follow-up server receives the Quick Response Code checking request about this Quick Response Code, just can verify the Validation Answer Key carried in Quick Response Code checking request according to the validation problem of this preservation, if be verified, then allow to obtain 2 D code information corresponding to this Quick Response Code, if checking is not passed through, then do not allow to obtain 2 D code information corresponding to this Quick Response Code, thus ensure the safety of 2 D code information.
Or processing unit 303, also may be used for generating Validation Answer Key according to this scanning angle, send the Quick Response Code checking of carrying this Validation Answer Key and ask to server, so that this server is verified this Validation Answer Key according to the validation problem prestored.
It should be noted that, wherein, validation problem can prestore in the server, this validation problem can be carried out arranging and sending to server by user in advance, also can be generated by verification terminal and be supplied to server, such as, see the above-mentioned description generated about validation problem.
After server receives this Validation Answer Key, just can verify this Validation Answer Key according to the validation problem of this preservation, if be verified, then allow to obtain 2 D code information corresponding to this Quick Response Code, if checking is not passed through, then do not allow to obtain 2 D code information corresponding to this Quick Response Code, thus ensure the safety of 2 D code information.
Wherein, the determination mode of the scanning angle of Quick Response Code can have multiple, specifically can arrange according to the demand of practical application, such as, and specifically can any one mode as follows:
(1) first kind of way;
Determining unit 302 can comprise the first mark subelement and first and determine subelement, wherein:
First mark subelement, for the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marks other angles clockwise successively and is respectively angle 1, angle 2 and angle 3, such as, see Fig. 1 b.
First determines subelement, for the central point line of the positioning pattern of the positioning pattern and angle 2 of determining angle 1, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determines the scanning angle of this Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, see " ∠ a " in Fig. 1 b, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code, see " ∠ b " in Fig. 1 b.
(2) second way;
Determining unit 302 can comprise the second mark subelement and second and determine subelement, wherein:
Second mark subelement, for the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marks other angles clockwise successively and is respectively angle 1, angle 2 and angle 3, such as, see Fig. 1 c.
Second determines subelement, for the central point line of the positioning pattern of the positioning pattern and angle 3 of determining angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3, determines the scanning angle of described Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code see " the ∠ c " in Fig. 1 c, see " ∠ d " in Fig. 1 c.
Certainly, other can also be had to determine the method for Quick Response Code scanning angle, no longer enumerate at this.
Optionally, in order to improve its flexibility, before generating validation problem or Validation Answer Key according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate validation problem or Validation Answer Key according to this scanning angle.Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then without the need to generating validation problem or Validation Answer Key.Namely as shown in Figure 3 b, this terminal can also comprise display unit 304, as follows:
Display unit 304, may be used for the scanning angle showing described Quick Response Code, confirms for user.
Then now, processing unit 303, specifically may be used for, when receiving the acknowledge message of user about this scanning angle, generating validation problem according to this scanning angle; Or, when receiving the acknowledge message of user about this scanning angle, generate Validation Answer Key according to this scanning angle.
In addition, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using revised scanning angle as the foundation generating validation problem or Validation Answer Key, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating validation problem or Validation Answer Key, namely as shown in Figure 3 b, this terminal can also comprise receiving element 305, as follows:
Receiving element 305, may be used for the correction value of the scanning angle about this Quick Response Code receiving user's input.
Then now, processing unit 303, the correction value that specifically may be used for the scanning angle received according to receiving element 305 generates validation problem; Or the correction value according to this scanning angle generates Validation Answer Key.
Optionally; in order to prevent repeatedly initiating request mala fide to extract Validation Answer Key; send carry this Validation Answer Key Quick Response Code checking request to server before; can also limit the number of times of the Quick Response Code checking request initiated in preset time; namely this terminal can also comprise protected location 306, as follows:
Protected location 306, for obtaining the operating time of current transmission Quick Response Code checking request; When determining that the operating time distance of the current transmission Quick Response Code checking request last operating time sending Quick Response Code checking request exceedes preset first threshold, statistics sends the number of times of Quick Response Code checking request; If in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, request is to the operation of server then to stop this transmission Quick Response Code to be verified, the prompting message that such as transmission is refused to send request is to user, or lock operation interface, etc., and if in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then trigger processing unit 303 performs transmission and carries the Quick Response Code checking request of this Validation Answer Key to the operation of server.
Such as, can arrange when the expression receiving user's triggering needs to initiate Quick Response Code checking request (carrying current authentication answer), when such as user presses " confirmation " or " transmission " key on terminal screen, protected location 306 obtains the current operating time, then determine whether this operating time distance last operating time sending Quick Response Code checking request exceedes preset first threshold, such as, whether more than 1 hour, if exceeded, then can think that current initiated Quick Response Code checking is asked as to initiate first, so, counter can be started, statistics sends the number of times of Quick Response Code checking request, if in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, such as, more than 5 times, then confirm that current operation is maliciously, so request is to the operation of server to stop this transmission Quick Response Code to be verified, the prompting message that such as transmission is refused to send request is to user, or lock operation interface, etc., if and in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then confirm that current operation is normal running, so trigger processing unit 303 performs transmission and carries the Quick Response Code checking request of this Validation Answer Key to the operation of server.
This terminal is specifically as follows the equipment such as smart mobile phone or panel computer.
During concrete enforcement, above unit can realize as independently entity, and can carry out combination in any yet, realize as same or several entities, the concrete enforcement of above unit see embodiment of the method above, can not repeat them here.
As from the foregoing, the scanning element 301 of the terminal of the present embodiment can scan the Quick Response Code being verified terminal and generating, wherein, this Quick Response Code comprises positioning pattern, then determined the scanning angle of this Quick Response Code according to the positioning pattern of this Quick Response Code by determining unit 302, and generate validation problem by processing unit 303 according to this scanning angle, and this validation problem is sent to server, so that server, when receiving the Quick Response Code checking request of carrying Validation Answer Key, is verified Validation Answer Key according to this validation problem; Or, generate Validation Answer Key by processing unit 303 according to this scanning angle, send the Quick Response Code checking of carrying this Validation Answer Key and ask to server, so that this server is verified Validation Answer Key according to the validation problem prestored; Due in this scenario; verification terminal is when scanning is verified the Quick Response Code of terminal; need checking scanning angle just can get 2 D code information; therefore; relative in prior art directly scanning with for the scheme obtaining 2 D code information; the fail safe of Quick Response Code checking can be improved, the safety of protection 2 D code information.
Embodiment four,
Accordingly, the embodiment of the present invention also provides a kind of verification system of Quick Response Code, comprises any one terminal that the embodiment of the present invention provides, can as the verification terminal of the embodiment of the present invention, such as, and specifically can be as follows:
Verification terminal, for scanning the Quick Response Code being verified terminal and generating, wherein, this Quick Response Code comprises positioning pattern; The scanning angle of this Quick Response Code is determined according to the positioning pattern of this Quick Response Code; Send the scanning angle of this Quick Response Code to server, so that this server is verified according to the legitimacy of this scanning angle to Quick Response Code scan operation, such as, validation problem can be generated according to this scanning angle, this validation problem is sent to server, so that this server, when receiving the Quick Response Code checking request of carrying Validation Answer Key, is verified Validation Answer Key according to this validation problem; Or, also can generate Validation Answer Key according to this scanning angle, send the Quick Response Code checking of carrying this Validation Answer Key and ask to server, so that this server is verified this Validation Answer Key according to the validation problem prestored.
Wherein, the determination mode of the scanning angle of Quick Response Code can have multiple, specifically can arrange according to the demand of practical application, such as, and can any one mode as follows:
(1) first kind of way;
As shown in Figure 1 b, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marking other angles is successively respectively angle 1, angle 2 and angle 3 clockwise, determine the central point line of the positioning pattern at angle 1 and the positioning pattern at angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determine the scanning angle of this Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, see " ∠ a " in Fig. 1 b, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code, see " ∠ b " in Fig. 1 b.
(2) second way;
As illustrated in figure 1 c, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marking other angles is successively respectively angle 1, angle 2 and angle 3 clockwise, determine the central point line of the positioning pattern at angle 2 and the positioning pattern at angle 3, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3, determine the scanning angle of described Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code see " the ∠ c " in Fig. 1 c, see " ∠ d " in Fig. 1 c.
Certainly, other can also be had to determine the method for Quick Response Code scanning angle, no longer enumerate at this.
Optionally, in order to improve its flexibility, this terminal is before generating validation problem or Validation Answer Key according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate validation problem or Validation Answer Key according to this scanning angle.
Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then this terminal is without the need to generating validation problem, and/or, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using revised scanning angle as the foundation generating validation problem or Validation Answer Key, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating validation problem or Validation Answer Key, refer to embodiment above, do not repeat them here.
In addition, the verification system of this Quick Response Code can also comprise and is verified terminal and server, as follows:
Being verified terminal, for generating Quick Response Code, scanning for verification terminal.
Server, for the validation problem that Receipt Validation terminal sends, when the Quick Response Code checking of carrying Validation Answer Key receiving verification terminal transmission is asked, according to this validation problem, Validation Answer Key is verified, if be verified, then allow verification terminal to obtain 2 D code information corresponding to this Quick Response Code, if checking is not passed through, then do not allow verification terminal to obtain 2 D code information corresponding to this Quick Response Code.
Server, for the Quick Response Code checking request of carrying Validation Answer Key that Receipt Validation terminal sends, according to the validation problem prestored, this Validation Answer Key is verified, if be verified, verification terminal is then allowed to obtain 2 D code information corresponding to this Quick Response Code, if checking is not passed through, then verification terminal is not allowed to obtain 2 D code information corresponding to this Quick Response Code.
The concrete enforcement of each equipment see embodiment above, can not repeat them here above.
Verification system due to this Quick Response Code can comprise any one terminal that the embodiment of the present invention provides, and therefore, the beneficial effect that any one terminal that can realize providing with the embodiment of the present invention is same, refers to preceding embodiment, do not repeat them here.
Embodiment five,
Accordingly, the embodiment of the present invention also provides a kind of terminal, as shown in Figure 4, this terminal can comprise radio frequency (RF, RadioFrequency) circuit 401, the memory 402 including one or more computer-readable recording mediums, input unit 403, display unit 404, transducer 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, WirelessFidelity) module 407, include the parts such as processor 408 and power supply 409 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 4, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 401 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 408 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 401 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM, SubscriberIdentityModule) card, transceiver, coupler, low noise amplifier (LNA, LowNoiseAmplifier), duplexer etc.In addition, RF circuit 401 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (GSM, GlobalSystemofMobilecommunication), general packet radio service (GPRS, GeneralPacketRadioService), code division multiple access (CDMA, CodeDivisionMultipleAccess), Wideband Code Division Multiple Access (WCDMA) (WCDMA, WidebandCodeDivisionMultipleAccess), Long Term Evolution (LTE, LongTermEvolution), Email, Short Message Service (SMS, ShortMessagingService) etc.
Memory 402 can be used for storing software program and module, and processor 408 is stored in software program and the module of memory 402 by running, thus performs the application of various function and data processing.Memory 402 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal.In addition, memory 402 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 402 can also comprise Memory Controller, to provide the access of processor 408 and input unit 403 pairs of memories 402.
Input unit 403 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Particularly, in a specific embodiment, input unit 403 can comprise Touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface or near Touch sensitive surface such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 408, and the order that energy receiving processor 408 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface.Except Touch sensitive surface, input unit 403 can also comprise other input equipments.Particularly, other input equipments can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 404 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 404 can comprise display floater, optionally, the form such as liquid crystal display (LCD, LiquidCrystalDisplay), Organic Light Emitting Diode (OLED, OrganicLight-EmittingDiode) can be adopted to configure display floater.Further, Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends processor 408 to determine the type of touch event, provide corresponding vision to export with preprocessor 408 on a display panel according to the type of touch event.Although in the diagram, Touch sensitive surface and display floater be as two independently parts realize inputting and input function, in certain embodiments, can by Touch sensitive surface and display floater integrated and realize input and output function.
Terminal also can comprise at least one transducer 405, such as optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater, and proximity transducer at fast mobile terminal to time in one's ear, can cut out display floater and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 406, loud speaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 406 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker, by loud speaker be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone, voice data is converted to after being received by voicefrequency circuit 406, after again voice data output processor 408 being processed, through RF circuit 401 to send to such as another terminal, or export voice data to memory 402 to process further.Voicefrequency circuit 406 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal.
WiFi belongs to short range wireless transmission technology, and by WiFi module 407, terminal can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 4 shows WiFi module 407, be understandable that, it does not belong to must forming of terminal, can omit in the scope of essence not changing invention as required completely.
Processor 408 is control centres of terminal, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 402 and/or module is stored in by running or performing, and call the data be stored in memory 402, perform various function and the deal with data of terminal, thus integral monitoring is carried out to mobile phone.Optionally, processor 408 can comprise one or more process core; Preferably, processor 408 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 408.
Terminal also comprises the power supply 409 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 408 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 409 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal is touch-screen display, terminal also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to be performed by more than one or one processor state more than one or one program package containing the instruction for carrying out following operation:
Scanning is verified the Quick Response Code that terminal generates, and wherein, this Quick Response Code comprises positioning pattern; The scanning angle of this Quick Response Code is determined according to the positioning pattern of this Quick Response Code; Send the scanning angle of this Quick Response Code to server, so that this server is verified according to the legitimacy of this scanning angle to Quick Response Code scan operation, such as, validation problem can be generated according to this scanning angle, this validation problem is sent to server, so that this server, when receiving the Quick Response Code checking request of carrying Validation Answer Key, is verified Validation Answer Key according to this validation problem; Or, also can generate Validation Answer Key according to this scanning angle, send the Quick Response Code checking of carrying this Validation Answer Key and ask to server, so that this server is verified this Validation Answer Key according to the validation problem prestored.
Wherein, the determination mode of the scanning angle of Quick Response Code can have multiple, specifically can arrange according to the demand of practical application, such as, and can any one mode as follows:
(1) first kind of way;
As shown in Figure 1 b, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marking other angles is successively respectively angle 1, angle 2 and angle 3 clockwise, determine the central point line of the positioning pattern at angle 1 and the positioning pattern at angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determine the scanning angle of this Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, see " ∠ a " in Fig. 1 b, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code, see " ∠ b " in Fig. 1 b.
(2) second way;
As illustrated in figure 1 c, the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marking other angles is successively respectively angle 1, angle 2 and angle 3 clockwise, determine the central point line of the positioning pattern at angle 2 and the positioning pattern at angle 3, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3, determine the scanning angle of described Quick Response Code according to the size of this angle.
Wherein, can using the scanning angle of the acute angle in this angle as this Quick Response Code, also can using the scanning angle of the obtuse angle in this angle as this Quick Response Code see " the ∠ c " in Fig. 1 c, see " ∠ d " in Fig. 1 c.
Certainly, other can also be had to determine the method for Quick Response Code scanning angle, no longer enumerate at this.
Optionally, in order to improve its flexibility, this terminal is before generating validation problem or Validation Answer Key according to this scanning angle, the scanning angle of this Quick Response Code can also be shown, confirm for user, after user confirms, such as, when receiving the acknowledge message of user about this scanning angle, just generate validation problem or Validation Answer Key according to this scanning angle.
Otherwise, if user does not confirm, such as cancel the operation of this time scanning Quick Response Code, then this terminal is without the need to generating validation problem, and/or, user can also be pointed out to select the need of revising current scanning angle, if user selects to revise current scanning angle, then using revised scanning angle as the foundation generating validation problem or Validation Answer Key, otherwise, if user selects not revise current scanning angle, then continue to use current scanning angle as the foundation generating validation problem or Validation Answer Key, refer to embodiment above, do not repeat them here.
The concrete enforcement of each equipment see embodiment above, can not repeat them here above.
As from the foregoing, the terminal of the present embodiment adopts scanning to be verified the Quick Response Code of terminal generation, wherein, this Quick Response Code comprises positioning pattern, determine the scanning angle of this Quick Response Code according to the positioning pattern of this Quick Response Code, then generate validation problem according to this scanning angle, and this validation problem is sent to server, so that server, when receiving the Quick Response Code checking request of carrying Validation Answer Key, is verified Validation Answer Key according to this validation problem; Or, generate Validation Answer Key according to this scanning angle, send the Quick Response Code checking of carrying this Validation Answer Key and ask to server, so that this server is verified Validation Answer Key according to the validation problem prestored; Due in this scenario; verification terminal is when scanning is verified the Quick Response Code of terminal; need checking scanning angle just can get 2 D code information; therefore; relative in prior art directly scanning with for the scheme obtaining 2 D code information; the fail safe of Quick Response Code checking can be improved, the safety of protection 2 D code information.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: read-only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc.
Above the verification method of a kind of Quick Response Code that the embodiment of the present invention provides, device and system are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for those skilled in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (16)
1. a verification method for Quick Response Code, is characterized in that, comprising:
Scanning is verified the Quick Response Code that terminal generates, and described Quick Response Code comprises positioning pattern;
The scanning angle of described Quick Response Code is determined according to the positioning pattern of described Quick Response Code;
Send the scanning angle of described Quick Response Code to server, so that described server is verified according to the legitimacy of described scanning angle to Quick Response Code scan operation.
2. method according to claim 1, is characterized in that, the scanning angle of the described Quick Response Code of described transmission, to server, so that described server is verified according to the legitimacy of described scanning angle to Quick Response Code scan operation, comprising:
Generating validation problem according to described scanning angle, described validation problem is sent to server, so that described server is when receiving the Quick Response Code checking request of carrying Validation Answer Key, according to described validation problem, described Validation Answer Key being verified; Or,
Generate Validation Answer Key according to described scanning angle, send the Quick Response Code checking of carrying described Validation Answer Key and ask to server, so that described server is verified described Validation Answer Key according to the validation problem prestored.
3. method according to claim 1, is characterized in that, the scanning angle of the described positioning pattern determination Quick Response Code according to described Quick Response Code, comprising:
The footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marks other angles clockwise successively and be respectively angle 1, angle 2 and angle 3;
Determine the central point line of the positioning pattern at angle 1 and the positioning pattern at angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2;
The scanning angle of described Quick Response Code is determined according to the size of described angle.
4. method according to claim 1, is characterized in that, the scanning angle of the described positioning pattern determination Quick Response Code according to described Quick Response Code, comprising:
The footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marks other angles clockwise successively and be respectively angle 1, angle 2 and angle 3;
Determine the central point line of the positioning pattern at angle 2 and the positioning pattern at angle 3, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3;
The scanning angle of described Quick Response Code is determined according to the size of described angle.
5. the method according to claim 3 or 4, is characterized in that, the described size according to described angle determines the scanning angle of described Quick Response Code, comprising:
The acute angle determining in described angle is the scanning angle of described Quick Response Code; Or;
The obtuse angle determining in described angle is the scanning angle of described Quick Response Code.
6. the method according to any one of claim 2 to 4, is characterized in that, described transmission carries the Quick Response Code checking request of described Validation Answer Key to before server, also comprises:
Obtain the operating time of current transmission Quick Response Code checking request;
When determining that the operating time distance of the current transmission Quick Response Code checking request last operating time sending Quick Response Code checking request exceedes preset first threshold, statistics sends the number of times of Quick Response Code checking request;
If in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, then request is to the operation of server to stop described transmission Quick Response Code to be verified;
If in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then perform transmission and carry the Quick Response Code checking request of described Validation Answer Key to the step of server.
7. method according to claim 1, is characterized in that, described according to before described scanning angle generation validation problem, or described according to before described scanning angle generation Validation Answer Key, also comprises:
Show the scanning angle of described Quick Response Code, confirm for user;
Describedly generating validation problem according to described scanning angle, comprising: when receiving the acknowledge message of user about described scanning angle, generating validation problem according to described scanning angle;
Describedly generating Validation Answer Key according to described scanning angle, comprising: when receiving the acknowledge message of user about described scanning angle, generating Validation Answer Key according to described scanning angle.
8. method according to claim 7, is characterized in that, the scanning angle of the described Quick Response Code of described display, after confirming, also comprises for user:
Receive the correction value of the scanning angle about described Quick Response Code of user's input;
Described according to described scanning angle generation validation problem, comprising: the correction value according to described scanning angle generates validation problem;
Described according to described scanning angle generation Validation Answer Key, comprising: the correction value according to described scanning angle generates Validation Answer Key.
9. a terminal, is characterized in that, comprises scanning element, determining unit and processing unit;
Described scanning element, for scanning the Quick Response Code being verified terminal and generating, described Quick Response Code comprises positioning pattern;
Described determining unit, for determining the scanning angle of described Quick Response Code according to the positioning pattern of described Quick Response Code;
Described processing unit, for sending the scanning angle of described Quick Response Code to server, so that described server is verified according to the legitimacy of described scanning angle to Quick Response Code scan operation.
10. terminal according to claim 9, is characterized in that,
Described processing unit, specifically for generating validation problem according to described scanning angle, described validation problem being sent to server, so that described server is when receiving the Quick Response Code checking request of carrying Validation Answer Key, according to described validation problem, described Validation Answer Key being verified; Or,
Described processing unit, specifically for generating Validation Answer Key according to described scanning angle, sending the Quick Response Code checking of carrying described Validation Answer Key and asking to server, so that described server is verified described Validation Answer Key according to the validation problem prestored.
11. terminals according to claim 9, is characterized in that, described determining unit comprises the first mark subelement and first and determines subelement;
Described first mark subelement, for the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marks other angles clockwise successively and is respectively angle 1, angle 2 and angle 3;
First determines subelement, for the central point line of the positioning pattern of the positioning pattern and angle 2 of determining angle 1, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 2, determine the scanning angle of described Quick Response Code according to the size of described angle.
12. terminals according to claim 9, is characterized in that, described determining unit comprises the second mark subelement and second and determines subelement;
Described second mark subelement, for the footmark that there is not positioning pattern in Quick Response Code is designated as angle 0, with angle 0 for initial angle, marks other angles clockwise successively and is respectively angle 1, angle 2 and angle 3;
Second determines subelement, for the central point line of the positioning pattern of the positioning pattern and angle 3 of determining angle 2, with the size of the angle of the horizontal line vertical line of the central point of the positioning pattern through angle 3, determine the scanning angle of described Quick Response Code according to the size of described angle.
13., according to claim 10 to the terminal described in 12 any one, is characterized in that, also comprise protected location;
Described protected location, for obtaining the operating time of current transmission Quick Response Code checking request, when determining that the operating time distance of the current transmission Quick Response Code checking request last operating time sending Quick Response Code checking request exceedes preset first threshold, statistics sends the number of times of Quick Response Code checking request, if in preset time, the number of times sending Quick Response Code checking request exceedes preset Second Threshold, then request is to the operation of server to stop described transmission Quick Response Code to be verified; If in preset time, the number of times sending Quick Response Code checking request does not exceed preset Second Threshold, then trigger processing unit performs transmission and carries the Quick Response Code checking request of described Validation Answer Key to the operation of server.
14. terminals according to claim 9, is characterized in that, also comprise display unit;
Described display unit, for showing the scanning angle of described Quick Response Code, confirms for user;
Described processing unit, specifically for when receiving the acknowledge message of user about described scanning angle, generates validation problem according to described scanning angle; Or, when receiving the acknowledge message of user about described scanning angle, generate Validation Answer Key according to described scanning angle.
15. terminals according to claim 14, is characterized in that, also comprise receiving element;
Described receiving element, for receiving the correction value of the scanning angle about described Quick Response Code of user's input;
Described processing unit, generates validation problem specifically for the correction value according to described scanning angle; Or the correction value according to described scanning angle generates Validation Answer Key.
The verification system of 16. 1 kinds of Quick Response Codes, is characterized in that, comprises the terminal described in any one of claim 9 to 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410483734.XA CN105490992B (en) | 2014-09-19 | 2014-09-19 | A kind of verification method of two dimensional code, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410483734.XA CN105490992B (en) | 2014-09-19 | 2014-09-19 | A kind of verification method of two dimensional code, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105490992A true CN105490992A (en) | 2016-04-13 |
CN105490992B CN105490992B (en) | 2019-07-19 |
Family
ID=55677714
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410483734.XA Active CN105490992B (en) | 2014-09-19 | 2014-09-19 | A kind of verification method of two dimensional code, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105490992B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107404721A (en) * | 2016-05-20 | 2017-11-28 | 阿里巴巴集团控股有限公司 | Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment |
CN108229969A (en) * | 2016-12-09 | 2018-06-29 | 北京大码技术有限公司 | Combined two-dimension code anti-fake system and method, combined two-dimension code, reading device |
CN109146469A (en) * | 2018-08-24 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of graphic code scan method, barcode scanning method of payment and barcode scanning equipment |
CN111598592A (en) * | 2020-05-27 | 2020-08-28 | 刘晏周 | Tracing certificate code anti-counterfeiting system and method thereof |
CN112484680A (en) * | 2020-12-02 | 2021-03-12 | 杭州中为光电技术有限公司 | Sapphire wafer positioning and tracking method based on circle detection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5726435A (en) * | 1994-03-14 | 1998-03-10 | Nippondenso Co., Ltd. | Optically readable two-dimensional code and method and apparatus using the same |
CN102117419A (en) * | 2011-02-23 | 2011-07-06 | 深圳市融创天下科技发展有限公司 | Method, device, system and terminal equipment for generating and recognizing two-dimension code |
CN102752444A (en) * | 2012-05-24 | 2012-10-24 | 成都集客宝信息技术有限公司 | Two-dimensional code application method, mobile terminal and system |
CN203746080U (en) * | 2014-03-26 | 2014-07-30 | 王光勇 | Two-dimensional bar code identification system based on internet of things |
-
2014
- 2014-09-19 CN CN201410483734.XA patent/CN105490992B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5726435A (en) * | 1994-03-14 | 1998-03-10 | Nippondenso Co., Ltd. | Optically readable two-dimensional code and method and apparatus using the same |
CN102117419A (en) * | 2011-02-23 | 2011-07-06 | 深圳市融创天下科技发展有限公司 | Method, device, system and terminal equipment for generating and recognizing two-dimension code |
CN102752444A (en) * | 2012-05-24 | 2012-10-24 | 成都集客宝信息技术有限公司 | Two-dimensional code application method, mobile terminal and system |
CN203746080U (en) * | 2014-03-26 | 2014-07-30 | 王光勇 | Two-dimensional bar code identification system based on internet of things |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107404721A (en) * | 2016-05-20 | 2017-11-28 | 阿里巴巴集团控股有限公司 | Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment |
CN108229969A (en) * | 2016-12-09 | 2018-06-29 | 北京大码技术有限公司 | Combined two-dimension code anti-fake system and method, combined two-dimension code, reading device |
CN109146469A (en) * | 2018-08-24 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of graphic code scan method, barcode scanning method of payment and barcode scanning equipment |
CN109146469B (en) * | 2018-08-24 | 2020-09-22 | 阿里巴巴集团控股有限公司 | Graphic code scanning method, code scanning payment method and code scanning equipment |
CN111598592A (en) * | 2020-05-27 | 2020-08-28 | 刘晏周 | Tracing certificate code anti-counterfeiting system and method thereof |
CN112484680A (en) * | 2020-12-02 | 2021-03-12 | 杭州中为光电技术有限公司 | Sapphire wafer positioning and tracking method based on circle detection |
CN112484680B (en) * | 2020-12-02 | 2022-06-03 | 杭州中为光电技术有限公司 | Sapphire wafer positioning and tracking method based on circle detection |
Also Published As
Publication number | Publication date |
---|---|
CN105490992B (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103729765B (en) | A kind of authentication control method, terminal, server, terminal device and system | |
CN104168270B (en) | Auth method, server, client and system | |
CN105933904B (en) | Network connection method and device | |
CN104518875B (en) | A kind of method that authentication and account obtain, mobile terminal | |
CN104796385A (en) | Terminal binding method, device and system | |
US9635018B2 (en) | User identity verification method and system, password protection apparatus and storage medium | |
CN103457951A (en) | Method and device for allowing multiple terminals to login to server | |
CN105704123A (en) | Business processing method, device and system | |
CN104519485A (en) | Communication method between terminals, devices and system | |
CN104125216A (en) | Method, system and terminal capable of improving safety of trusted execution environment | |
CN103716331B (en) | Method, terminal, server and system for numerical value transfer | |
CN103475476A (en) | Method and device for logging in server by multiple terminals | |
CN103634294A (en) | Information verifying method and device | |
CN104519197A (en) | User login method, user login device and terminal devices | |
CN103716793A (en) | Access point information sharing method and apparatus | |
CN104836664A (en) | Method for executing business processing, device for executing business processing and system for executing business processing | |
CN104901805A (en) | Identity authentication method and device and system | |
CN104243155A (en) | Safety verification method and device | |
CN104580167A (en) | Data transmission method, device and system | |
CN105490992A (en) | Method, device and system for verifying two-dimension codes | |
CN103607713A (en) | Method, apparatus, device and system for network access | |
CN104901806B (en) | A kind of virtual resource processing method, device and system | |
CN104902531A (en) | Network connection method, application authentication server, terminal and router | |
CN106550361B (en) | Data transmission method, equipment and computer readable storage medium | |
CN104967593A (en) | Identity verification method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |