HK1237147A - Two-dimensional code processing method and device - Google Patents
Two-dimensional code processing method and device Download PDFInfo
- Publication number
- HK1237147A HK1237147A HK17110825.1A HK17110825A HK1237147A HK 1237147 A HK1237147 A HK 1237147A HK 17110825 A HK17110825 A HK 17110825A HK 1237147 A HK1237147 A HK 1237147A
- Authority
- HK
- Hong Kong
- Prior art keywords
- dimensional code
- information
- static
- random
- characteristic value
- Prior art date
Links
Description
Technical Field
The present disclosure relates to network technologies, and in particular, to a two-dimensional code processing method and apparatus.
Background
With the development of internet technology, people's lives are more and more convenient, for example, two-dimensional codes are more and more widely applied in various aspects. The two-dimensional code records data symbol information by using a certain specific geometric figure and black and white figures distributed on a plane according to a certain rule, and a lot of information can be carried in the two-dimensional code. The information in the two-dimensional code can be analyzed and obtained by using the code scanning client, and some application processing can be performed according to the information. However, the current two-dimensional code usually exists in a form of a static two-dimensional code, which is easily copied or photographed, and further easily causes information leakage in the two-dimensional code, and an illegal person may use the information to perform illegal application, which may cause loss to a user.
Disclosure of Invention
In view of this, the present application provides a two-dimensional code processing method and apparatus, so as to improve the security of applying a two-dimensional code.
Specifically, the method is realized through the following technical scheme:
in a first aspect, a two-dimensional code processing method is provided, including:
when a two-dimensional code generation request sent by a two-dimensional code display client is received, generating static two-dimensional code information according to a user identifier carried in the two-dimensional code generation request;
generating a random characteristic value, wherein the random characteristic value is used for limiting the display characteristics of the dynamic characteristic information displayed by the two-dimensional code display client;
and sending the static two-dimension code information and the random characteristic value to the two-dimension code display client so that the two-dimension code display client displays a combined two-dimension code, wherein the displayed combined two-dimension code comprises the static two-dimension code information and dynamic characteristic information displayed according to the random characteristic value.
In a second aspect, a two-dimensional code processing method is provided, including:
sending a two-dimensional code generation request to a server, wherein the two-dimensional code generation request carries a user identifier;
receiving a combined two-dimensional code returned by the server, wherein the combined two-dimensional code comprises: the server generates a random characteristic value and static two-dimensional code information according to the user identification;
and generating dynamic characteristic information according to the random characteristic value, and synthesizing the dynamic characteristic information and the static two-dimensional code into a combined two-dimensional code for displaying.
In a third aspect, a two-dimensional code processing method is provided, including:
scanning a combined two-dimensional code displayed on a two-dimensional code display client, wherein the combined two-dimensional code comprises static two-dimensional code information and dynamic characteristic information generated according to a user identifier of the two-dimensional code display client;
analyzing the combined two-dimension code to obtain the static two-dimension code information, and obtaining a random characteristic value according to the dynamic characteristic information;
and sending the random characteristic value and the static two-dimensional code information to a server side, and requesting the server side to verify the random characteristic value.
In a fourth aspect, a two-dimensional code processing apparatus is provided, including:
the first generation module is used for generating static two-dimensional code information according to a user identifier carried in a two-dimensional code generation request when the two-dimensional code generation request sent by a two-dimensional code display client is received;
the second generation module is used for generating a random characteristic value, and the random characteristic value is used for limiting the display characteristics of the dynamic characteristic information displayed by the two-dimensional code display client;
and the information sending module is used for sending the static two-dimensional code information and the random characteristic value to the two-dimensional code display client so that the two-dimensional code display client displays a combined two-dimensional code, and the displayed combined two-dimensional code comprises the static two-dimensional code information and the dynamic characteristic information displayed according to the random characteristic value.
In a fifth aspect, a two-dimensional code processing apparatus is provided, including:
the request sending module is used for sending a two-dimensional code generation request to a server, wherein the two-dimensional code generation request carries a user identifier;
the information receiving module is used for receiving a combined two-dimensional code returned by the server, and the combined two-dimensional code comprises: the server generates a random characteristic value and static two-dimensional code information according to the user identification;
and the combined display module is used for generating dynamic characteristic information according to the random characteristic value and synthesizing the dynamic characteristic information and the static two-dimensional code into a combined two-dimensional code for display.
In a sixth aspect, a two-dimensional code processing apparatus is provided, including:
the two-dimension code scanning module is used for scanning a combined two-dimension code displayed on a two-dimension code display client, and the combined two-dimension code comprises static two-dimension code information and dynamic characteristic information which are generated according to a user identifier of the two-dimension code display client;
the two-dimension code analysis module is used for analyzing the combined two-dimension code to obtain the static two-dimension code information and obtaining a random characteristic value according to the dynamic characteristic information;
and the two-dimension code verification module is used for sending the random characteristic value and the static two-dimension code information to a server and requesting the server to verify the random characteristic value.
According to the two-dimension code processing method and device, the combined two-dimension code comprising the static two-dimension code information and the dynamic characteristic information is generated, and the two-dimension code is verified according to the random characteristic value corresponding to the combined two-dimension code, so that the copying difficulty of the two-dimension code is increased, and the safety of the two-dimension code is improved.
Drawings
Fig. 1 is an application system of a two-dimensional code processing method according to an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating a two-dimensional code processing method according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a combined two-dimensional code according to an exemplary embodiment of the present application;
fig. 4 is a flowchart illustrating another two-dimensional code processing method according to an exemplary embodiment of the present application;
fig. 5 is a flowchart illustrating a further two-dimensional code processing method according to an exemplary embodiment of the present application;
fig. 6 is a flowchart illustrating a further two-dimensional code processing method according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a two-dimensional code processing apparatus according to an exemplary embodiment of the present application;
fig. 8 is a block diagram of another two-dimensional code processing apparatus according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of another two-dimensional code processing apparatus according to an exemplary embodiment of the present application;
fig. 10 is a block diagram of another two-dimensional code processing apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The two-dimensional code is widely applied to daily life, more information can be borne by the two-dimensional code, and the information can be obtained by scanning and analyzing the two-dimensional code. For example, the two-dimensional code can be applied to a payment scene, a payer requests the server to generate the two-dimensional code when paying, wherein the two-dimensional code contains identification information of the payer, and a payee scans the code to obtain a payer identification in the two-dimensional code and submits the payer identification to the server to request to deduct money from the payer corresponding to the identification.
The two-dimensional codes used at present are usually static two-dimensional codes, and the static two-dimensional codes are easily copied or photographed, so that information in the static two-dimensional codes is leaked. For example, in the above scenario of payment by using two-dimensional code, the two-dimensional code can be easily scanned to obtain the identifier of the payer, and if the payer sets up a small amount of password-free payment, the payer can request the server to deduct money after obtaining the information of the two-dimensional code. If a lawbreaker obtains the information of the payer by copying or photographing, the lawbreaker can easily request the server to deduct money due to the secret-free payment, thereby possibly causing the fund loss of the payer user. Just in order to overcome potential safety hazards caused by the static two-dimensional code and improve the safety of the two-dimensional code, the application provides a two-dimensional code processing method.
Fig. 1 illustrates an application system of the two-dimensional code processing method of the present application, and when a two-dimensional code is applied, three devices may be involved, as shown in fig. 1, the following devices are included:
the two-dimensional code display client 11: for example, the client may be a smart phone of a user or an application APP on the smart phone, and the two-dimensional code display client may be used to display the combined two-dimensional code of the application.
The server 12: the role of the server 12 may include generating information for displaying the combined two-dimensional code, that is, the information of the combined two-dimensional code is generated by the server 12, and the server 12 may transmit the information to the two-dimensional code display client 11, so that the two-dimensional code display client 11 displays the combined two-dimensional code according to the information. As will be mentioned in the following embodiments, the server 12 can also be used for verifying the combined two-dimensional code.
Two-dimensional code scanning client 13: for example, the device may be a code scanning gun, a camera, or the like, which can scan a two-dimensional code, or an application installed on the device. The two-dimensional code scanning client 13 may be configured to scan a combined two-dimensional code displayed on the two-dimensional code display client 11, and analyze the combined two-dimensional code to obtain two-dimensional code information included therein. Moreover, the two-dimensional code scanning client 13 of this embodiment also requests the server 12 to perform two-dimensional code verification, and the server 12 returns a success or failure of scanning the code to the two-dimensional code scanning client 13, and if the code scanning is successful, the two-dimensional code can be normally used (for example, to continue to deduct money), and if the code scanning is failed, the continuous application of the information in the combined two-dimensional code is stopped (for example, to stop deducting money).
Fig. 2 illustrates a flow executed by a server in the method of the present application, which may include:
in step 201, when a two-dimensional code generation request sent by a two-dimensional code display client is received, static two-dimensional code information is generated according to a user identifier carried in the two-dimensional code generation request.
For example, the server 12 may generate static two-dimensional code information in this step when receiving a two-dimensional code generation request sent by the two-dimensional code display client 11. The static two-dimensional code information may be two-dimensional code information generated in a conventional manner, for example, the two-dimensional code display client 11 may carry a user identifier (e.g., a user account) when sending a two-dimensional code generation request, and the server 12 may generate, according to the user identifier, static two-dimensional code information that can be used for uniquely identifying the user, and corresponds to the user identifier.
In step 202, a random feature value is generated, and the random feature value is used for limiting the display features of the dynamic feature information displayed by the two-dimensional code display client.
For example, step 202 and step 201 are two parallel processing steps, and may be executed simultaneously or sequentially. In this example, the two-dimensional code displayed by the two-dimensional code display client 11 is a "combined two-dimensional code," the combined two-dimensional code includes both static two-dimensional code information and dynamic feature information, and information in the combined two-dimensional code can be acquired by preventing copying or photographing through the dynamic feature information.
Illustratively, the dynamic characteristic information may include: a dynamically played video, or a played audio, or a dynamically played series of pictures, or the like, is information that changes over time in any case. The random characteristic value generated in the step is used for limiting the display characteristic of the dynamic characteristic information; for example, the display features may include: the playing frame rate of the video, or the playing audio of the music file, and the like, and the corresponding dynamic characteristic information is the video or the audio.
In this step, the feature value for defining the display feature is randomly generated by the server, for example, the server may generate a random number using a certain random algorithm, and use the random number as the random feature value, for example, use the generated random number as the play frame rate of the video.
In step 203, the static two-dimensional code information and the random feature value are sent to the two-dimensional code display client, so that the two-dimensional code display client displays a combined two-dimensional code, and the displayed combined two-dimensional code includes the static two-dimensional code information and the dynamic feature information displayed according to the random feature value.
For example, the server may integrate the static two-dimensional code information generated in step 201 and the random eigenvalue generated in step 202 into a two-dimensional code information string, and send the two-dimensional code information string to the two-dimensional code display client, so that the two-dimensional code display client displays the combined two-dimensional code accordingly.
An example of the combined two-dimensional code can be seen in fig. 3, as shown in fig. 3, the periphery of the combined two-dimensional code is in a common two-dimensional code form, and carries static two-dimensional code information for identifying the identity of a user; the middle part of the combined two-dimensional code is dynamic characteristic information, which is displayed by the two-dimensional code display client according to the random characteristic value acquired by the server, and the dynamic characteristic information is a video displayed according to the random frame rate sent by the server in the example shown in fig. 3.
Of course, the combined two-dimensional code may have other forms, such as a display position of a video, and may be located at a corner instead of a middle portion of the combined two-dimensional code. For another example, the combined two-dimensional code may also include two dynamically displayed videos, one located at the left corner and one located at the right corner, where the two videos use the same frame rate, or use different frame rates, and the two frame rates are both generated by the server and sent to the two-dimensional code display client. For another example, the combined two-dimensional code may also be in a form of playing music combined with static two-dimensional code information, and the played music adopts audio randomly generated by the server, in which case, the two-dimensional code scanning client needs to collect music. Other examples are not described in detail.
In this embodiment, the server generates static two-dimensional code information and a random characteristic value, so that the two-dimensional code display client can display the combined two-dimensional code according to the information, the security of the combined two-dimensional code is relatively improved, and two-dimensional code information leakage caused by copying or photographing and other modes can be avoided.
Fig. 4 illustrates a flow executed by a two-dimensional code display client in the two-dimensional code processing method of the present application, and as shown in fig. 4, the method may include:
in step 401, a two-dimensional code generation request is sent to the server, carrying the user identifier.
For example, the two-dimensional code display client may be client software (e.g., payment software) on a smart phone of the user, the user may place an order for shopping through the client, and when a commodity to be purchased is selected for payment, the user as a payer may click a "generate two-dimensional code" option on the client, and the client sends a two-dimensional code generation request to the server. The request may carry a user identifier (e.g., a user account) of the user when logging in to the client.
In step 402, a combined two-dimensional code returned by the server is received, where the combined two-dimensional code includes: the server generates a random characteristic value and static two-dimensional code information according to the user identification.
In step 403, dynamic feature information is generated according to the random feature value, and the dynamic feature information and the static two-dimensional code are combined into a combined two-dimensional code to be displayed.
For example, in this step, the two-dimensional code display client may analyze and obtain the random feature value and the static two-dimensional code information transmitted by the server received in step 402, and, taking the random feature value as the video frame rate as an example, may store a video locally at the two-dimensional code display client in advance, adjust the frame rate of the video using the random video frame rate, and generate a video displayed at the frame rate sent by the server. The two-dimensional code display client merges and displays the adjusted video and the static two-dimensional code information, as shown in fig. 3. Or, the video may also be issued by the server, and the frequency of the video is a random feature value.
In this embodiment, the two-dimensional code display client displays the combined two-dimensional code according to the information generated by the server, and the dynamic characteristic information included in the combined two-dimensional code makes the security of the combined two-dimensional code relatively improved, so that the two-dimensional code information leakage caused by copying or photographing and other modes can be avoided.
Fig. 5 illustrates a flow executed by a two-dimensional code scanning client in the two-dimensional code processing method of the present application, and as shown in fig. 5, the flow may include:
in step 501, a two-dimensional code is scanned to display a combined two-dimensional code displayed on a client.
For example, in the code scanning operation of the two-dimensional code scanning client in this step, the two-dimensional code scanning client is used to acquire static two-dimensional code information and information according to the random feature value of the obtained dynamic feature information.
For example, taking a video displayed at the frame rate indicated by the server as an example of the dynamic characteristic information in the combined two-dimensional code, the code scanning client scans twice in this step to obtain two video frame pictures and corresponding time, which are used for calculating the frame rate in the subsequent steps. And assuming that the dynamic characteristic information in the combined two-dimensional code is a music file played according to the audio indicated by the server, the code scanning client acquires the played music with a proper time length in the step so as to be used for calculating the audio in the subsequent steps.
In step 502, the combined two-dimensional code is analyzed to obtain static two-dimensional code information generated according to the user identifier of the two-dimensional code display client, and a random characteristic value is calculated according to dynamic characteristic information.
For example, in this step, the code scanning client is configured to calculate a random feature value corresponding to the dynamic feature information in the combined two-dimensional code according to the information collected in step 501.
Taking the dynamic feature information as the video, the two-dimensional code scanning client may obtain the random feature value by scanning the combined two-dimensional code and calculating according to the dynamic feature information in the combined two-dimensional code, for example, the information obtained by scanning the combined two-dimensional code in step 501 may include: and then, the code scanning client can calculate the number of the pictures of the video frame played in the time interval according to the information, so as to calculate the video frame rate. The video frame rate is a random characteristic value corresponding to dynamic characteristic information obtained by scanning and combining two-dimensional codes by a code scanning client.
In step 503, the random feature value and the static two-dimensional code information are sent to a server, and the server is requested to verify the random feature value.
For example, after the two-dimensional code scanning client obtains the random feature value, the random feature value and the static two-dimensional code information can be sent to the server, and the server is requested to verify the random feature value. The method is mainly used for verifying whether the random characteristic value is the random characteristic value generated and distributed by the server, and the server can search the random characteristic value corresponding to the static two-dimensional code information according to the static two-dimensional code information reported by the two-dimensional code scanning client in the step, and compare the random characteristic value with the random characteristic value calculated according to the dynamic characteristic information in the step 502 to determine whether the random characteristic value is the same. If the two are the same, the server side passes verification and can return a notice of successful scan of the barcode to the two-dimensional barcode scan client side.
It should be noted that the generated combined two-dimensional code mainly uses static two-dimensional code information therein when in application, for example, in an application scenario where payment is performed using a two-dimensional code, the static two-dimensional code information in the combined two-dimensional code displayed by the two-dimensional code display client as a payer is information for identifying the identity of a user, and after the static two-dimensional code information obtained by scanning the code is transmitted to the server by the two-dimensional code scanning client as a payee, the server can obtain payment information (e.g., a payment account) of the payer user according to the static two-dimensional code information and perform a deduction operation. The dynamic characteristic information contained in the combined two-dimensional code is mainly used for verifying whether static two-dimensional code information obtained by scanning the code by the code scanning client can be applied or not, and illegal use is prevented.
For example, further illustrating the role of the dynamic profile information: if an illegal user copies or photographs the combined two-dimension code, static two-dimension code information is obtained through analysis of the copied or photographed combined two-dimension code, and the server is requested to deduct money according to the static two-dimension code information. However, the copied or photographed combined two-dimensional code is a static two-dimensional code image corresponding to a single time point, and for a video played at a certain frame rate in the combined two-dimensional code, a video frame picture at a certain time point is obtained after copying or photographing, and the code scanning client cannot obtain the calculated frame rate by using the image alone. Therefore, the code scanning client cannot report the video frame rate in the combined two-dimensional code to the server at the same time, even if a randomly generated video frame rate is reported, the video frame rate cannot be verified by the server, and cannot be consistent with the video frame rate of the combined two-dimensional code stored by the server, so that the server can feed back the code scanning failure to the code scanning client and cannot continue to use the static two-dimensional code information for deduction under the condition that the server cannot pass the verification, and the application safety of the two-dimensional code information is ensured.
In this embodiment, the two-dimensional code scanning client obtains static two-dimensional code information by scanning the combined two-dimensional code and obtains the random characteristic value according to the dynamic characteristic information, and can request the server to verify whether the scanned combined two-dimensional code is valid according to the random characteristic value, and the application of the static two-dimensional code information is continued when the two-dimensional code is valid, so that the security of applying the static two-dimensional code information is improved.
As follows, a scene in which payment is performed by combining two-dimensional codes is taken as an example, and a frame rate of a video is taken as an example of a feature value randomly generated by a server, which is described with reference to an example of fig. 6, the method may include the following steps, where the steps described in the above method embodiment are only briefly described, and specifically, the foregoing embodiments of fig. 2 to fig. 5 may be combined with the following steps:
in step 601, the two-dimensional code display client sends a two-dimensional code generation request to the server, wherein the two-dimensional code generation request carries a user identifier;
for example, the two-dimensional code display client may be client software installed on a smart phone of a user, and the user may purchase an order through the client software and click a function item "generate a two-dimensional code" on the client, to trigger the client to send a two-dimensional code generation request to the server. The user identifier carried in the request may be, for example, an account of the user logging in the client.
In step 602, the server generates static two-dimensional code information according to the user identifier of the two-dimensional code display client, and generates a random frame rate;
for example, in this step, the server may generate static two-dimensional code information in the same manner as the current two-dimensional code generation technology, where the static two-dimensional code information is an identifier of the user identity. In this embodiment, the server further generates a random frame rate, which may be a random number obtained through a certain random algorithm, and the random number is used as the random frame rate for limiting the video displayed by the two-dimensional code display client.
In step 603, the server stores the corresponding relationship between the random frame rate and the static two-dimensional code information;
for example, the server may store the corresponding relationship between the static two-dimensional code information and the random frame rate in this step, so as to search for a frame rate corresponding to a certain static two-dimensional code in the subsequent steps according to the corresponding relationship.
In step 604, the server sends the static two-dimensional code information and the random frame rate to the two-dimensional code display client.
In step 605, the two-dimension code display client analyzes to obtain static two-dimension code information, and generates dynamic characteristic information according to the random frame rate;
for example, in this step, the two-dimensional code display client may adjust the frame rate of the video locally stored by the two-dimensional code display client to the random frame rate according to the random frame rate. And the video played according to the random frame rate is the dynamic characteristic information. The two-dimensional code display client side of the step also analyzes the static two-dimensional code information.
In step 606, the two-dimensional code display client combines the dynamic characteristic information and the static two-dimensional code into a combined two-dimensional code for display.
For example, the form of the combined two-dimensional code may be referred to as an example of fig. 3. The static two-dimension code bears the information of the user identification, and the dynamic characteristic information is a video displayed according to a random frame rate generated by the server.
In step 607, the two-dimension code scanning client scans the two-dimension code to display the combined two-dimension code displayed on the client.
For example, in this step, the two-dimensional code scanning client scans the combined two-dimensional code, and performs code scanning at two time points. Scanning a video at a first time point to obtain a first video frame picture, and scanning the video at a second time point to obtain a second video frame picture.
In step 608, the two-dimension code scanning client parses the combined two-dimension code to obtain static two-dimension code information generated according to the user identifier of the two-dimension code display client, and calculates a random feature value according to the dynamic feature information.
For example, the two-dimensional code scanning client may not only parse the static two-dimensional code information, but also calculate the frame rate according to the information obtained by scanning the code in step 607. For example, according to the first time point and the second time point, the time difference between the first time point and the second time point can be obtained; moreover, the frame identifiers corresponding to the first video frame picture and the second video frame picture can be acquired, and the frame difference between the two pictures can be acquired, so that the number of video frames played in the time period of the first time point and the second time point can be acquired, and the random frame rate can be acquired.
The above-mentioned obtaining of the respective corresponding frame identifiers of the first video frame picture and the second video frame picture can be implemented in various ways. For example, when the two-dimensional code display client displays the combined two-dimensional code, a frame identifier (e.g., frame 3) of the frame is added to the video frame, or an original video that is the same as the two-dimensional code display client may be stored at the two-dimensional code scanning client, and when a certain video frame picture is obtained by scanning the code, the frame identifier of the picture may be queried according to the original video.
In step 609, the two-dimension code scanning client sends the random characteristic value and the static two-dimension code information to the server, and requests the server to verify the random characteristic value.
In this step, the server receives a two-dimensional code verification request sent by a two-dimensional code scanning client, where the two-dimensional code verification request includes: the two-dimensional code scanning client parses the scanned combined two-dimensional code to obtain static two-dimensional code information and a random feature value, for example, the random frame rate of the video obtained in step 608.
In step 610, the server obtains a corresponding random eigenvalue according to the static two-dimensional code information and the corresponding relationship.
For example, the server may find the random frame rate corresponding to the static two-dimensional code information according to the correspondence stored above, that is, find what the random frame rate allocated to the user of the static two-dimensional code information in step 602 is.
In step 611, the server compares the random eigenvalue corresponding to the static two-dimensional code with the random eigenvalue obtained according to the dynamic characteristic information.
For example, the server may compare the allocated random frame rate with a video frame rate calculated by the two-dimensional code scanning client according to the dynamic characteristic information. If the two are the same, then 612 is performed; otherwise, 613 is performed.
In step 612, the server returns that the two-dimension code scanning is successful to the two-dimension code scanning client, and starts to deduct money by using static two-dimension code information.
In step 613, the server returns that the two-dimensional code scanning fails to the two-dimensional code scanning client, and stops using the static two-dimensional code information to deduct money.
In this embodiment, the server generates static two-dimensional code information and a random characteristic value, so that the two-dimensional code display client can display the combined two-dimensional code according to the information, the security of the combined two-dimensional code is relatively improved, and two-dimensional code information leakage caused by copying or photographing and other modes can be avoided.
In order to realize the two-dimensional code processing method, the application also provides a two-dimensional code processing device. Fig. 7 illustrates a two-dimensional code processing apparatus that can be applied to a server, and as shown in fig. 7, the apparatus can include: a first generating module 71, a second generating module 72 and an information transmitting module 73.
The first generating module 71 is configured to, when a two-dimensional code generating request sent by a two-dimensional code display client is received, generate static two-dimensional code information according to a user identifier carried in the two-dimensional code generating request;
a second generating module 72, configured to generate a random feature value, where the random feature value is used to limit a display feature of the dynamic feature information displayed by the two-dimensional code display client;
and the information sending module 73 is configured to send the static two-dimensional code information and the random feature value to the two-dimensional code display client, so that the two-dimensional code display client displays a combined two-dimensional code, and the displayed combined two-dimensional code includes the static two-dimensional code information and dynamic feature information displayed according to the random feature value.
For example, the random feature value is a frame rate of the dynamic feature information displayed by the two-dimensional code display client. For example, the dynamic characteristic information may be a video.
Fig. 8 illustrates another two-dimensional code processing apparatus, which may further include, on the basis of the structure shown in fig. 7: a storage module 74, a receiving module 75, a lookup module 76, and a determination module 77.
The storage module 74 is configured to store a corresponding relationship between the random feature value and the static two-dimensional code information;
the receiving module 75 is configured to receive a two-dimensional code verification request sent by a two-dimensional code scanning client, where the two-dimensional code verification request includes: the two-dimension code scanning client analyzes the scanned combined two-dimension code to obtain static two-dimension code information and a random characteristic value calculated according to the dynamic characteristic information;
a searching module 76, configured to obtain a random feature value corresponding to the static two-dimensional code information;
and the judging module 77 is configured to return that the two-dimensional code scanning is successful to the two-dimensional code scanning client when the random eigenvalue obtained according to the dynamic eigenvalue is the same as the random eigenvalue corresponding to the static two-dimensional code information.
Fig. 9 illustrates a two-dimensional code processing apparatus that can be applied to a two-dimensional code display client, and as shown in fig. 9, the apparatus can include: a request sending module 91, an information receiving module 92 and a combined display module 93. Wherein the content of the first and second substances,
the request sending module 91 is configured to send a two-dimensional code generation request to a server, where the two-dimensional code generation request carries a user identifier;
an information receiving module 92, configured to receive a combined two-dimensional code returned by the server, where the combined two-dimensional code includes: the server generates a random characteristic value and static two-dimensional code information according to the user identification;
and the combined display module 93 is configured to generate dynamic feature information according to the random feature value, and synthesize the dynamic feature information and the static two-dimensional code into a combined two-dimensional code for display.
Fig. 10 illustrates a two-dimensional code processing apparatus that can be applied to a two-dimensional code scanning client, and as shown in fig. 10, the apparatus may include: the two-dimensional code verification system comprises a two-dimensional code scanning module 1001, a two-dimensional code analysis module 1002 and a two-dimensional code verification module 1003. Wherein the content of the first and second substances,
the two-dimensional code scanning module 1001 is used for scanning a combined two-dimensional code displayed on a two-dimensional code display client, and the combined two-dimensional code comprises static two-dimensional code information and dynamic characteristic information which are generated according to a user identifier of the two-dimensional code display client;
the two-dimension code analyzing module 1002 is configured to analyze the combined two-dimension code to obtain static two-dimension code information, and calculate a random feature value according to dynamic feature information;
the two-dimensional code verification module 1003 is configured to send the random feature value and the static two-dimensional code information to a server, and request the server to verify the random feature value.
Further, the dynamic characteristic information may be a video; the random feature value of the dynamic feature information may be a frame rate of the video.
The two-dimensional code scanning module 1001 is configured to scan a video at a first time point to obtain a first video frame picture, and scan the video at a second time point to obtain a second video frame picture;
the two-dimensional code parsing module 1002 is configured to calculate a frame rate of the video according to a time difference between a first time point and a second time point and frame identifiers corresponding to the first video frame picture and the second video frame picture.
In this embodiment, the server generates static two-dimensional code information and a random characteristic value, so that the two-dimensional code display client can display the combined two-dimensional code according to the information, the security of the combined two-dimensional code is relatively improved, and two-dimensional code information leakage caused by copying or photographing and other modes can be avoided.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (18)
1. A two-dimensional code processing method is characterized by comprising the following steps:
when a two-dimensional code generation request sent by a two-dimensional code display client is received, generating static two-dimensional code information according to a user identifier carried in the two-dimensional code generation request;
generating a random characteristic value, wherein the random characteristic value is used for limiting the display characteristics of the dynamic characteristic information displayed by the two-dimensional code display client;
and sending the static two-dimension code information and the random characteristic value to the two-dimension code display client so that the two-dimension code display client displays a combined two-dimension code, wherein the displayed combined two-dimension code comprises the static two-dimension code information and dynamic characteristic information displayed according to the random characteristic value.
2. The method of claim 1, further comprising: storing the corresponding relation between the random characteristic value and the static two-dimensional code information;
after the static two-dimensional code information and the random characteristic value are sent to the two-dimensional code display client, the method further comprises the following steps:
receiving a two-dimensional code verification request sent by a two-dimensional code scanning client, wherein the two-dimensional code verification request comprises: the two-dimension code scanning client analyzes the scanned combined two-dimension code to obtain static two-dimension code information and a random characteristic value according to the dynamic characteristic information;
and obtaining a random characteristic value corresponding to the static two-dimension code information, and returning successful two-dimension code scanning to the two-dimension code scanning client when the random characteristic value obtained according to the dynamic characteristic information is the same as the random characteristic value corresponding to the static two-dimension code information.
3. The method according to claim 1 or 2, wherein the random feature value is a frame rate of the dynamic feature information displayed by the two-dimensional code display client.
4. The method of claim 3, wherein the dynamic feature information is video.
5. A two-dimensional code processing method is characterized by comprising the following steps:
sending a two-dimensional code generation request to a server, wherein the two-dimensional code generation request carries a user identifier;
receiving a combined two-dimensional code returned by the server, wherein the combined two-dimensional code comprises: the server generates a random characteristic value and static two-dimensional code information according to the user identification;
and generating dynamic characteristic information according to the random characteristic value, and synthesizing the dynamic characteristic information and the static two-dimensional code into a combined two-dimensional code for displaying.
6. The method of claim 5, wherein the random feature value is a frame rate of dynamic feature information displayed by the two-dimensional code display client.
7. The method of claim 6, wherein the dynamic feature information is video.
8. A two-dimensional code processing method is characterized by comprising the following steps:
scanning a combined two-dimensional code displayed on a two-dimensional code display client, wherein the combined two-dimensional code comprises static two-dimensional code information and dynamic characteristic information generated according to a user identifier of the two-dimensional code display client;
analyzing the combined two-dimension code to obtain the static two-dimension code information, and obtaining a random characteristic value according to the dynamic characteristic information;
and sending the random characteristic value and the static two-dimensional code information to a server side, and requesting the server side to verify the random characteristic value.
9. The method of claim 8, wherein the dynamic feature information is video; the random characteristic value obtained according to the dynamic characteristic information is the frame rate of the video;
the analyzing the combined two-dimensional code to obtain a random characteristic value according to the dynamic characteristic information includes:
scanning a video at a first time point to obtain a first video frame picture, and scanning the video at a second time point to obtain a second video frame picture;
and calculating the frame rate of the video according to the time difference between the first time point and the second time point and the frame identifications corresponding to the first video frame picture and the second video picture.
10. A two-dimensional code processing apparatus, comprising:
the first generation module is used for generating static two-dimensional code information according to a user identifier carried in a two-dimensional code generation request when the two-dimensional code generation request sent by a two-dimensional code display client is received;
the second generation module is used for generating a random characteristic value, and the random characteristic value is used for limiting the display characteristics of the dynamic characteristic information displayed by the two-dimensional code display client;
and the information sending module is used for sending the static two-dimensional code information and the random characteristic value to the two-dimensional code display client so that the two-dimensional code display client displays a combined two-dimensional code, and the displayed combined two-dimensional code comprises the static two-dimensional code information and the dynamic characteristic information displayed according to the random characteristic value.
11. The apparatus of claim 10, further comprising:
the storage module is used for storing the corresponding relation between the random characteristic value and the static two-dimensional code information;
the receiving module is used for receiving a two-dimensional code verification request sent by a two-dimensional code scanning client, and the two-dimensional code verification request comprises: the two-dimension code scanning client analyzes the scanned combined two-dimension code to obtain static two-dimension code information and a random characteristic value according to the dynamic characteristic information;
the searching module is used for acquiring a random characteristic value corresponding to the static two-dimensional code information;
and the judging module is used for returning the success of scanning the two-dimensional code to the two-dimensional code scanning client when the random characteristic value obtained according to the dynamic characteristic information is the same as the random characteristic value corresponding to the static two-dimensional code information.
12. The apparatus of claim 10 or 11,
and the random characteristic value is the frame rate of the dynamic characteristic information displayed by the two-dimensional code display client.
13. The apparatus of claim 12, wherein the dynamic feature information is video.
14. A two-dimensional code processing apparatus, comprising:
the request sending module is used for sending a two-dimensional code generation request to a server, wherein the two-dimensional code generation request carries a user identifier;
the information receiving module is used for receiving a combined two-dimensional code returned by the server, and the combined two-dimensional code comprises: the server generates a random characteristic value and static two-dimensional code information according to the user identification;
and the combined display module is used for generating dynamic characteristic information according to the random characteristic value and synthesizing the dynamic characteristic information and the static two-dimensional code into a combined two-dimensional code for display.
15. The apparatus of claim 14, wherein the random feature value is a frame rate of dynamic feature information displayed by the two-dimensional code display client.
16. The apparatus of claim 15, wherein the dynamic feature information is video.
17. A two-dimensional code processing apparatus, comprising:
the two-dimension code scanning module is used for scanning a combined two-dimension code displayed on a two-dimension code display client, and the combined two-dimension code comprises static two-dimension code information and dynamic characteristic information which are generated according to a user identifier of the two-dimension code display client;
the two-dimension code analysis module is used for analyzing the combined two-dimension code to obtain the static two-dimension code information and obtaining a random characteristic value according to the dynamic characteristic information;
and the two-dimension code verification module is used for sending the random characteristic value and the static two-dimension code information to a server and requesting the server to verify the random characteristic value.
18. The apparatus of claim 17, wherein the dynamic feature information is video; the random characteristic value obtained according to the dynamic characteristic information is the frame rate of the video;
the two-dimensional code scanning module is used for scanning a video at a first time point to obtain a first video frame picture and scanning the video at a second time point to obtain a second video frame picture;
and the two-dimensional code analysis module is used for calculating the frame rate of the video according to the time difference between the first time point and the second time point and the frame identifications corresponding to the first video frame picture and the second video frame picture.
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1237147A1 HK1237147A1 (en) | 2018-04-06 |
| HK1237147A true HK1237147A (en) | 2018-04-06 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106656908B (en) | A two-dimensional code processing method and device | |
| US11250229B2 (en) | Displaying and recognizing two-dimensional code | |
| CN110380864B (en) | Method, device and system for face data collection and verification | |
| CN109271757B (en) | Off-line activation method and system for software | |
| CN111310136B (en) | Authenticity verification method, device and equipment for image data | |
| CN108280369B (en) | Cloud document offline access system, intelligent terminal and method | |
| CN110335159B (en) | Application information processing method, device and equipment and readable storage medium | |
| CN112257124A (en) | Image processing method and device | |
| CN113162770A (en) | Online signature method and system | |
| US11245724B2 (en) | Spoofed webpage detection | |
| US20240411851A1 (en) | Authentication system, request apparatus, response apparatus, request method, and response method | |
| HK1237147A (en) | Two-dimensional code processing method and device | |
| HK1237147A1 (en) | Two-dimensional code processing method and device | |
| FR2969437A1 (en) | METHOD FOR AUTHENTICATING A USER OF A TERMINAL FROM A SERVICE PROVIDER | |
| JP7011860B1 (en) | Programs, terminals and methods | |
| CN118013495A (en) | Two-dimensional code verification method, device, storage medium and electronic device | |
| CN113570374A (en) | System, method and equipment of mobile payment method based on face recognition | |
| CN107948126A (en) | A kind of report inspection method and equipment | |
| CN112883752A (en) | Two-dimensional code scanning method, device and equipment | |
| CN111986166A (en) | A method and system for validity identification of multimedia evidence content | |
| CN114841728B (en) | Traffic monitoring service processing methods and electronic equipment | |
| HK40016310A (en) | Face data acquisition and verification method, device and system | |
| HK40016310B (en) | Face data acquisition and verification method, device and system | |
| WO2015045209A1 (en) | Incentive system | |
| CN116225579A (en) | Display information processing method, device, electronic equipment and storage medium |