CN117114027A - Two-dimensional code scanning method, device and equipment - Google Patents

Two-dimensional code scanning method, device and equipment Download PDF

Info

Publication number
CN117114027A
CN117114027A CN202310613896.XA CN202310613896A CN117114027A CN 117114027 A CN117114027 A CN 117114027A CN 202310613896 A CN202310613896 A CN 202310613896A CN 117114027 A CN117114027 A CN 117114027A
Authority
CN
China
Prior art keywords
dimensional code
code
information
characteristic information
party platform
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.)
Pending
Application number
CN202310613896.XA
Other languages
Chinese (zh)
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202310613896.XA priority Critical patent/CN117114027A/en
Publication of CN117114027A publication Critical patent/CN117114027A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10257Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for protecting the interrogation against piracy attacks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1465Methods for optical code recognition the method including quality enhancement steps using several successive scans of the optical code

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Toxicology (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the specification discloses a two-dimensional code scanning method, a device and equipment. The method comprises the following steps: acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment; analyzing the first code information to obtain first characteristic information; acquiring second code information obtained by a second two-dimensional code displayed on a user terminal scanned by scanning equipment; analyzing the second code information to obtain second characteristic information; and after determining the second characteristic information to generate the characteristic information used by the target two-dimensional code, executing corresponding service.

Description

Two-dimensional code scanning method, device and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a two-dimensional code scanning method, apparatus and device.
Background
Along with the rise of smart phones, more and more internet technologies are applied to the mobile phones, and two-dimensional codes are also rising, so that the smart phones are widely applied to various fields and industries. The user can analyze the two-dimension code through the two-dimension code scanning technology, so that the effect of quickly and simply accessing the network and the application is achieved.
However, in the application of the two-dimensional code, there is a great potential safety hazard. When the two-dimensional code is presented, the two-dimensional code is easy to be stolen and brushed. Such as: when the mobile phone is used for scanning the code for payment, the mobile phone two-dimension code is not presented to a merchant when the two-dimension code is generated, and a person standing behind the mobile phone can rapidly scan the mobile phone two-dimension code, so that the purpose of theft and brushing is achieved. Or the two-dimensional code picture is remotely transmitted through quick photographing, and then the theft and brushing are realized by various scanning guns; the content of the two-dimension code is identified through scanning or photographing, and after remote transmission, the two-dimension code is regenerated to realize theft and brushing.
Therefore, it is desirable to provide a more reliable two-dimensional code scanning scheme.
Disclosure of Invention
The embodiment of the specification provides a two-dimensional code scanning method, device and equipment, which are used for solving the problem that user information is revealed due to the fact that the two-dimensional code is stolen and brushed, so that the safety privacy risk exists.
In order to solve the above technical problems, the embodiments of the present specification are implemented as follows:
the two-dimensional code scanning method provided by the embodiment of the specification is applied to a third party platform and comprises the following steps:
acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment;
analyzing the first code information to obtain first characteristic information;
acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
analyzing the second code information to obtain second characteristic information;
and after determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code, executing corresponding service.
The embodiment of the specification provides a two-dimensional code scanning method, which is applied to scanning equipment and comprises the following steps:
Acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
scanning the first two-dimensional code to obtain first code information;
transmitting the first code information to the third party platform;
acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information;
scanning the second two-dimensional code to obtain second code information;
the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
The two-dimensional code display method provided by the embodiment of the specification is applied to a user terminal and comprises the following steps:
sending a two-dimensional code display request to a third party platform;
acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
displaying the first two-dimensional code for the scanning equipment to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform;
Acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform acquires the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
The embodiment of the specification provides a two-dimensional code scanning device, the device is applied to the third party platform, includes:
the first code information acquisition module is used for acquiring first code information obtained based on a first two-dimensional code displayed on the user terminal scanned by the scanning equipment;
the first characteristic information determining module is used for analyzing the first code information to obtain first characteristic information;
the second code information acquisition module is used for acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
the second characteristic information determining module is used for analyzing the second code information to obtain second characteristic information;
And the service execution instruction module is used for executing corresponding service after determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code.
The embodiment of the specification provides a two-dimensional code scanning device, the device is applied to scanning equipment, includes:
the first two-dimensional code acquisition module is used for acquiring a first two-dimensional code displayed by the user terminal; the first two-dimensional code is generated by a third party platform;
the first two-dimensional code scanning module is used for scanning the first two-dimensional code to obtain first code information;
the first code information sending module is used for sending the first code information to the third party platform;
the second two-dimensional code acquisition module is used for acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information;
the second two-dimensional code scanning module is used for scanning the second two-dimensional code to obtain second code information;
the second code information sending module is used for sending the second code information to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
The embodiment of the specification provides a two-dimensional code display device, the device is applied to user terminal, includes:
the two-dimension code display request sending module is used for sending a two-dimension code display request to the third party platform;
the first two-dimensional code acquisition module is used for acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
the first two-dimensional code display module is used for displaying the first two-dimensional code, so that the scanning equipment scans the first two-dimensional code to obtain first code information, and the first code information is sent to the third party platform;
the second two-dimensional code acquisition module is used for acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform acquires the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
the second two-dimensional code display module is used for displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and the second code information is sent to the third party platform.
The embodiment of the specification provides a two-dimensional code scanning equipment, equipment is applied to third party's platform, includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment;
analyzing the first code information to obtain first characteristic information;
acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
analyzing the second code information to obtain second characteristic information;
and after determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code, executing corresponding service.
The embodiment of the present specification provides a two-dimensional code scanning device, the device is applied to scanning device, includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
scanning the first two-dimensional code to obtain first code information;
transmitting the first code information to the third party platform;
acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information;
scanning the second two-dimensional code to obtain second code information;
the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
The embodiment of the present disclosure provides a two-dimensional code display device, where the device is applied to a user terminal, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to:
sending a two-dimensional code display request to a third party platform;
acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
displaying the first two-dimensional code for the scanning equipment to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform;
acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform acquires the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
The embodiment of the specification provides a computer readable medium, on which computer readable instructions are stored, the computer readable instructions being executable by a processor to implement a two-dimensional code scanning and displaying method.
One embodiment of the present specification achieves the following advantageous effects: acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment; analyzing the first code information to obtain first characteristic information; acquiring second code information obtained by a second two-dimensional code displayed on a user terminal scanned by scanning equipment; analyzing the second code information to obtain second characteristic information; and after determining the second characteristic information to generate the characteristic information used by the target two-dimensional code, executing corresponding service. According to the method, the code scanning equipment can acquire corresponding service data after scanning the code twice continuously, and the two-dimensional code scanned for the second time is generated based on the two-dimensional code scanned for the first time, so that the risk that the two-dimensional code is captured and photographed to leak is effectively avoided, the problem that user information is leaked due to the fact that the two-dimensional code is stolen and brushed is solved, the safety privacy risk is caused, and the safety of scanning the two-dimensional code is improved.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a two-dimensional code scanning method applied to a third party platform according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a two-dimensional code scanning method applied to a scanning device according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a two-dimensional code display method applied to a user terminal according to an embodiment of the present disclosure;
fig. 4 is a system interaction flow chart of a two-dimensional code scanning method provided in an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a two-dimensional code scanning device applied to a third party platform according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a two-dimensional code scanning device applied to a scanning apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a two-dimensional code display device applied to a user terminal according to an embodiment of the present disclosure;
fig. 8 is a schematic view of an apparatus provided in an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of one or more embodiments of the present specification more clear, the technical solutions of one or more embodiments of the present specification will be clearly and completely described below in connection with specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without undue burden, are intended to be within the scope of one or more embodiments herein.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
At present, the two-dimensional code can be applied to a plurality of scenes, such as receiving and paying codes of various APP; the specific services relate to electronic certificate services, public information services, enterprise website link services, personal positioning services, mobile phone application downloading, video entertainment propaganda, logistics tracking management, mobile payment, identity recognition services (such as certificate two-dimensional code anti-counterfeiting and anti-theft), financial anti-counterfeiting identification, commodity information tracing and the like. In the existing two-dimensional code payment, related account information of a user, such as user APP account information or user bank card account information, is usually bound in the two-dimensional code.
Take electronic certificates as an example. The method can replace an entity identity card to prove identity in a part of off-line scenes, and various future certificate electronization is a development trend. Currently, electronic certificates are mainly carried in a two-dimensional code mode, and verification is carried out by code scanning.
The two-dimensional code can be transmitted and leaked in the modes of screenshot, photographing and the like, and the key factor is that the user code spreading is spontaneous, the two-dimensional code can be displayed and checked at any place and any time, and the two-dimensional code can be used once generated, so that the two-dimensional code leakage risk is high.
Although the electronic two-dimensional code certificate has validity period constraint, namely, the code scanning verification cannot be performed after a certain time, the electronic two-dimensional code certificate can be transmitted through screenshot, photographing and other modes. The digital identity scene shows that the identity information is falsified, and the security privacy risk exists.
Taking two-dimension code payment as an example, electronic payment is more and more commonly used in daily life, wherein two-dimension code payment is the most common electronic payment mode. In the existing two-dimensional code payment, real-time payment is mainly carried out through mobile equipment. And generating a two-dimensional code through the APP running on the mobile equipment, calling a bank card account bound by the APP through the two-dimensional code, or calling balance in the APP to pay for order information. However, in the payment process, the user property safety is dangerous because the two-dimension code is stolen and brushed.
The two-dimensional code displayed by the user is generally valid in the order of minutes, which is based on the tradeoff of user convenience (the user may be displayed in advance) and security (the user fails after a certain time). The longer validity period makes the two-dimensional code propagate and reveal the risk further increase.
Currently, aiming at two-dimensional code screen capturing leakage, the conventional method is to trigger the two-dimensional code to fail during screen capturing. However, this approach relies on the network environment to be stable, if the failure operation cannot be completed in the case of a network outage.
In order to solve the drawbacks of the prior art, the present solution provides the following embodiments:
example 1
Fig. 1 is a flowchart of a two-dimensional code scanning method applied to a third party platform according to an embodiment of the present disclosure. From the program perspective, the execution subject of the flow may be a program or an application client that is installed on an application server. The main body related to the scheme comprises a user terminal, scanning equipment and a third party platform. For embodiment 1, the execution subject may be a third party platform, and more specifically, may be a server for business analysis in the third party platform. In practical application, the server for generating the two-dimensional code and the server for analyzing the two-dimensional code to perform service analysis in the third party platform may be the same server or different servers. The third party platform in the scheme can be a platform for opening a service interface for merchants and users.
As shown in fig. 1, the process may include the steps of:
step 110: and acquiring first code information obtained based on the first two-dimensional code displayed on the user terminal scanned by the scanning equipment.
It should be noted that the scanning device may be a device having a code scanning function. For example: a mobile terminal with a code scanning function may be used, for example: cell phone, tablet computer. The scanning device may also scan bar codes and two-dimensional codes, and thus, the scanning device may also be a bar code scanner, two-dimensional code scanner, or the like.
The user terminal may be a cell phone, tablet computer, intelligent wearable device, personal computer, medium-sized computer, computer cluster, etc.
The first two-dimensional code can be a two-dimensional code displayed on the interface of the user terminal, the scanning equipment scans the first two-dimensional code displayed on the interface of the user terminal, the scanned first two-dimensional code is sent to the third party platform, and the third party platform can analyze the first two-dimensional code scanned by the scanning equipment to obtain corresponding first code information.
It should be noted that the first code information may be code information obtained after the third party platform analyzes the two-dimensional code image based on the first two-dimensional code sent by the scanning device, or may be code information obtained after the scanning device analyzes the first two-dimensional code obtained based on the scanning, in other words, the first code information may be generated by the scanning device, or may be generated by the third party platform.
The first code information may be a data sequence corresponding to the first two-dimensional code or a corresponding specific code value.
Step 120: and analyzing the first code information to obtain first characteristic information.
The process of parsing the first code information may be understood as determining feature information for generating the first two-dimensional code from the first code information, where the feature information may represent feature information for generating a random two-dimensional code, so as to prevent other people from generating the same two-dimensional code in a counterfeit manner.
Step 130: acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information.
The second two-dimensional code can be generated according to the characteristic information obtained through analysis in the first two-dimensional code, namely the second two-dimensional code is generated based on the first two-dimensional code, the third party platform can send the second two-dimensional code to the user terminal after generating the second two-dimensional code based on the characteristic information in the first two-dimensional code, the user terminal displays the second two-dimensional code, and the scanning equipment scans the second two-dimensional code displayed on the user terminal to obtain second code information.
The second two-dimensional code displayed on the interface of the user terminal is scanned by the scanning device, the scanned second two-dimensional code is sent to the third party platform, and the third party platform can analyze the second two-dimensional code scanned by the scanning device to obtain corresponding second code information.
It should be noted that the second code information may be code information obtained after the third party platform analyzes the two-dimensional code image of the second two-dimensional code sent by the scanning device, or may be code information obtained after the scanning device analyzes the second two-dimensional code obtained by the scanning device, in other words, the second code information may be generated by the scanning device, or may be generated by the third party platform.
The second code information may be a data sequence corresponding to the second two-dimensional code or a corresponding specific code value.
Step 140: and analyzing the second code information to obtain second characteristic information.
The process of resolving the second code information may refer to the process of resolving the first code information. And will not be described in detail herein.
Step 150: and after determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code, executing corresponding service.
It should be noted that, in this embodiment of the present disclosure, the initial two-dimensional code refers to a two-dimensional code generated by a server in a third party platform, the first two-dimensional code refers to a two-dimensional code displayed by a user terminal, in practical application, the server in the third party platform generates the initial two-dimensional code, the initial two-dimensional code is sent to the user terminal, and the user terminal displays the initial two-dimensional code, so under normal conditions, the essence of the first two-dimensional code is the initial two-dimensional code, but under some special conditions, a situation that the two-dimensional code displayed by the user terminal is inconsistent with the two-dimensional code generated by the server of the third party platform may also occur. Similarly, the second two-dimensional code may represent the two-dimensional code displayed immediately after the user terminal displays the first two-dimensional code, and the target two-dimensional code may represent the second characteristic information generated by the third party platform to generate the target two-dimensional code by analyzing the first characteristic information from the first two-dimensional code, and then generated according to the second characteristic information.
When the second characteristic information is determined to be the characteristic information used for generating the target two-dimensional code, the two-dimensional code obtained by the second scanning of the scanning device can be determined to be generated by the third party platform based on the characteristic information in the two-dimensional code obtained by the first scanning of the scanning device, so that the second code information obtained by the scanning device can be considered to be effective, and corresponding services can be executed, for example: payment services, identity verification tasks, and the like.
It should be understood that the method according to one or more embodiments of the present disclosure may include the steps in which some of the steps are interchanged as needed, or some of the steps may be omitted or deleted.
The method in fig. 1, by acquiring first code information based on a first two-dimensional code displayed on a user terminal scanned by a scanning device; analyzing the first code information to obtain first characteristic information; acquiring second code information obtained by a second two-dimensional code displayed on a user terminal scanned by scanning equipment; analyzing the second code information to obtain second characteristic information; and after determining the second characteristic information to generate the characteristic information used by the target two-dimensional code, executing corresponding service. According to the method, the code scanning equipment can acquire corresponding service data after scanning the code twice continuously, and the two-dimensional code scanned for the second time is generated based on the two-dimensional code scanned for the first time, so that the risk that the two-dimensional code is captured and photographed to leak is effectively avoided, the problem that user information is leaked due to the fact that the two-dimensional code is stolen and brushed is solved, the safety privacy risk is caused, and the safety of scanning the two-dimensional code is improved.
The examples of the present specification also provide some specific embodiments of the method based on the method of fig. 1, which is described below.
Optionally, before the obtaining the second code information obtained by the second two-dimensional code displayed on the user terminal scanned by the scanning device, the method further may further include:
determining characteristic information used for generating a target two-dimensional code based on the first characteristic information;
generating a target two-dimensional code based on the characteristic information used for generating the target two-dimensional code;
and sending the target two-dimensional code to the user terminal.
After the scanning device scans the first two-dimensional code displayed by the user terminal, the first characteristic information can be obtained by analyzing the first two-dimensional code, the third party platform can generate characteristic information used for generating the target two-dimensional code by using the first characteristic information, the target two-dimensional code is generated by using the characteristic information, and the generated target two-dimensional code is sent to the user terminal for displaying. For example: a scanning device of a merchant scans a first two-dimensional code A displayed on a user terminal, analyzes the A to obtain first characteristic information X, generates characteristic information Y based on the first characteristic information X by a third party platform, generates a target two-dimensional code B based on the characteristic information Y, and sends the two-dimensional code B to the user terminal for display.
According to the method, the target two-dimensional code is generated based on the characteristic information obtained by analyzing the two-dimensional code scanned by the scanning equipment for the first time, so that the risk of leakage of the two-dimensional code can be reduced.
Optionally, before determining the feature information used for generating the target two-dimensional code based on the first feature information, the method further includes:
judging whether the first characteristic information is consistent with the characteristic information used for generating the initial two-dimensional code;
the determining, based on the first feature information, feature information used for generating the target two-dimensional code specifically includes:
and when the first characteristic information is consistent with the characteristic information used for generating the initial two-dimensional code, determining the characteristic information used for generating the target two-dimensional code based on the first characteristic information.
In practical application, the third party platform generates the two-dimensional code, the two-dimensional code needs to be sent to the user terminal for displaying, the two-dimensional code scanned by the scanning equipment is the two-dimensional code displayed by the user terminal, and after the scanning equipment scans the two-dimensional code, the corresponding two-dimensional code or code information needs to be sent to the third party platform for processing. Therefore, before determining the feature information used for generating the target two-dimensional code based on the first feature information, it is required to determine whether the first two-dimensional code displayed on the interface of the user terminal by the scanning device is the initial two-dimensional code generated by the third party platform, that is, it is required to determine whether the first feature information parsed from the first two-dimensional code scanned by the scanning device is the feature information for generating the initial two-dimensional code, if the first feature information is the feature information for generating the initial two-dimensional code, it is determined that the first two-dimensional code scanned by the scanning device is the initial two-dimensional code generated by the third party platform, and therefore it is determined that the first two-dimensional code scanned by the scanning device is effective, and therefore, the feature information used for generating the target two-dimensional code can be determined based on the first feature information parsed from the first two-dimensional code. In contrast, if the first feature information is not the feature information for generating the initial two-dimensional code, it may be determined that the first two-dimensional code scanned by the scanning device is an invalid two-dimensional code, and the feature information used for generating the target two-dimensional code may not be determined based on the first feature information. At this time, according to a specific application scenario, the scanning device may be prompted to rescan the correct two-dimensional code, or the user terminal may be prompted to initiate the correct two-dimensional code.
By the method, the two-dimensional code scanned by the code scanning equipment for the first time can be ensured to be the effective two-dimensional code, so that the validity of the generated target two-dimensional code is ensured.
Optionally, before the obtaining the first code information obtained based on the first two-dimensional code displayed on the user terminal scanned by the scanning device, the method may further include:
acquiring the first two-dimensional code scanned by the scanning device;
and decoding the first two-dimensional code to obtain first code information corresponding to the first two-dimensional code.
In this step, the main body of the operation of analyzing the two-dimensional code to obtain the code information is determined as the third party platform, but in practical application, the scanning device may analyze and determine the first code information based on the first two-dimensional code obtained by scanning, and then send the code information to the user terminal.
Optionally, the first feature information is a first random seed, and before the first two-dimensional code scanned by the scanning device is obtained, the method further includes:
generating the first random seed based on a set mode;
generating the initial two-dimensional code based on the first random seed;
and sending the initial two-dimensional code to the user terminal for display so as to be scanned by the scanning equipment.
In the embodiment of the present disclosure, the first feature information may represent feature information obtained by parsing a first two-dimensional code obtained by scanning, the second feature information is feature information obtained by parsing a second two-dimensional code, and the feature information may represent information for distinguishing different two-dimensional codes from feature information for generating a two-dimensional code, for example: random numbers, random seeds, etc.
Among them, random seed (random seed) is a term of art for computer, a random number that targets a random number and is subject to a true random number (seed) as an initial condition. The random number of a general computer is a pseudo random number, a true random number (seed) is used as an initial condition, and then a certain algorithm is used for continuously iterating to generate the random number. Distinction from common random numbers:
random number: the true random number may be generated using physical phenomena such as: such a random number generator is called a physical random number generator, and the true random number generated by the physical random number generator is true random.
The random seed, also called pseudo random number, may be regular, but this regular period is longer, but predictable. The main reason is that the pseudo-random number is simulated by the computer using an algorithm, the process does not involve a physical process, the seed is an initial value, in particular, the seed may be a sequence number, which may be given to a sequence manager, from which a sequence may be taken out of the manager, which may be a random number obtained from the sequence number. The seed and the random number sequence may be considered to be in one-to-one correspondence. For example: { An } = F (x), x is the seed, F () is the algorithm, and { An } is the array of numbers.
The random seed may be generated by a program for generating the random seed by a computer according to a conventional method and a certain calculation formula.
According to the method, the two-dimensional code is generated by using the random seed, so that the uniqueness of the two-dimensional code generated each time can be ensured.
Optionally, determining, based on the first feature information, feature information used for generating the target two-dimensional code may specifically include:
and calculating to obtain a second random seed according to a preset rule based on the first random seed.
In the embodiment of the present disclosure, the feature information used to generate the two-dimensional code may be a random seed, and the random seed for generating the target two-dimensional code may be generated based on the random seed obtained by parsing the first scanned two-dimensional code. Specifically, the manner of generating the second random seed based on the first random seed may be set according to an actual application scenario, and may be generated according to a certain preset rule, so long as it is ensured that the second random seed is related to the first random seed, and the second random seed is generated based on the first random seed.
By the method, the target two-dimensional code can be generated based on the two-dimensional code scanned by the scanning equipment for the first time, namely the scanning equipment needs to scan the two-dimensional code continuously for two times to acquire effective service data, and the target two-dimensional code scanned for the second time needs to be generated based on the two-dimensional code scanned for the first time, so that the safety of scanning the two-dimensional code is improved.
Optionally, the determining that the second feature information is feature information used for generating the target two-dimensional code may specifically include:
judging whether the second characteristic information is the same as the second random seed;
and when the second characteristic information is the same as the second random seed, determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code.
After the scanning device scans the target two-dimensional code, it is required to determine that the second two-dimensional code scanned by the scanning device is an effective two-dimensional code, specifically, it may be determined that the scanned second two-dimensional code is the target two-dimensional code generated by the third party platform based on the first feature information. And further determining second characteristic information obtained by analysis from the second two-dimensional code to generate a second random seed of the target two-dimensional code.
Further, whether the second characteristic information is the same as the second random seed can be judged, if the second characteristic information is the same as the second random seed, the characteristic information used by the second characteristic information for generating the target two-dimensional code can be determined, and the second two-dimensional code scanned by the scanning device is an effective two-dimensional code. At this time, the subsequent business operation may be performed based on the second two-dimensional code scanned by the scanning device. Otherwise, if the second characteristic information is different from the second random seed, it may be determined that the second characteristic information is not characteristic information used for generating the target two-dimensional code, and the second two-dimensional code scanned by the scanning device is an invalid two-dimensional code, so that execution of subsequent corresponding service operations is refused.
It should be noted that, if the server for generating the two-dimensional code and the server for resolving the two-dimensional code are different servers, when determining that the first characteristic information resolved from the first two-dimensional code is consistent with the characteristic information used for generating the initial two-dimensional code, and when verifying the validity of the second two-dimensional code scanned for the second time by the scanning device, the second random seed for generating the target two-dimensional code from the second characteristic information resolved from the second two-dimensional code can be verified a priori, and then the association relationship between the second characteristic information resolved from the second two-dimensional code and the first random seed for generating the initial two-dimensional code is verified to meet the preset rule;
specifically, when the association between the second feature information and the first random seed meets a preset rule, determining that the association verification is passed, and when the association verification is passed, determining that the second two-dimensional code scanned by the scanning device is valid.
By the method, the validity of the second two-dimensional code scanned by the scanning device can be further determined when the servers for generating and analyzing the two-dimensional code are different.
Optionally, after the obtaining the second code information obtained by the second two-dimensional code displayed on the user terminal scanned by the scanning device, the method may further include:
And determining the second two-dimensional code as a failure two-dimensional code.
In practical application, when the third party platform receives the second code information of the second two-dimensional code sent by the scanning device, it can be determined that the scanning device has scanned the newly generated target two-dimensional code, at this time, the third party platform can place the second two-dimensional code displayed on the interface of the user terminal as a failure two-dimensional code, and when any scanning device scans the second two-dimensional code again, no effective two-dimensional code information can be obtained.
By the method, the uniqueness and the safety of the second two-dimensional code can be ensured, and once the second two-dimensional code is successfully scanned once, the second two-dimensional code cannot be scanned for the second time, so that the safety of information corresponding to the two-dimensional code is ensured.
Optionally, after the obtaining the first code information obtained based on the first two-dimensional code displayed on the user terminal scanned by the scanning device, the method may further include:
and determining the first two-dimensional code as a failure two-dimensional code.
However, in practical application, the initial two-dimensional code is a two-dimensional code that does not include user information, and even if the initial two-dimensional code is captured or photographed, the user information is not revealed.
In the method, even if a plurality of scanning devices are used for scanning the first two-dimensional code or the second two-dimensional code, the platform receives the two-dimensional code information which is firstly scanned twice continuously, and then the two-dimensional code is set to be invalid. Therefore, even if a plurality of scanning devices scan the two-dimensional code, information leakage corresponding to the two-dimensional code is not caused.
Example 2
Fig. 2 is a flowchart of a two-dimensional code scanning method applied to a scanning device according to an embodiment of the present disclosure. From the program perspective, the execution subject of the flow may be a program or an application client that is installed on an application server. The main body related to the scheme comprises a user terminal, scanning equipment and a third party platform. For embodiment 2, the execution subject may be a scanning device.
As shown in fig. 2, the process may include the steps of:
step 210: acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform.
Step 220: and scanning the first two-dimensional code to obtain first code information.
Step 230: and sending the first code information to the third party platform.
Step 240: acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information.
Step 250: and scanning the second two-dimensional code to obtain second code information.
Step 260: the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
The third party platform, the user terminal, the scanning device, the first code information, and the second code information in this embodiment are described. The explanation of the terms of the first feature information, the second feature information, and the like is the same as that of embodiment 1, and therefore, the description thereof will not be repeated in this embodiment.
For the scanning equipment, the scanning equipment needs to scan a first two-dimensional code displayed by the user terminal, then the scanned information is sent to a third party platform, the third party platform generates a target two-dimensional code based on the first scanned information, the target two-dimensional code is sent to the user terminal for displaying, and the scanning equipment performs second scanning.
It should be noted that, because the scanning device scans the code twice continuously, the validity period of the two-dimensional codes can be further reduced, and optionally, the validity period can be shortened to a second level, thereby reducing the possibility of being falsely used after the two-dimensional codes are revealed.
Example 3
Fig. 3 is a flowchart of a two-dimensional code display method applied to a user terminal according to an embodiment of the present disclosure. From the program perspective, the execution subject of the flow may be a program or an application client that is installed on an application server. The main body related to the scheme comprises a user terminal, scanning equipment and a third party platform. For embodiment 3, the execution subject may be a user terminal.
As shown in fig. 3, the process may include the steps of:
step 310: and sending a two-dimensional code display request to a third party platform.
It should be noted that, the two-dimensional code display request may represent a request for displaying a two-dimensional code sent by the user terminal to the third party platform, and after the third party platform receives the request, a random seed is generated according to a preset mode, and then a first two-dimensional code is generated based on the random seed and sent to the user terminal for displaying.
Step 320: and acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request.
Step 330: and displaying the first two-dimensional code so as to enable the scanning equipment to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform.
Step 340: acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform obtains the first code information obtained based on the first two-dimensional code scanned by the scanning equipment.
Step 350: and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
The interaction between the execution bodies in the embodiment of the present solution described above may be described with reference to fig. 4.
Fig. 4 is a system interaction flowchart of a two-dimensional code scanning method provided in an embodiment of the present disclosure.
As shown in fig. 4, the interaction subject may include a executive subject user terminal, a third party platform, and a merchant, and the interaction flow may include the steps of:
the method comprises the following steps: the third party platform generates a random seed X according to a preset mode, and generates an initial two-dimensional code based on the random seed X.
Step 404: and sending the initial two-dimensional code to a user terminal for display.
Step 406: the user terminal presents the initial two-dimensional code to the merchant.
Step 408: and the merchant scans the initial two-dimensional code displayed by the user terminal to obtain a code string A.
Step 410: the merchant sends the code string a to the third party platform.
Step 412: and the third party platform analyzes the code string A to obtain a random seed X1.
Step 414: and judging whether the X1 is effective or not, if so, generating a random seed Y based on the X1, and generating a target two-dimensional code based on the random seed Y.
Step 416: and sending the target two-dimensional code to the user terminal.
Step 418: and the user terminal displays the target two-dimensional code to the merchant.
Step 420: and scanning the target two-dimensional code by the merchant to obtain a code string B.
Step 422: the merchant sends the code string B to the third party platform.
Step 424: and the third party platform analyzes the code string B to obtain a random seed Y1.
Step 426: and judging whether Y1 is effective or not, and executing the subsequent business process.
Step 428: and sending the corresponding business data to the merchant.
Step 430: setting the target two-dimensional code as a failure two-dimensional code.
It should be noted that, the server of the third party platform caches the ID of the user terminal and the random seed X for generating the initial two-dimensional code, and when generating the random seed Y, the random seed X is found based on the cached ID of the user terminal, so as to generate the random seed Y.
By the method, the following technical effects can be achieved:
1) The two-dimensional code spontaneously displayed by the user is an initial two-dimensional code, and the initial two-dimensional code has no availability (namely, the service can not be completed through the initial two-dimensional code), so that the initial two-dimensional code is photographed and the screenshot can not reveal user information.
2) The really available target two-dimensional code is generated by a platform based on the first two-dimensional code only after a merchant scans the code for the first time, so that the probability of being captured and photographed is greatly reduced.
3) The two scanning codes of the merchant are continuous, the time interval is short, and the risk of leakage of the two-dimensional code is further reduced.
4) The validity period of the target two-dimensional code is short, the target two-dimensional code can be shortened to a second level, and the target two-dimensional code can be invalid once the merchant scans, so that the possibility of being impossibly used after the two-dimensional code is revealed can be reduced.
5) The security and the uniqueness of the user spreading code are ensured through the association relation of the random seeds X, Y; through two-stage code scanning of two-dimensional code, prevent that the two-dimensional code from being propagated through the mode of taking a picture and revealing.
Based on the same thought, the embodiment of the specification also provides a device corresponding to the method. Fig. 5 is a schematic diagram of a two-dimensional code scanning device applied to a third party platform according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus may include:
a first code information obtaining module 510, configured to obtain first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by a scanning device;
the first feature information determining module 520 is configured to parse the first code information to obtain first feature information;
a second code information obtaining module 530, configured to obtain second code information obtained by a second two-dimensional code displayed on the user terminal scanned by the scanning device; the second two-dimensional code is generated based on the first characteristic information;
a second feature information determining module 540, configured to parse the second code information to obtain second feature information;
And the service execution instruction module 550 is configured to execute a corresponding service after determining that the second feature information is feature information used for generating the target two-dimensional code.
The present examples also provide some embodiments of the method based on the apparatus of fig. 5, as described below.
Optionally, the apparatus may further include:
the characteristic information determining module is used for determining characteristic information used for generating the target two-dimensional code based on the first characteristic information;
the target two-dimensional code generation module is used for generating a target two-dimensional code based on the characteristic information used for generating the target two-dimensional code;
and the target two-dimension code sending module is used for sending the target two-dimension code to the user terminal.
Optionally, the apparatus may further include:
the first judging module is used for judging whether the first characteristic information is consistent with the characteristic information used for generating the initial two-dimensional code;
the characteristic information determining module is specifically configured to:
and when the first characteristic information is consistent with the characteristic information used for generating the initial two-dimensional code, determining the characteristic information used for generating the target two-dimensional code based on the first characteristic information.
Optionally, the apparatus may further include:
the first two-dimensional code acquisition module is used for acquiring the first two-dimensional code scanned by the scanning equipment;
and the first code information determining module is used for decoding the first two-dimensional code to obtain first code information corresponding to the first two-dimensional code.
Optionally, the first characteristic information is a first random seed, and the apparatus may further include:
the first random seed generation module is used for generating the first random seed based on a setting mode;
the initial two-dimensional code generation module is used for generating the initial two-dimensional code based on the first random seed;
and the initial two-dimensional code display module is used for sending the initial two-dimensional code to the user terminal for display so as to be scanned by the scanning equipment.
Optionally, the feature information determining module may specifically include:
and the second random seed calculation unit is used for calculating and obtaining second random seeds according to a preset rule based on the first random seeds.
Optionally, the feature information determining module may specifically include:
the second judging module is used for judging whether the second characteristic information is the same as the second random seed or not;
And the determining unit is used for determining the second characteristic information as the characteristic information used for generating the target two-dimensional code when the second characteristic information is the same as the second random seed.
Optionally, the apparatus may further include:
and the failure module is used for determining the second two-dimensional code as a failure two-dimensional code.
Based on the same thought, the embodiment of the specification also provides a device corresponding to the method. Fig. 6 is a schematic diagram of a two-dimensional code scanning device applied to a scanning apparatus according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus may include:
a first two-dimensional code obtaining module 610, configured to obtain a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
a first two-dimensional code scanning module 620, configured to scan the first two-dimensional code to obtain first code information;
a first code information sending module 630, configured to send the first code information to the third party platform;
a second two-dimensional code obtaining module 640, configured to obtain a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information;
The second two-dimensional code scanning module 650 is configured to scan the second two-dimensional code to obtain second code information;
a second code information sending module 660, configured to send the second code information to the third party platform, so that the third party platform analyzes the second code information to obtain second feature information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
Based on the same thought, the embodiment of the specification also provides a device corresponding to the method. Fig. 7 is a schematic diagram of a two-dimensional code display device applied to a user terminal according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus may include:
the two-dimension code display request sending module 710 is configured to send a two-dimension code display request to a third party platform;
the first two-dimensional code obtaining module 720 is configured to obtain a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
the first two-dimensional code display module 730 is configured to display the first two-dimensional code, so that a scanning device scans the first two-dimensional code to obtain first code information, and send the first code information to the third party platform;
The second two-dimensional code obtaining module 740 is configured to obtain a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform acquires the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
the second two-dimensional code display module 750 is configured to display the second two-dimensional code, so that the scanning device scans the second two-dimensional code to obtain second code information, and send the second code information to the third party platform.
Based on the same thought, the embodiment of the specification also provides equipment corresponding to the method.
Fig. 8 is a schematic view of an apparatus provided in an embodiment of the present disclosure. As shown in fig. 8, the device 800 may include:
at least one processor 810; the method comprises the steps of,
a memory 830 communicatively coupled to the at least one processor; wherein,
the memory 830 stores instructions 820 executable by the at least one processor 810.
For embodiment 1, the instructions are executable by the at least one processor 810 to enable the at least one processor 810 to:
acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment;
Analyzing the first code information to obtain first characteristic information;
acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
analyzing the second code information to obtain second characteristic information;
and after determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code, executing corresponding service.
For embodiment 2, the instructions are executable by the at least one processor 810 to enable the at least one processor 810 to:
acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
scanning the first two-dimensional code to obtain first code information;
transmitting the first code information to the third party platform;
acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information;
scanning the second two-dimensional code to obtain second code information;
the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
For embodiment 3, the instructions are executable by the at least one processor 810 to enable the at least one processor 810 to:
sending a two-dimensional code display request to a third party platform;
acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
displaying the first two-dimensional code for the scanning equipment to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform;
acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform acquires the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
Based on the same thought, the embodiment of the specification also provides a computer readable medium corresponding to the method. The computer readable medium has computer readable instructions stored thereon.
For embodiment 1, the computer readable instructions are executable by a processor to implement the method of:
Acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment;
analyzing the first code information to obtain first characteristic information;
acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
analyzing the second code information to obtain second characteristic information;
and after determining that the second characteristic information is the characteristic information used for generating the target two-dimensional code, executing corresponding service.
For embodiment 2, the computer readable instructions are executable by a processor to implement the method of:
acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
scanning the first two-dimensional code to obtain first code information;
transmitting the first code information to the third party platform;
acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information;
scanning the second two-dimensional code to obtain second code information;
the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the target two-dimensional code.
For embodiment 3, the computer readable instructions are executable by a processor to implement the method of:
sending a two-dimensional code display request to a third party platform;
acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
displaying the first two-dimensional code for the scanning equipment to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform;
acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is a target two-dimensional code generated based on first characteristic information corresponding to first two-dimensional code information after the third party platform acquires the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (ProgrammableLogicDevice, PLD) (e.g., field programmable gate array (FieldProgrammableGate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. The designer programs itself to "integrate" a digital system onto a single PLD without requiring the chip manufacturer to design and fabricate application specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (HardwareDescriptionLanguage, HDL), and HDL is not only one but a plurality of kinds, such as ABEL (AdvancedBooleanExpressionLanguage), AHDL (AlteraHardwareDescription Language), confluence, CUPL (cornelluniversal programming language), HDCal, JHDL (javahard script language), lava, lola, myHDL, PALASM, RHDL (Ruby HardwareDescriptionLanguage), etc., VHDL (Very-High-SpeedIntegrated CircuitHardwareDescriptionLanguage) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmelAT91SAM, microchipPIC F26K20 and silicane labsc8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (21)

1. The two-dimensional code scanning method is applied to a third party platform and comprises the following steps:
acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment;
analyzing the first code information to obtain first characteristic information;
acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment;
analyzing the second code information to obtain second characteristic information;
and according to the second characteristic information, after the second two-dimensional code is determined to be generated by the third party platform based on the first characteristic information, executing corresponding service.
2. The method of claim 1, further comprising, before the obtaining the second code information obtained by the second two-dimensional code displayed on the user terminal scanned by the scanning device:
Determining characteristic information used for generating the second two-dimensional code based on the first characteristic information;
generating a second two-dimensional code based on the characteristic information used for generating the second two-dimensional code;
and sending the second two-dimensional code to the user terminal.
3. The method of claim 2, the determining, based on the first feature information, feature information used to generate a second two-dimensional code, further comprising:
judging whether the first characteristic information is consistent with the characteristic information used for generating the initial two-dimensional code;
the determining, based on the first feature information, feature information used for generating a second two-dimensional code specifically includes:
and determining the characteristic information used for generating the second two-dimensional code based on the first characteristic information when the first characteristic information is consistent with the characteristic information used for generating the initial two-dimensional code.
4. The method of claim 1, further comprising, prior to the obtaining the first code information based on the first two-dimensional code displayed on the user terminal scanned by the scanning device:
acquiring the first two-dimensional code scanned by the scanning device;
and decoding the first two-dimensional code to obtain first code information corresponding to the first two-dimensional code.
5. The method of claim 3, wherein the first characteristic information is a first random seed, and further comprising, prior to the acquiring the first two-dimensional code scanned by the scanning device:
generating the first random seed based on a set mode;
generating the initial two-dimensional code based on the first random seed;
and sending the initial two-dimensional code to the user terminal for display so as to be scanned by the scanning equipment.
6. The method of claim 5, wherein determining, based on the first feature information, feature information used for generating a second two-dimensional code specifically includes:
and calculating to obtain a second random seed according to a preset rule based on the first random seed.
7. The method of claim 6, wherein the determining the second feature information is feature information used for generating the second two-dimensional code, specifically includes:
judging whether the second characteristic information is the same as the second random seed;
and when the second characteristic information is the same as the second random seed, determining that the second characteristic information is the characteristic information used for generating the second two-dimensional code.
8. The method of claim 7, wherein the second two-dimensional code is a valid two-dimensional code when the second characteristic information is the same as the second random seed.
9. The method of claim 7, further comprising, after the obtaining the second code information obtained by the second two-dimensional code displayed on the user terminal scanned by the scanning device:
verifying that the second characteristic information obtained by analysis in the second two-dimensional code is a second random seed for generating a second two-dimensional code;
and verifying that the association relationship between the second characteristic information obtained by analysis in the second two-dimensional code and the first random seed for generating the initial two-dimensional code meets a preset rule, and determining that the second two-dimensional code is effective.
10. The method of claim 1, further comprising, after the obtaining the second code information obtained by the second two-dimensional code displayed on the user terminal scanned by the scanning device:
and determining the second two-dimensional code as a failure two-dimensional code.
11. The method of claim 9, further comprising, after the obtaining the first code information obtained based on the first two-dimensional code displayed on the user terminal scanned by the scanning device:
and determining the first two-dimensional code as a failure two-dimensional code.
12. The method according to claim 1, wherein the first code information may be a data sequence corresponding to the first two-dimensional code or a corresponding specific code value.
13. A two-dimensional code scanning method, the method being applied to a scanning device, comprising:
acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
scanning the first two-dimensional code to obtain first code information;
transmitting the first code information to the third party platform;
acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information; the first characteristic information is obtained by analyzing the first code information;
scanning the second two-dimensional code to obtain second code information;
the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and after the second characteristic information is determined to be the characteristic information used for generating the second two-dimensional code, executing corresponding service.
14. The two-dimensional code display method is applied to a user terminal and comprises the following steps:
sending a two-dimensional code display request to a third party platform;
acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
displaying the first two-dimensional code for the scanning equipment to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform;
Acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is generated based on first characteristic information corresponding to the first two-dimensional code information after the third party platform obtains the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
15. A two-dimensional code scanning device is applied to a third party platform, and comprises:
the first code information acquisition module is used for acquiring first code information obtained based on a first two-dimensional code displayed on the user terminal scanned by the scanning equipment;
the first characteristic information determining module is used for analyzing the first code information to obtain first characteristic information;
the second code information acquisition module is used for acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
the second characteristic information determining module is used for analyzing the second code information to obtain second characteristic information;
And the service execution instruction module is used for executing corresponding service after determining that the second two-dimensional code is generated by the third-party platform based on the first characteristic information according to the second characteristic information.
16. A two-dimensional code scanning device, the device being applied to a scanning apparatus, comprising:
the first two-dimensional code acquisition module is used for acquiring a first two-dimensional code displayed by the user terminal; the first two-dimensional code is generated by a third party platform;
the first two-dimensional code scanning module is used for scanning the first two-dimensional code to obtain first code information;
the first code information sending module is used for sending the first code information to the third party platform;
the second two-dimensional code acquisition module is used for acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information; the first characteristic information is obtained by analyzing the first code information;
the second two-dimensional code scanning module is used for scanning the second two-dimensional code to obtain second code information;
the second code information sending module is used for sending the second code information to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the second two-dimensional code.
17. A two-dimensional code display device, the device being applied to a user terminal, comprising:
the two-dimension code display request sending module is used for sending a two-dimension code display request to the third party platform;
the first two-dimensional code acquisition module is used for acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
the first two-dimensional code display module is used for displaying the first two-dimensional code, so that the scanning equipment scans the first two-dimensional code to obtain first code information, and the first code information is sent to the third party platform;
the second two-dimensional code acquisition module is used for acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is generated based on first characteristic information corresponding to the first two-dimensional code information after the third party platform obtains the first code information obtained based on the first two-dimensional code scanned by the scanning equipment;
the second two-dimensional code display module is used for displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and the second code information is sent to the third party platform.
18. A two-dimensional code scanning device, the device being applied to a third party platform, comprising:
At least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring first code information obtained based on a first two-dimensional code displayed on a user terminal scanned by scanning equipment;
analyzing the first code information to obtain first characteristic information;
acquiring second code information obtained by a second two-dimensional code displayed on the user terminal and scanned by the scanning equipment; the second two-dimensional code is generated based on the first characteristic information;
analyzing the second code information to obtain second characteristic information;
and according to the second characteristic information, after the second two-dimensional code is determined to be generated by the third party platform based on the first characteristic information, executing corresponding service.
19. A two-dimensional code scanning apparatus, the apparatus being applied to a scanning apparatus, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
Acquiring a first two-dimensional code displayed by a user terminal; the first two-dimensional code is generated by a third party platform;
scanning the first two-dimensional code to obtain first code information;
transmitting the first code information to the third party platform;
acquiring a second two-dimensional code displayed by the user terminal; the second two-dimensional code is generated by the third party platform based on the first characteristic information; the first characteristic information is obtained by analyzing the first code information;
scanning the second two-dimensional code to obtain second code information;
the second code information is sent to the third party platform so that the third party platform can analyze the second code information to obtain second characteristic information; and executing corresponding service after determining the second characteristic information as the characteristic information used for generating the second two-dimensional code.
20. A two-dimensional code display device, the device being applied to a user terminal, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
Sending a two-dimensional code display request to a third party platform;
acquiring a first two-dimensional code sent by the third party platform based on the two-dimensional code display request;
displaying the first two-dimensional code for a scanning device to scan the first two-dimensional code to obtain first code information, and sending the first code information to the third party platform;
acquiring a second two-dimensional code sent by the third party platform; the second two-dimensional code is generated based on first characteristic information corresponding to the first two-dimensional code information after the third party platform obtains the first code information obtained based on the first two-dimensional code scanned by the scanning equipment; the first characteristic information is obtained by analyzing the first code information;
and displaying the second two-dimensional code, so that the scanning equipment scans the second two-dimensional code to obtain second code information, and sending the second code information to the third party platform.
21. A computer readable medium having stored thereon computer readable instructions executable by a processor to implement the method of any one of claims 1 to 12.
CN202310613896.XA 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment Pending CN117114027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310613896.XA CN117114027A (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110158919.3A CN112883752B (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment
CN202310613896.XA CN117114027A (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202110158919.3A Division CN112883752B (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment

Publications (1)

Publication Number Publication Date
CN117114027A true CN117114027A (en) 2023-11-24

Family

ID=76057396

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310613896.XA Pending CN117114027A (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment
CN202110158919.3A Active CN112883752B (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110158919.3A Active CN112883752B (en) 2021-02-04 2021-02-04 Two-dimensional code scanning method, device and equipment

Country Status (1)

Country Link
CN (2) CN117114027A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117371017B (en) * 2023-12-08 2024-03-01 山东三木众合信息科技股份有限公司 Device management method based on encrypted two-dimension code

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198390A (en) * 2013-03-19 2013-07-10 深圳市粮食集团有限公司 Goods picking and goods delivering reservation information data processing method and system based on two-dimensional code
CN105225314A (en) * 2015-09-18 2016-01-06 张福伟 A kind of dynamic two-dimension code door control system based on pseudo-random sequence
CN106022738A (en) * 2016-06-02 2016-10-12 中国联合网络通信集团有限公司 Two-dimensional code safety payment method, terminal, and system
CN109919601A (en) * 2019-03-05 2019-06-21 广州佳都数据服务有限公司 Payment verification method, apparatus and electronic equipment
CN110929816A (en) * 2019-10-17 2020-03-27 平安科技(深圳)有限公司 Two-dimensional code validity control method and system
CN112307784A (en) * 2020-11-10 2021-02-02 杭州三因虹狐网络服务有限公司 Management method and device for dynamic generation engine of personal two-dimensional code

Also Published As

Publication number Publication date
CN112883752B (en) 2023-05-09
CN112883752A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN109697204B (en) Data auditing method and device
US10915901B2 (en) Method and apparatus for processing transaction requests
US10534946B2 (en) Two-dimensional code processing method and apparatus
CN111832535A (en) Face recognition method and device
CN109308263B (en) Applet testing method, device and equipment
CN111179061B (en) Resource transfer processing method, device and equipment
CN111415158B (en) Wind control method and system based on block chain
CN108874654B (en) Idempotent validity test method, device and equipment and readable medium
CN111784356B (en) Payment verification method, device, equipment and storage medium
CN112016924A (en) Data evidence storage method, device and equipment based on block chain
CN109003071B (en) Payment method, device and equipment
CN112883752B (en) Two-dimensional code scanning method, device and equipment
CN110472967B (en) Verification method, identification end and user end
US11349658B2 (en) Blockchain data processing method, apparatus, and device
CN111600882A (en) Block chain-based account password management method and device and electronic equipment
CN107483534B (en) Service processing method and device
CN110781500A (en) Data wind control system and method
CN113177788A (en) Transaction method and system based on code scanning payment
CN112183270A (en) Method and device for optimizing shooting parameters of identity authentication and electronic equipment
CN113761496B (en) Identity verification method and device based on blockchain and electronic equipment
CN116432249A (en) Data authorization management method, device and medium based on electronic signature technology
CN114519635A (en) Bank account opening monitoring method, server and system
CN114301652A (en) System and method for processing payment service
CN116521542A (en) Method and device for service object unlimited, storage medium and electronic equipment
CN114239023A (en) Display method, device and equipment for mobile terminal operation data

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