CN111104685B - Dynamic updating method and device for two-dimension code - Google Patents

Dynamic updating method and device for two-dimension code Download PDF

Info

Publication number
CN111104685B
CN111104685B CN201911170448.7A CN201911170448A CN111104685B CN 111104685 B CN111104685 B CN 111104685B CN 201911170448 A CN201911170448 A CN 201911170448A CN 111104685 B CN111104685 B CN 111104685B
Authority
CN
China
Prior art keywords
target
dimensional code
url
display device
updating
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.)
Active
Application number
CN201911170448.7A
Other languages
Chinese (zh)
Other versions
CN111104685A (en
Inventor
温晓丽
谢振东
袁勇
邹大毕
顾裕波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yang Cheng Tong Co ltd
Original Assignee
Guangzhou Yang Cheng Tong Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Yang Cheng Tong Co ltd filed Critical Guangzhou Yang Cheng Tong Co ltd
Priority to CN201911170448.7A priority Critical patent/CN111104685B/en
Publication of CN111104685A publication Critical patent/CN111104685A/en
Application granted granted Critical
Publication of CN111104685B publication Critical patent/CN111104685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Storage Device Security (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a dynamic updating method and device of a two-dimensional code, wherein the method comprises the steps that display equipment judges whether current conditions meet predetermined two-dimensional code updating conditions or not; when the judging result is yes, the display equipment calculates the target updating total times of the two-dimensional code; the display device calculates a verification code corresponding to a target parameter of the display device based on a predetermined authentication key, updates a URL corresponding to the two-dimensional code based on the target parameter, obtains a target URL, and outputs a target two-dimensional code image corresponding to the target URL. Therefore, the method and the device can increase the copying difficulty of the two-dimensional code, enhance the safety of the original data, and reduce the possibility of decoding the original data and the probability of data leakage, thereby being beneficial to reducing the probability of loss caused by malicious copying, tampering and transmission of the two-dimensional code.

Description

Dynamic updating method and device for two-dimension code
Technical Field
The invention relates to the technical field of Internet, in particular to a dynamic updating method and device for a two-dimensional code.
Background
With the progress of technology and network technology and the development of society, network information transmission has penetrated into aspects of people's life, such as electronic shopping, social networking, network marketing, instant messaging, etc.; with the generation of the services, the two-dimensional code has the characteristics of large storage capacity, easy identification and analysis, rapid propagation on the Internet and the like, and is gradually and widely applied in the Internet field. However, due to the characteristic that the two-dimensional code is easy to identify and analyze, the situation that the two-dimensional code is copied and tampered often occurs, so how to improve the safety and reliability of the two-dimensional code is important.
Disclosure of Invention
The technical problem to be solved by the invention is to provide the dynamic updating method and the device for the two-dimensional code, which can increase the copying difficulty of the two-dimensional code by dynamically updating the two-dimensional code, enhance the safety of original data, reduce the possibility of cracking the original data and the probability of data leakage, and thereby be beneficial to reducing the probability of loss caused by malicious copying, tampering and transmission of the two-dimensional code.
In order to solve the technical problem, a first aspect of the present invention discloses a method for dynamically updating a two-dimensional code, where the method is applied to a display device, and the method includes:
the display equipment judges whether the current condition meets a predetermined two-dimensional code updating condition or not;
when the current condition is judged to meet the two-dimensional code updating condition, the display equipment calculates the target total updating times of the two-dimensional code, wherein the target total updating times are equal to the current total updating times of the two-dimensional code and are increased by 1;
the display equipment calculates a verification code corresponding to a target parameter of the display equipment based on a predetermined authentication key, wherein the target parameter comprises an identification of the display equipment and the total number of target updating times;
The display device updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain a target URL, and outputs a target two-dimensional code image corresponding to the target URL.
In an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining, by the display device, whether the current condition meets a predetermined two-dimensional code update condition includes:
the display equipment acquires real-time timing duration of a timer of the display equipment and judges whether the real-time timing duration is greater than or equal to a predetermined updating interval duration, wherein the starting time of the real-time timing duration is the last updated time of the two-dimensional code;
when the real-time timing duration is more than or equal to the updating interval duration, the display equipment determines that the current condition meets the predetermined two-dimensional code updating condition; or,
the display device detects whether an update request of the two-dimensional code is received, and when the update request is detected, the current condition is determined to meet the predetermined two-dimensional code update condition.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the display device updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter, and after obtaining the target URL and before the display device outputs the target two-dimensional code image corresponding to the target URL, the method further includes:
The display equipment determines a unique user attribute parameter of a user corresponding to the display equipment from a predetermined parameter set, encrypts the target URL based on the unique user attribute parameter to obtain an encrypted target URL, wherein the unique user attribute parameter comprises at least one of fingerprint parameter, voiceprint parameter, iris parameter and unique user identifier of the user;
the display device outputs a target two-dimensional code image corresponding to the target URL, including:
and the display equipment outputs the target two-dimensional code image corresponding to the encrypted target URL.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the display device updates a URL corresponding to the two-dimensional code based on a target parameter of the display device and a verification code corresponding to the target parameter, and after obtaining the target URL, before the display device outputs a target two-dimensional code image corresponding to the target URL, the method further includes:
the display equipment judges whether the target URL bears all the content to be displayed or not;
when the target URL contains all the content, the display equipment triggers and executes the operation of outputting the target two-dimensional code image corresponding to the target URL;
When it is determined that the target URL does not contain at least one target content of the entire contents, the display device determines the target content not contained in the target URL based on the entire contents, and updates the target URL based on the target content.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the outputting, by the display device, a target two-dimensional code image corresponding to the target URL includes:
the display device converts the target URL into a target two-dimensional code image and outputs the target two-dimensional code image.
The second aspect of the embodiment of the invention discloses a dynamic updating device of a two-dimensional code, which is applied to display equipment and comprises a first judging module, a calculating module, an updating module and an output module, wherein:
the first judging module is used for judging whether the current condition meets the predetermined two-dimensional code updating condition;
the computing module is used for computing the target total update times of the two-dimensional code when the first judging module judges that the current condition meets the two-dimensional code update condition, wherein the target total update times are equal to the current update total times of the two-dimensional code by 1;
The computing module is further used for computing a verification code corresponding to a target parameter of the display device based on a predetermined authentication key, wherein the target parameter comprises an identifier of the display device and the total number of target updating times;
the updating module is used for updating the URL corresponding to the two-dimensional code based on the target parameter of the display equipment and the verification code corresponding to the target parameter to obtain a target URL;
and the output module is used for outputting the target two-dimensional code image corresponding to the target URL.
In a second aspect of the embodiment of the present invention, the mode of determining, by the first determining module, whether the current condition meets the predetermined two-dimensional code update condition specifically is:
acquiring real-time timing duration of a timer of the display device, and judging whether the real-time timing duration is greater than or equal to a predetermined updating interval duration, wherein the starting time of the real-time timing duration is the last updated time of the two-dimensional code;
when the real-time timing duration is more than or equal to the updating interval duration, determining that the current condition meets the predetermined two-dimensional code updating condition; or,
And detecting whether an update request of the two-dimensional code is received, and determining that the current condition meets the predetermined two-dimensional code update condition when the update request is detected.
In a second aspect of the embodiment of the present invention, as an optional implementation manner, the dynamic updating apparatus further includes a filtering module and an encryption module, where:
the screening module is used for screening a random code from a predetermined random code set after the updating module updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain the target URL and before the output module outputs the target two-dimensional code image corresponding to the target URL;
the encryption module is used for encrypting the target URL based on the random code to obtain an encrypted target URL;
the specific mode of outputting the target two-dimensional code image corresponding to the target URL by the output module is as follows:
and outputting the target two-dimensional code image corresponding to the encrypted target URL.
In a second aspect of the embodiment of the present invention, as an optional implementation manner, the dynamic updating apparatus further includes a second judging module and a determining module, where:
The second judging module is configured to judge whether the target URL carries all content to be displayed after the updating module updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain the target URL, and before the output module outputs the target two-dimensional code image corresponding to the target URL;
the output module is further configured to output a target two-dimensional code image corresponding to the target URL when the second judging module judges that the target URL includes the whole content;
the determining module is used for determining target content which is not contained in the target URL based on the whole content when the second judging module judges that the target URL does not contain at least one target content in the whole content;
the updating module is further configured to update the target URL based on the target content.
In a second aspect of the embodiment of the present invention, the outputting means outputs the target two-dimensional code image corresponding to the target URL specifically includes:
and converting the target URL into a target two-dimensional code image and outputting the target two-dimensional code image.
The third aspect of the present invention discloses another dynamic updating device for two-dimensional codes, the device comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor calls the executable program codes stored in the memory to execute the dynamic updating method of the two-dimensional code disclosed in the first aspect of the invention.
A fourth aspect of the invention discloses a computer-readable storage medium storing computer instructions which, when invoked, are adapted to perform the method of dynamic updating of one-dimensional codes disclosed in the second aspect of the invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the embodiment of the invention discloses a dynamic updating method and device of a two-dimensional code, wherein the method comprises the following steps: the display equipment judges whether the current condition meets a predetermined two-dimensional code updating condition or not; when the current condition is judged to meet the two-dimensional code updating condition, the display equipment calculates the target total updating times of the two-dimensional code, wherein the target total updating times are equal to the current total updating times of the two-dimensional code by 1; the display equipment calculates a verification code corresponding to a target parameter of the display equipment based on a predetermined authentication key, wherein the target parameter comprises the identification of the display equipment and the total number of target updating times; the display device updates the URL corresponding to the two-dimensional code based on the identification of the display device, the total number of target updating and the verification code to obtain a target URL, and outputs a target two-dimensional code image corresponding to the target URL. It can be seen that by judging whether the current condition meets the two-dimensional code updating condition or not and calculating the total updating times of the two-dimensional code when the current condition meets the two-dimensional code updating condition, updating the URL corresponding to the two-dimensional code based on the identification of the display equipment, the total updating times of the two-dimensional code and the equipment parameters of the display equipment, and outputting the two-dimensional code image corresponding to the updated two-dimensional code URL, the embodiment of the invention realizes dynamic updating of the two-dimensional code, can increase the copying difficulty of the two-dimensional code, enhances the safety of original data, reduces the possibility of original data decoding and the probability of data leakage, and is beneficial to reducing the probability of loss caused by malicious copying, tampering and propagation of the two-dimensional code.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a dynamic update method of a two-dimensional code according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for dynamically updating two-dimensional codes according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a dynamic updating device for two-dimensional codes according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another dynamic updating device for two-dimensional codes according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a dynamic updating device for two-dimensional codes according to another embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or elements but may, in the alternative, include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a dynamic updating method and a dynamic updating device for a two-dimensional code, which can judge whether the current condition meets the updating condition of the two-dimensional code, calculate the total updating times of the two-dimensional code when the current condition meets the updating condition of the two-dimensional code, update the URL corresponding to the two-dimensional code based on the identification of a display device, the total updating times of the two-dimensional code and the device parameter of the display device, output a two-dimensional code image corresponding to the updated URL of the two-dimensional code, realize the dynamic updating of the two-dimensional code, increase the copying difficulty of the two-dimensional code, enhance the safety of original data, reduce the possibility of decoding the original data and the probability of data leakage, and further be beneficial to reducing the probability of loss caused by malicious copying, tampering and propagation of the two-dimensional code. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a dynamic update method for two-dimensional codes according to an embodiment of the invention. The dynamic updating method of the two-dimension code described in fig. 1 can be applied to a display device, wherein the display device establishes connection with a user terminal based on wireless bluetooth, and the display device establishes communication with a background server through the user terminal. Further, the screen of the display device is an electronic paper display screen (also called an electronic paper screen or a digital paper screen), and the display device is used for dynamically displaying two dimensions. Still further, the display device may be controlled to dynamically display the two-dimensional code through a user terminal bound to the display device. As shown in fig. 1, the dynamic update method of the two-dimensional code may include the following steps:
101. the display device judges whether the current condition meets a predetermined two-dimensional code updating condition. When the current condition is judged to meet the predetermined two-dimensional code updating condition, triggering and executing step 102; and when the current condition is judged not to meet the predetermined two-dimensional code updating condition, ending the flow.
In the embodiment of the present invention, as an optional implementation of time-based, the display device determining whether the current condition meets the predetermined two-dimensional code update condition may include:
The display equipment acquires the real-time timing duration of the timer of the display equipment and judges whether the real-time timing duration is greater than or equal to the predetermined updating interval duration, wherein the starting time of the real-time timing duration is the last updated time of the two-dimensional code;
when the real-time period is larger than or equal to the update interval time period, the display device determines that the current condition meets the predetermined two-dimensional code update condition.
In this alternative embodiment, the timer of the display device records the real-time display duration of the two-dimensional code currently displayed on the display device as the real-time timing duration of the timer. Therefore, when the real-time display time length of the currently displayed two-dimensional code on the display equipment reaches the predetermined update interval time length, the subsequent dynamic update operation of the two-dimensional code can be conveniently executed in time.
In this alternative embodiment, the predetermined update interval duration may be set by the user of the display device according to actual requirements, for example: the update interval duration of the two-dimension code which the user hopes to update is 2 minutes, namely the user hopes to update the two-dimension code every 2 minutes, and the predetermined update interval duration can also be automatically set by the display equipment according to the content type of the two-dimension code which needs to be displayed, wherein the content type of the two-dimension code can comprise a coupon receiving type. Thus, the update interval duration of the two-dimensional code is determined in various modes, and the determination flexibility of the update interval duration of the two-dimensional code can be improved.
It can be seen that the alternative embodiment can realize the judgment of the update condition of the two-dimensional code by comparing the real-time timing duration of the timer of the display device with the predetermined update interval duration.
In the embodiment of the present invention, as another alternative implementation of time-based, the determining, by the display device, whether the current condition meets the predetermined two-dimensional code update condition may include:
the display device detects whether an update request of the two-dimensional code is received, and when the update request is detected, it is determined that the current condition meets a predetermined two-dimensional code update condition.
In this optional embodiment, the update request of the two-dimensional code may be triggered by the user through the display device, or may be triggered by the user through the user binding with the display device. When the user is closer to the display device, the user can select to trigger the update request of the two-dimensional code on the display device or the user terminal, when the user is farther away, the user can remotely trigger the update request of the two-dimensional code through the user terminal, the triggering possibility of the update request of the two-dimensional code can be improved, the triggering way of the update request of the two-dimensional code is selected according to actual conditions, the triggering flexibility of the update request of the two-dimensional code can be improved, and the experience of the user is improved. Further, the triggering mode of the update request of the two-dimensional code includes at least one of iris triggering, voiceprint triggering and fingerprint triggering, which is not limited in the embodiment of the present invention.
It can be seen that this alternative embodiment can realize the judgement of the update condition of the two-dimensional code by detecting the update request of the two-dimensional code.
In an alternative embodiment, after detecting the update request and before determining that the current condition meets the predetermined two-dimensional code update condition, the dynamic update method of the two-dimensional code may include the following steps:
the display equipment acquires attribute parameters of a trigger triggering the update request of the two-dimensional code, and judges whether the trigger is an authorized user or not according to the attribute parameters;
when the trigger is judged to be an authorized user, the display device triggers and executes the operation of determining that the current condition meets the predetermined two-dimensional code updating condition.
In this alternative embodiment, further, when it is determined that the trigger is not an authorized user, the display device collects image data of the trigger, stores association information between attribute parameters of the trigger and the image data of the trigger, and marks unauthorized users of the trigger. Therefore, when the display equipment fails and/or the content contained in the two-dimensional code on the display equipment is not the required content, the tracking of the unauthorized user of the display equipment and the intelligent function of the display equipment can be enriched according to the related information of the attribute parameters of the trigger and the image data of the trigger.
In this alternative embodiment, the attribute parameter may include at least one of a voice parameter, a voiceprint parameter, a fingerprint parameter, and an iris parameter, and the alternative embodiment is not limited thereto.
Therefore, after the update request of the two-dimension code is detected, the optional embodiment further judges whether the trigger is an authorized user according to the acquired attribute parameter of the trigger triggering the update request of the two-dimension code, and when the trigger is the authorized user, the condition that the update condition of the two-dimension code is met is determined, so that the condition that an illegal user illegally damages the display equipment and/or modifies the content contained in the two-dimension code displayed by the display equipment can be reduced.
102. And the display equipment calculates the target updating total times of the two-dimension code, and calculates the verification code corresponding to the target parameter of the display equipment based on the predetermined authentication key.
In the embodiment of the invention, the target parameter comprises the identification of the display equipment and the total number of target updating times. The identifier of the display device may include any one of a serial number identifier of the display device, a model identifier of the display device, and a graphic identifier of the display device, which is not limited in the embodiment of the present invention. The total number of target updates is equal to 1 increased by the current total number of updates of the two-dimensional code.
In another optional embodiment, the method for dynamically updating the two-dimensional code may include the following steps
The display equipment acquires a first random number from a database, generates a second random number of the display equipment based on the first random number and a serial number of the display equipment, and stores a plurality of groups of random numbers for generating an authentication key in the database;
the display device obtains two-dimensional code data needed to be borne on the two-dimensional code and an initial authentication key of the display device, performs encryption operation on the two-dimensional code data, the initial authentication key and the second random number based on a predetermined encryption algorithm to obtain encrypted data, and determines the encrypted data as the predetermined authentication key.
In the optional embodiment, the two-dimensional code data can comprise content to be promoted (for example, english training) and a contact way corresponding to the promoted content, wherein the content to be promoted comprises advertisement content and/or preferential content.
In this alternative embodiment, the encryption algorithm may include one or more combination of hash, symmetric and asymmetric encryption algorithms.
It can be seen that the optional embodiment generates the required authentication key based on the random number of the display device, the serial number of the display device, the two-dimensional code data required to be borne on the two-dimensional code and the initial authentication key of the display device, and can generate the unique authentication key, thereby being beneficial to obtaining the verification code of the target parameter of the unique display device subsequently, improving the reliability of dynamic update of the two-dimensional code, improving the safety and reliability of the two-dimensional code data, and further improving the difficulty of copying and falsifying the two-dimensional code data.
103. And the display equipment updates the URL corresponding to the two-dimensional code based on the target parameter of the display equipment and the verification code corresponding to the target parameter to obtain the target URL.
In yet another alternative embodiment, after performing the finishing step 103 and before performing the step 104, the dynamic update method of the two-dimensional code may include the following steps:
the display equipment judges whether the target URL bears all the contents to be displayed or not;
when the target URL is judged to contain all the content, the display device triggers to execute step 104;
when it is judged that the target URL does not contain at least one target content of the entire contents, the display apparatus determines the target content not contained in the target URL based on the entire contents, and re-updates the target URL based on the target content.
In this alternative embodiment, the total content to be displayed may include at least one of advertisement content and preferential content to be displayed. The coupon content may include coupon use time, coupon use limit (for example, 10 yuan of coupons are available every 100 yuan), coupon use range (for example, fresh fruits and vegetables), and store of coupon use, which is not limited in the embodiment of the invention.
In this optional embodiment, as an optional implementation manner, the determining, by the display device, whether the target URL carries all the content to be displayed may include:
the display equipment analyzes the target URL to obtain the bearing content of the target URL, and judges whether the bearing content is the same as all the contents to be displayed;
and when the bearing content is judged to be the same as all the content to be displayed, the display equipment determines whether the target URL bears all the content to be displayed.
Therefore, in the alternative embodiment, the load content of the URL is obtained by analyzing the updated URL, and the load content is compared with all the contents to be displayed, so as to realize the judgment that the URL loads all the contents to be displayed.
Therefore, after updating the URL of the two-dimension code, the optional embodiment further judges whether the updated URL carries all the contents to be carried, so that not only can the URL with high security be obtained, but also all the contents to be displayed/promoted can be ensured to be carried in the URL, and the intelligent function of the display device is further enriched.
104. And the display equipment outputs a target two-dimensional code image corresponding to the target URL.
In an embodiment of the present invention, as an optional implementation manner, the outputting, by the display device, the target two-dimensional code image corresponding to the target URL may include:
the display device converts the target URL into a target two-dimensional code image and outputs the target two-dimensional code image.
It can be seen that this alternative embodiment realizes the output of two-dimensional code image after converting the URL of two-dimensional code into two-dimensional code image.
It can be seen that implementing the dynamic update method of the two-dimensional code described in fig. 1 can determine whether the current condition meets the update condition of the two-dimensional code, and when the current condition meets the update condition, calculate the total update times of the two-dimensional code, update URLs corresponding to the two-dimensional code based on the identification of the display device, the total update times of the two-dimensional code, and the device parameters of the display device, and output two-dimensional code images corresponding to the updated URLs of the two-dimensional code, thereby implementing dynamic update of the two-dimensional code, increasing the copying difficulty of the two-dimensional code, enhancing the security of the original data, and reducing the possibility of decoding the original data and the probability of data leakage, so as to be beneficial to reducing the probability of loss caused by malicious copying, tampering and propagation of the two-dimensional code.
Example two
Referring to fig. 2, fig. 2 is a flow chart of another method for dynamically updating two-dimensional codes according to an embodiment of the invention. The dynamic updating method of the two-dimension code described in fig. 2 can be applied to a display device, wherein the display device establishes a connection with a user terminal based on wireless bluetooth, and the display device communicates with a background server through the user terminal. Further, the screen of the display device is an electronic paper display screen (also called an electronic paper screen or a digital paper screen), and the display device is used for dynamically displaying the two-dimensional code. As shown in fig. 2, the dynamic update method of the two-dimensional code may include the following steps:
201. the display device judges whether the current condition meets a predetermined two-dimensional code updating condition. When the current condition is judged to meet the predetermined two-dimensional code updating condition, triggering and executing step 102; and when the current condition is judged not to meet the predetermined two-dimensional code updating condition, ending the flow.
202. The display device calculates the target total update times of the two-dimension code, and calculates a verification code corresponding to a target parameter of the display device based on the predetermined authentication key, wherein the target parameter comprises the identification of the display device and the target total update times.
In the embodiment of the invention, the total number of target updates is equal to 1 increased by the current total number of updates of the two-dimensional code.
203. And the display equipment updates the URL corresponding to the two-dimensional code based on the target parameter of the display equipment and the verification code to obtain a target URL.
204. The display device determines a unique user attribute parameter for a user corresponding to the display device from a predetermined set of parameters.
In the embodiment of the present invention, the unique user attribute parameter includes at least one of a fingerprint parameter, a voiceprint parameter, an iris parameter, and a unique user identifier of the user, which is not limited in the embodiment of the present invention.
In an optional embodiment, the method for dynamically updating the two-dimensional code may further include the following steps:
the display equipment judges whether the predetermined parameter set has unique user attribute parameters of a user corresponding to the display equipment;
when judging that the parameter set has the unique user attribute parameter of the user corresponding to the display device, the display device triggers the operation of determining the unique user attribute parameter of the user corresponding to the display device from the predetermined parameter set;
when it is determined that the parameter set does not have the unique user attribute parameter of the user corresponding to the display device, the display device outputs a parameter input prompt for prompting the user to input the unique user attribute parameter, and triggers execution of step 205 when the unique user attribute parameter is detected.
It can be seen that this alternative embodiment performs the subsequent operation of encrypting the URL based on the unique user attribute parameter when it is determined that the unique user attribute parameter exists by first determining whether the predetermined parameter set exists; when judging that the two-dimension code does not exist, outputting a parameter input prompt to a user so as to prompt the user to input the unique user attribute parameter, and ensuring that the unique attribute parameter of the user corresponding to the display equipment is acquired, thereby being beneficial to improving the possibility of encrypting the URL based on the unique user attribute parameter and further being beneficial to further improving the safety and reliability of the two-dimension code.
205. The display device encrypts the target URL based on the unique user attribute parameter to obtain the encrypted target URL.
206. And the display equipment outputs the target two-dimensional code image corresponding to the encrypted target URL.
In the embodiment of the present invention, please refer to the detailed description of the embodiment for the step 201 to the step 203 and the step 206, and the detailed description of the embodiment for the step 101 to the step 104 is omitted.
It can be seen that implementing the dynamic update method of the two-dimensional code described in fig. 2 can determine whether the current condition meets the update condition of the two-dimensional code, when the current condition meets the update condition of the two-dimensional code, calculate the total update times of the two-dimensional code, update URLs corresponding to the two-dimensional code based on the identification of the display device, the total update times of the two-dimensional code and the device parameters of the display device, output two-dimensional code images corresponding to the updated URLs of the two-dimensional code, realize dynamic update of the two-dimensional code, increase the copying difficulty of the two-dimensional code, enhance the security of original data, reduce the possibility of cracking the original data and the probability of data leakage, thereby being beneficial to reducing the probability of loss caused by malicious copying, tampering and propagation of the two-dimensional code, and encrypt the URLs based on unique user attribute parameters before outputting the two-dimensional code images corresponding to the URLs, and further improve the security and reliability of the two-dimensional code data.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a dynamic updating device for two-dimensional codes according to an embodiment of the invention. The dynamic updating device of the two-dimension code described in fig. 3 can be applied to a display device, wherein the display device establishes a connection with a user terminal based on wireless bluetooth, and the display device communicates with a background server through the user terminal. Further, the screen of the display device is an electronic paper display screen (also called an electronic paper screen or a digital paper screen), and the display device is used for dynamically displaying the two-dimensional code. As shown in fig. 3, the dynamic updating device for a two-dimensional code may include a first judging module 301, a calculating module 302, an updating module 303, and an output module 304, where:
the first determining module 301 is configured to determine whether the current condition meets a predetermined two-dimensional code update condition.
A calculating module 302, configured to calculate a target total number of updates of the two-dimensional code when the first judging module 301 judges that the current condition meets the two-dimensional code update condition, where the target total number of updates is equal to the current total number of updates of the two-dimensional code increased by 1;
the calculating module 302 is further configured to calculate, based on the predetermined authentication key, a verification code corresponding to a target parameter of the display device, where the target parameter includes an identifier of the display device and a total number of target updates.
And the updating module 303 is configured to update the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter, so as to obtain the target URL.
And the output module 304 is configured to output a target two-dimensional code image corresponding to the target URL.
It can be seen that the dynamic updating device for implementing the two-dimensional code described in fig. 3 can determine whether the current condition meets the two-dimensional code updating condition, and when the current condition meets the two-dimensional code updating condition, calculate the total number of updates of the two-dimensional code, update the URL corresponding to the two-dimensional code based on the identifier of the display device, the total number of updates of the two-dimensional code and the device parameter of the display device, output the two-dimensional code image corresponding to the updated two-dimensional code URL, realize dynamic updating of the two-dimensional code, increase the copying difficulty of the two-dimensional code, enhance the security of the original data, reduce the possibility of decoding the original data and the probability of data leakage, and thereby be favorable for reducing the probability of loss caused by malicious copying, tampering and propagation of the two-dimensional code.
In an alternative embodiment, the first determining module 301 determines whether the current condition meets the predetermined two-dimensional code update condition specifically is:
acquiring real-time timing duration of a timer of the display device, and judging whether the real-time timing duration is greater than or equal to a predetermined updating interval duration, wherein the starting time of the real-time timing duration is the last updated time of the two-dimensional code;
When the real-time length is larger than or equal to the update interval time length, determining that the current condition meets the predetermined two-dimensional code update condition;
in this alternative embodiment, the timer of the display device records the real-time display duration of the two-dimensional code currently displayed on the display device as the real-time timing duration of the timer. Therefore, when the real-time display time length of the currently displayed two-dimensional code on the display equipment reaches the predetermined update interval time length, the subsequent dynamic update operation of the two-dimensional code can be conveniently executed in time.
In this alternative embodiment, the predetermined update interval duration may be set by the user of the display device according to actual requirements, for example: the update interval duration of the two-dimension code which the user hopes to update is 2 minutes, namely the user hopes to update the two-dimension code every 2 minutes, and the predetermined update interval duration can also be automatically set by the display equipment according to the content type of the two-dimension code which needs to be displayed, wherein the content type of the two-dimension code can comprise a coupon receiving type. Thus, the update interval duration of the two-dimensional code is determined in various modes, and the determination flexibility of the update interval duration of the two-dimensional code can be improved.
Or,
and detecting whether an update request of the two-dimensional code is received, and determining that the current condition meets the predetermined two-dimensional code update condition when the update request is detected.
In this optional embodiment, the update request of the two-dimensional code may be triggered by the user through the display device, or may be triggered by the user through the user binding with the display device. When the user is closer to the display device, the user can select to trigger the update request of the two-dimensional code on the display device or the user terminal, when the user is farther away, the user can remotely trigger the update request of the two-dimensional code through the user terminal, the triggering possibility of the update request of the two-dimensional code can be improved, the triggering way of the update request of the two-dimensional code is selected according to actual conditions, the triggering flexibility of the update request of the two-dimensional code can be improved, and the experience of the user is improved. Further, the triggering mode of the update request of the two-dimensional code includes at least one of iris triggering, voiceprint triggering and fingerprint triggering, which is not limited in the embodiment of the present invention.
It can be seen that the dynamic updating device for implementing the two-dimensional code described in fig. 3 can also implement the judgment of the two-dimensional code updating condition by comparing the real-time timing duration of the timer of the display device with the predetermined updating interval duration, or can implement the judgment of the two-dimensional code updating condition by detecting the updating request of the two-dimensional code.
In another optional embodiment, the device for dynamically updating a two-dimensional code may further include a filtering module 305 and an encrypting module 306, and at this time, a schematic structure of the device for dynamically updating a two-dimensional code may be shown in fig. 4, and fig. 4 is a schematic structure of another device for dynamically updating a two-dimensional code, where:
the screening module 305 is configured to screen a random code from a predetermined random code set after the updating module 303 updates a URL corresponding to a two-dimensional code based on a target parameter of the display device and a verification code corresponding to the target parameter to obtain the target URL, and before the outputting module 304 outputs a target two-dimensional code image corresponding to the target URL.
And the encryption module 306 is configured to encrypt the target URL based on a certain random code, so as to obtain an encrypted target URL.
The specific way for the output module 304 to output the target two-dimensional code image corresponding to the target URL is:
and outputting the target two-dimensional code image corresponding to the encrypted target URL.
Therefore, the dynamic updating device for implementing the two-dimensional code described in fig. 4 can encrypt the URL based on the unique user attribute parameter before outputting the two-dimensional code image corresponding to the URL, so that the safety and reliability of the two-dimensional code data can be further improved.
In yet another alternative embodiment, as shown in fig. 4, the above-mentioned dynamic update device for two-dimensional code may further include a second judging module 307 and a determining module 308, where:
the second determining module 307 is configured to determine, after the updating module 303 updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain the target URL, and before the output module 304 outputs the target two-dimensional code image corresponding to the target URL, whether the target URL carries all the contents to be displayed.
The output module 304 is further configured to output a target two-dimensional code image corresponding to the target URL when the second determining module 307 determines that the target URL includes all contents.
A determining module 308, configured to determine, when the second determining module 307 determines that the target URL does not include at least one target content of the total content, that the target URL does not include the target content based on the total content.
The updating module 303 is further configured to re-update the target URL based on the target content.
Therefore, the dynamic updating device for implementing the two-dimension code described in fig. 4 can further judge whether the updated URL carries all the contents to be carried after updating the URL of the two-dimension code, so that not only can the URL with high security be obtained, but also all the contents to be displayed/promoted can be ensured to be carried in the URL, and the intelligent function of the display device is further enriched.
In yet another alternative embodiment, as shown in fig. 4, the outputting module 304 outputs the target two-dimensional code image corresponding to the target URL specifically includes:
and converting the target URL into a target two-dimensional code image and outputting the target two-dimensional code image.
It can be seen that the dynamic updating device for implementing the two-dimensional code described in fig. 4 can realize the output of the two-dimensional code image after the URL of the two-dimensional code is converted into the two-dimensional code image.
In yet another alternative embodiment, as shown in fig. 4, the first determining module 301 is further configured to collect attribute parameters of a trigger triggering an update request of the two-dimensional code after detecting the update request and before determining that a current condition meets a predetermined two-dimensional code update condition, and determine whether the trigger is an authorized user according to the attribute parameters;
when the trigger is judged to be an authorized user, triggering and executing the operation of determining that the current condition meets the predetermined two-dimensional code updating condition.
In this alternative embodiment, the first determining module 301 is further configured to, when it is determined that the trigger is not an authorized user, collect image data of the trigger, store association information between attribute parameters of the trigger and the image data of the trigger, and mark an unauthorized user of the trigger. Therefore, when the display equipment fails and/or the content contained in the two-dimensional code on the display equipment is not the required content, the tracking of the unauthorized user of the display equipment and the intelligent function of the display equipment can be enriched according to the related information of the attribute parameters of the trigger and the image data of the trigger.
In this alternative embodiment, the attribute parameter may include at least one of a voice parameter, a voiceprint parameter, a fingerprint parameter, and an iris parameter, and the alternative embodiment is not limited thereto.
Therefore, the dynamic updating device for implementing the two-dimensional code described in fig. 4 can further judge whether the trigger is an authorized user according to the acquired attribute parameters of the trigger triggering the update request of the two-dimensional code after detecting the update request of the two-dimensional code, and only when the trigger is the authorized user, the condition that the update condition of the two-dimensional code is met is determined, so that the condition that an illegal user illegally damages the display device and/or modifies the content contained in the two-dimensional code displayed by the display device can be reduced.
In yet another alternative embodiment, as shown in fig. 4, the determining module 308 is further configured to obtain a first random number from a database, generate a second random number of the display device based on the first random number and a serial number of the display device, store a plurality of sets of random numbers for generating an authentication key in the database, obtain two-dimensional code data to be carried on a two-dimensional code and an initial authentication key of the display device, perform an encryption operation on the two-dimensional code data, the initial authentication key, and the second random number based on a predetermined encryption algorithm, obtain encrypted data, and determine the encrypted data as the predetermined authentication key.
It can be seen that the dynamic updating device for implementing the two-dimensional code described in fig. 4 can generate the unique authentication key by generating the required authentication key based on the random number of the display device, the serial number of the display device, the two-dimensional code data required to be borne on the two-dimensional code and the initial authentication key of the display device, thereby being beneficial to obtaining the verification code of the target parameter of the unique display device subsequently, improving the reliability of dynamic updating of the two-dimensional code, improving the safety and reliability of the two-dimensional code data, and further improving the difficulty of copying and falsifying the two-dimensional code data.
In yet another alternative embodiment, as shown in fig. 4, the second determining module 307 is further configured to determine whether the predetermined parameter set has a unique user attribute parameter of the user corresponding to the display device.
The determining module 308 is further configured to determine, when the second determining module 307 determines that the parameter set has the unique user attribute parameter of the user corresponding to the display device, an operation of determining, from the predetermined parameter set, the unique user attribute parameter of the user corresponding to the display device.
The output module 304 is further configured to output a parameter input prompt when the second judging module 307 judges that the parameter set does not have the unique user attribute parameter of the user corresponding to the display device, where the parameter input prompt is used to prompt the user to input the unique user attribute parameter.
The encryption module 306 is further configured to encrypt the target URL based on the unique user attribute parameter when the unique user attribute parameter is detected, to obtain an encrypted target URL.
It can be seen that this alternative embodiment performs the subsequent operation of encrypting the URL based on the unique user attribute parameter when it is determined that the unique user attribute parameter exists by first determining whether the predetermined parameter set exists; when judging that the two-dimension code does not exist, outputting a parameter input prompt to a user so as to prompt the user to input the unique user attribute parameter, and ensuring that the unique attribute parameter of the user corresponding to the display equipment is acquired, thereby being beneficial to improving the possibility of encrypting the URL based on the unique user attribute parameter and further being beneficial to further improving the safety and reliability of the two-dimension code.
Example IV
Referring to fig. 5, fig. 5 is a schematic structural diagram of a dynamic updating device for two-dimensional codes according to an embodiment of the invention. As shown in fig. 5, the dynamic updating device for a two-dimensional code may include:
a memory 501 in which executable program codes are stored;
a processor 502 coupled to the memory 501;
the processor 502 invokes executable program codes stored in the memory 501 for performing the operations of the dynamic update method for the two-dimensional code described in the first or second embodiment.
Example five
The embodiment of the invention discloses a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the operation of the dynamic updating method of the two-dimensional code described in the first embodiment or the second embodiment.
Example six
An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations of the dynamic update method for a two-dimensional code described in the first embodiment or the second embodiment.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a dynamic updating method and device for two-dimension codes, which are disclosed by the embodiment of the invention and are only used for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (14)

1. A method for dynamically updating a two-dimensional code, wherein the method is applied to a display device, and the method comprises the following steps:
the display equipment judges whether the current condition meets a predetermined two-dimensional code updating condition or not;
when the current condition is judged to meet the two-dimensional code updating condition, the display equipment calculates the target total updating times of the two-dimensional code, wherein the target total updating times are equal to the current total updating times of the two-dimensional code and are increased by 1;
the display equipment calculates a verification code corresponding to a target parameter of the display equipment based on a predetermined authentication key, wherein the target parameter comprises an identification of the display equipment and the total number of target updating times;
The display device updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain a target URL, and outputs a target two-dimensional code image corresponding to the target URL;
the method further comprises the steps of:
the display equipment acquires a first random number from a database, generates a second random number of the display equipment based on the first random number and a serial number of the display equipment, and stores a plurality of groups of random numbers for generating an authentication key in the database;
the display device obtains two-dimensional code data needed to be borne on the two-dimensional code and an initial authentication key of the display device, performs encryption operation on the two-dimensional code data, the initial authentication key and the second random number based on a predetermined encryption algorithm to obtain encrypted data, and determines the encrypted data as a predetermined authentication key.
2. The method for dynamically updating a two-dimensional code according to claim 1, wherein the display device determining whether the current condition satisfies a predetermined two-dimensional code updating condition comprises:
the display equipment acquires real-time timing duration of a timer of the display equipment and judges whether the real-time timing duration is greater than or equal to a predetermined updating interval duration, wherein the starting time of the real-time timing duration is the last updated time of the two-dimensional code;
When the real-time timing duration is more than or equal to the updating interval duration, the display equipment determines that the current condition meets the predetermined two-dimensional code updating condition; or,
the display device detects whether an update request of the two-dimensional code is received, and when the update request is detected, the current condition is determined to meet the predetermined two-dimensional code update condition.
3. The dynamic update method of a two-dimensional code according to claim 1 or 2, wherein the display device updates a URL corresponding to the two-dimensional code based on a target parameter of the display device and a verification code corresponding to the target parameter, and the method further comprises:
the display equipment determines a unique user attribute parameter of a user corresponding to the display equipment from a predetermined parameter set, encrypts the target URL based on the unique user attribute parameter to obtain an encrypted target URL, wherein the unique user attribute parameter comprises at least one of fingerprint parameter, voiceprint parameter, iris parameter and unique user identifier of the user;
The display device outputs a target two-dimensional code image corresponding to the target URL, including:
and the display equipment outputs the target two-dimensional code image corresponding to the encrypted target URL.
4. The method for dynamically updating a two-dimensional code according to claim 1 or 2, wherein the display device updates a URL corresponding to the two-dimensional code based on a target parameter of the display device and a verification code corresponding to the target parameter, and after obtaining the target URL, the method further comprises, before the display device outputs a target two-dimensional code image corresponding to the target URL:
the display equipment judges whether the target URL bears all the content to be displayed or not;
when the target URL contains all the content, the display equipment triggers and executes the operation of outputting the target two-dimensional code image corresponding to the target URL;
when it is determined that the target URL does not contain at least one target content of the entire contents, the display device determines the target content not contained in the target URL based on the entire contents, and updates the target URL based on the target content.
5. The method for dynamically updating a two-dimensional code according to claim 3, wherein the display device updates a URL corresponding to the two-dimensional code based on a target parameter of the display device and a verification code corresponding to the target parameter, and after obtaining the target URL, the method further comprises, before the display device outputs a target two-dimensional code image corresponding to the target URL:
The display equipment judges whether the target URL bears all the content to be displayed or not;
when the target URL contains all the content, the display equipment triggers and executes the operation of outputting the target two-dimensional code image corresponding to the target URL;
when it is determined that the target URL does not contain at least one target content of the entire contents, the display device determines the target content not contained in the target URL based on the entire contents, and updates the target URL based on the target content.
6. The dynamic update method of two-dimensional codes according to claim 1, 2 or 5, wherein the display device outputs a target two-dimensional code image corresponding to the target URL, comprising:
the display device converts the target URL into a target two-dimensional code image and outputs the target two-dimensional code image.
7. The method for dynamically updating a two-dimensional code according to claim 4, wherein the display device outputs a target two-dimensional code image corresponding to the target URL, comprising:
the display device converts the target URL into a target two-dimensional code image and outputs the target two-dimensional code image.
8. The utility model provides a dynamic updating device of two-dimensional code, its characterized in that, dynamic updating device is applied to in the display device, dynamic updating device includes first judgement module, calculation module, update module and output module, wherein:
the first judging module is used for judging whether the current condition meets the predetermined two-dimensional code updating condition;
the computing module is used for computing the target total update times of the two-dimensional code when the first judging module judges that the current condition meets the two-dimensional code update condition, wherein the target total update times are equal to the current update total times of the two-dimensional code by 1;
the computing module is further used for computing a verification code corresponding to a target parameter of the display device based on a predetermined authentication key, wherein the target parameter comprises an identifier of the display device and the total number of target updating times;
the updating module is used for updating the URL corresponding to the two-dimensional code based on the target parameter of the display equipment and the verification code corresponding to the target parameter to obtain a target URL;
the output module is used for outputting a target two-dimensional code image corresponding to the target URL;
The device is further used for acquiring a first random number from a database, generating a second random number of the display device based on the first random number and a serial number of the display device, and storing a plurality of groups of random numbers used for generating an authentication key in the database; and acquiring two-dimensional code data required to be borne on the two-dimensional code and an initial authentication key of the display device, performing encryption operation on the two-dimensional code data, the initial authentication key and the second random number based on a predetermined encryption algorithm to obtain encrypted data, and determining the encrypted data as a predetermined authentication key.
9. The device for dynamically updating a two-dimensional code according to claim 8, wherein the first judging module judges whether the current condition satisfies the predetermined two-dimensional code updating condition by:
acquiring real-time timing duration of a timer of the display device, and judging whether the real-time timing duration is greater than or equal to a predetermined updating interval duration, wherein the starting time of the real-time timing duration is the last updated time of the two-dimensional code;
when the real-time timing duration is more than or equal to the updating interval duration, determining that the current condition meets the predetermined two-dimensional code updating condition; or,
And detecting whether an update request of the two-dimensional code is received, and determining that the current condition meets the predetermined two-dimensional code update condition when the update request is detected.
10. The dynamic updating device of two-dimensional codes according to claim 8 or 9, further comprising a filtering module and an encrypting module, wherein:
the screening module is used for screening a random code from a predetermined random code set after the updating module updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain the target URL and before the output module outputs the target two-dimensional code image corresponding to the target URL;
the encryption module is used for encrypting the target URL based on the random code to obtain an encrypted target URL;
the specific mode of outputting the target two-dimensional code image corresponding to the target URL by the output module is as follows:
and outputting the target two-dimensional code image corresponding to the encrypted target URL.
11. The dynamic updating device for the two-dimensional code according to claim 8 or 9, further comprising a second judging module and a determining module, wherein:
The second judging module is configured to judge whether the target URL carries all content to be displayed after the updating module updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain the target URL, and before the output module outputs the target two-dimensional code image corresponding to the target URL;
the output module is further configured to output a target two-dimensional code image corresponding to the target URL when the second judging module judges that the target URL includes the whole content;
the determining module is used for determining target content which is not contained in the target URL based on the whole content when the second judging module judges that the target URL does not contain at least one target content in the whole content;
the updating module is further configured to update the target URL based on the target content.
12. The dynamic updating device of the two-dimensional code according to claim 10, further comprising a second judging module and a determining module, wherein:
the second judging module is configured to judge whether the target URL carries all content to be displayed after the updating module updates the URL corresponding to the two-dimensional code based on the target parameter of the display device and the verification code corresponding to the target parameter to obtain the target URL, and before the output module outputs the target two-dimensional code image corresponding to the target URL;
The output module is further configured to output a target two-dimensional code image corresponding to the target URL when the second judging module judges that the target URL includes the whole content;
the determining module is used for determining target content which is not contained in the target URL based on the whole content when the second judging module judges that the target URL does not contain at least one target content in the whole content;
the updating module is further configured to update the target URL based on the target content.
13. The device for dynamically updating a two-dimensional code according to claim 8, 9 or 12, wherein the outputting module outputs the target two-dimensional code image corresponding to the target URL in a specific manner:
and converting the target URL into a target two-dimensional code image and outputting the target two-dimensional code image.
14. The device for dynamically updating a two-dimensional code according to claim 11, wherein the outputting module outputs the target two-dimensional code image corresponding to the target URL in a specific manner:
and converting the target URL into a target two-dimensional code image and outputting the target two-dimensional code image.
CN201911170448.7A 2019-11-26 2019-11-26 Dynamic updating method and device for two-dimension code Active CN111104685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911170448.7A CN111104685B (en) 2019-11-26 2019-11-26 Dynamic updating method and device for two-dimension code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911170448.7A CN111104685B (en) 2019-11-26 2019-11-26 Dynamic updating method and device for two-dimension code

Publications (2)

Publication Number Publication Date
CN111104685A CN111104685A (en) 2020-05-05
CN111104685B true CN111104685B (en) 2023-07-04

Family

ID=70420831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911170448.7A Active CN111104685B (en) 2019-11-26 2019-11-26 Dynamic updating method and device for two-dimension code

Country Status (1)

Country Link
CN (1) CN111104685B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738386B (en) * 2020-08-04 2020-11-24 飞天诚信科技股份有限公司 Operation method and device suitable for self-service Internet of things equipment
CN113761406B (en) * 2021-09-03 2024-06-04 丰巢网络技术有限公司 Intelligent cabinet two-dimension code short-chain generation method and device, medium and electronic equipment
JP7493859B1 (en) 2023-12-13 2024-06-03 株式会社フォリオ Two-dimensional code distribution system and two-dimensional code distribution method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563244A (en) * 2017-08-09 2018-01-09 维沃移动通信有限公司 A kind of two-dimension code safe verification method and mobile terminal
CN108154365B (en) * 2017-12-19 2020-02-14 恒宝股份有限公司 Safety equipment, method and system for generating dynamic two-dimensional code
CN108038398B (en) * 2017-12-22 2021-03-23 珠海市君天电子科技有限公司 Two-dimensional code analysis capability test method and device and electronic equipment
CN110443325B (en) * 2018-05-03 2021-12-14 腾讯科技(深圳)有限公司 Graphic code generation method, graphic code processing method, device and storage medium
CN109376824B (en) * 2018-09-10 2022-06-21 平安科技(深圳)有限公司 Dynamic two-dimensional code generation method and system
CN109862032A (en) * 2019-03-13 2019-06-07 刘兴丹 A kind of method, apparatus that two-dimensional barcode information is transmitted, forwarded

Also Published As

Publication number Publication date
CN111104685A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
US11704939B2 (en) Liveness detection
EP3734489B1 (en) Evidence collection method and system based on blockchain evidence storage
CN111104685B (en) Dynamic updating method and device for two-dimension code
CN107483500A (en) Risk identification method and device based on user behaviors and storage medium
US20180152445A1 (en) Method and apparatus for authenticating user
US20170118205A1 (en) User biological feature authentication method and system
CN108780475A (en) Personalized inference certification for virtually assisting
CN104836781A (en) Method distinguishing identities of access users, and device
CN106650350B (en) Identity authentication method and system
CN108521405B (en) Risk control method and device and storage medium
CN108848058A (en) Intelligent contract processing method and block catenary system
CN110276178B (en) Risk control method, device and equipment based on identity verification
CN110049490B (en) Safety protection method and device for wearable equipment, wearable equipment and medium
CN109002733A (en) A kind of pair of equipment carries out the method and device of reliability evaluation
CN105790948B (en) A kind of identity identifying method and device
CN113572752A (en) Abnormal flow detection method and device, electronic equipment and storage medium
CN109635225A (en) Track method, apparatus, server and the storage medium of browser information
CN109117622A (en) A kind of identity identifying method based on audio-frequency fingerprint
JP7015927B2 (en) Learning model application system, learning model application method, and program
CN117235406B (en) Information content security management and control method and device based on block chain
CN112925711A (en) Local joint debugging test method and related device
CN117252429A (en) Risk user identification method and device, storage medium and electronic equipment
CN112364307B (en) Software authorization method and related equipment
CN113868401A (en) Digital human interaction method and device, electronic equipment and computer storage medium
CN103839004A (en) Method and equipment for detecting malicious files

Legal Events

Date Code Title Description
PB01 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