Methods and systems for generating and reading 2d barcodes
8 claims: 4 independent, 4 dependent
- 1A method for generating a 2D barcode, wherein the method comprises:acquiring (101, 501), by a first terminal, a private information input by a user, and sending (101, 501), by the first terminal, the private information through a network to a server that is configured to store the private information, and generate an information access address corresponding to the private information;wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;receiving (102, 505), by the first terminal, the information access address returned through the network by the server;and generating (103, 506), by the first terminal, the 2D barcode comprising the information access address;receiving (201, 502), by the server, the private information sent through the network by the first terminal, and storing the private information;generating (202, 503), by the server, the information access address corresponding to the private information;and returning (203, 504), by the server, the information access address through the network to the first terminal, such that when a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, the server searches a pre-stored private information corresponding to the private information according to the information identifier of the private information in response to determining that the check identifier included in the information access address is consistent with the pre-stored check identifier, and that the time identifier included in the information access address is effective, and the server returns the private information to the second terminal.
- 4A method for reading a 2D barcode, wherein the method comprises:acquiring (301, 801), by a second terminal, the 2D barcode comprising an information access address, and scanning the 2D barcode to obtain the information access address comprised in the 2D barcode, the information access address being for accessing a private information;wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;sending (302, 802), by the second terminal, the information access address through a network to a server that is configured to search a pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with a pre-stored check identifier, and that the time identifier included in the information access address is effective, and the server is configured to return the private information to the second terminal, receiving (401, 803), by the server, the information access address sent through the network by the second terminal and for accessing the private information;searching (402, 804), by the server, the pre-stored private information corresponding to the private information according to the information identifier comprised in the information access address in response to determining that the check identifier comprised in the information access address is consistent with the pre-stored check identifier, and that the time identifier comprised in the information access address is not ineffective;and returning (403, 805), by the server, the found private information to the second terminal through the network, such that the second terminal uses the private information as a reading result of the 2D barcode, receiving (303, 806), by the second terminal, the private information returned through the network by the server, and using the private information as a reading result of the 2D barcode.
- 7System for generating a 2D barcode, comprising:a first terminal for generating the 2D barcode, comprising: an acquisition module (1001), configured to acquire a private information input by a user;a sending module (1002), configured to send the private information through a network to a server that is configured to store the private information, and generate an information access address corresponding to the private information;wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;a first receiving module (1003), configured to receive the information access address returned through the network by the server;and a first generation module (1004), configured to generate a 2D barcode comprising the information access address;wherein the 2D barcode is configured such that when a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, and the server searches a pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with a pre-stored check identifier, and that the time identifier included in the information access address is effective, and the server returns the private information to the second terminal, and the server comprising: a second receiving module (1101), configured to receive the private information sent through the network by the first terminal;a storage module (1102), configured to store the private information;a second generation module (1103), configured to generate the information access address corresponding to the private information;and a return module (1104), configured to return the information access address through the network to the first terminal that is configured such that the first terminal generates the 2D barcode according to the information access address;wherein after a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, the server searches the pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with the pre-stored check identifier, and that the time identifier included in the information access address is effective, and the server returns the private information to the second terminal.
- 8A system for reading a 2D barcode, comprising:a second terminal for reading the 2D barcode, comprising: an acquisition module (1301), configured to acquire the 2D barcode comprising an information access address;wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;a scanning module (1302), configured to scan the 2D barcode, to obtain the information access address comprised in the 2D barcode, the information access address being for accessing the private information;a sending module (1303), configured to send the information access address through a network to a server that is configured to search a pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with a pre-stored check identifier, and that the time identifier included in the information access address is effective, wherein the server is configured to return the private information to the second terminal;a first receiving module (1304), configured to receive the private information returned through the network by the server;and a reading module (1305), configured to use the private information as a reading result of the 2D barcode, and the server, for searching pre-stored information for use as a reading result of the 2D barcode generated by a first terminal, wherein the server comprises: a second receiving module (1401), configured to receive an information access address sent through a network by the second terminal and for accessing the private information;a search module (1402), configured to search the pre-stored private information corresponding to the private information according to the information identifier comprised in the information access address, in response to determining that the check identifier comprised in the information access address is consistent with the pre-stored check identifier, and that the time identifier comprised in the information access address is not ineffective;and a return module (1403), configured to return the found private information to the second terminal through the network, so that the second terminal uses the private information as a reading result of the 2D barcode.
Independent claims4
200 paragraphs in 5 sections, as filed
FIELD OF THE TECHNOLOGY
0001The present disclosure relates to the field of information processing technologies, and in particular, to methods and systems for generating and reading 2D barcodes.
BACKGROUND OF THE DISCLOSURE
0002With the ongoing development of information processing technologies, a 2D barcode has found wide application for its characteristics such as wide encoding range and high fault tolerance. A Quick Response (QR) 2D barcode is one type of 2D barcode, and each QR2D barcode is represented in the form of an image, where the image is a square array. The generation of a 2D barcode refers to conversion of information into an image, and reading of a 2D barcode refers to conversion of an image into information. As the application scope of a 2D barcode is broadened, the types and quantity of information recorded in a 2D barcode keep growing, especially, information involving privacy of a user. Further, after 2D barcode software installed on a terminal scans the 2D barcode, information recorded in the 2D barcode may be directly obtained. When information recorded in a 2D barcode is private information, security of the private information cannot be protected. Therefore, how to generate and read a 2D barcode for private information becomes an issue that draws people's attention.
0003Currently there are two manners of generating and reading a 2D barcode. A first manner of generating a 2D barcode is: acquiring private information, and enciphering the private information; and generating a 2D barcode according to the enciphered private information. A first manner of reading a 2D barcode is: acquiring a 2D barcode, and scanning the 2D barcode, to obtain enciphered private information; and deciphering the enciphered private information by using a deciphering manner corresponding to an enciphering manner, to obtain the private information, and using the private information as a reading result of the 2D barcode.
0004A second manner of generating a 2D barcode is: acquiring private information and a private information indicator, the private information indicator being for distinguishing private information from nonprivate information and indicating whether to present the private information; and generating a 2D barcode according to the private information and the private information indicator. A second manner of reading a 2D barcode is: scanning a 2D barcode, to obtain private information and a private information indicator, so that if the private information indicator indicates to present the private information, the private information is used as a reading result of the 2D barcode, and if the private information indicator indicates not to present the private information, the reading result of the 2D barcode is empty, that is, the private information cannot be read.
0005In a process of implementing the present disclosure, the inventor finds that the existing technology at least has the following problems:
0006In the first manner of generating a 2D barcode, private information is enciphered, so that information recorded in a generated 2D barcode includes the enciphered private information; however, the enciphered private information is at a risk of being cracked, resulting in that security of private information cannot be ensured, and a cost of generating a 2D barcode is increased for enciphering of private information. In the first manner of reading a 2D barcode, a deciphering manner corresponding to an enciphering manner needs to be used, so that a cost of reading a 2D barcode is increased, and application of a 2D barcode is adversely affected. In the second manner of generating a 2D barcode, a generated 2D barcode includes private information, and security of private information cannot be ensured either. In the second manner of reading a 2D barcode, although presentation of private information may be indicated by using a private information indicator, security of private information still cannot be ensured.
0007It is noted that <patcit id="pcit0001" dnum="US8356033B2"><text>patent publication US 8,356,033B2</text></patcit> discloses a photographing device which is capable of easily uploading a photographic image to an online album server in an album system by using a wireless communication function and is capable of easily setting up management information of the photographic image.
0008It is further noted that <patcit id="pcit0002" dnum="WO2014044183A1"><text>patent publication WO 2014/044183 A1</text></patcit> discloses methods and devices for resource sharing. Address information of a resource to be shared can be acquired by a user device in response to a sharing request. A two-dimensional barcode corresponding to the address information of the resource can be generated by the user device. The generated two-dimensional barcode can be published by the user device to one or more of an Internet platform and a specified Internet communication application client via a network.
SUMMARY
0009To solve existing technical problems, embodiments of the present invention provide methods and systems for generating and reading 2D barcodes. The technical solutions are as follows:
0010According to a first aspect, a method for generating a 2D barcode is provided, the method including: <ul id="ul0001" list-style="none" compact="compact"><li>acquiring, by a first terminal, a private information input by a user, and sending, by the first terminal, the private information through a network to a server that is configured to store the private information, and generate an information access address corresponding to the private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;</li><li>receiving, by the first terminal, the information access address returned through the network by the server; and</li><li>generating, by the first terminal, the 2D barcode including the information access address;</li><li>receiving, by the server, the private information sent through the network by the terminal, and storing the private information;</li><li>generating, by the server, the information access address corresponding to the private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information; and</li><li>returning, by the server, the information access address to the first terminal through the network, so that the terminal generates a 2D barcode according to the information access address;</li><li>wherein after a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, the server finds a pre-stored private information corresponding to the private information according to the information identifier of the private information; if the check identifier included in the information access address is consistent with the pre-stored check identifier, and the time identifier included in the information access address is effective, the server returns the private information to the second terminal.</li></ul>
0011According to a further aspect, a method for reading a 2D barcode is provided, the method including: acquiring, by a terminal, the 2D barcode including an information access address, and scanning the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information; the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information; <ul id="ul0002" list-style="none"><li>sending, by the terminal, the information access address to a server through a network, so that the server searches a pre-stored private information corresponding to the private information according to the information identifier of the private information ; wherein if the check identifier included in the information access address is consistent with the pre-stored check identifier, and the time identifier included in the information access address is effective, the server returns the private information to the second terminal; and</li><li>receiving, by a server, the information access address sent through the network by the terminal and for accessing private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;</li><li>searching, by the server, the pre-stored private information for private information corresponding to the information identifier comprised in the information access address; and</li><li>if the check identifier comprised in the information access address is consistent with the pre-stored check identifier, and the time identifier comprised in the information access address is not ineffective, returning, by the server, the found private information to the terminal through the network, such that the terminal uses the private information as a reading result of a 2D barcode;</li></ul>
0012Receiving, by the terminal, the private information returned through the network by the server, and using the private information as a reading result of the 2D barcode.
0013According to a further aspect, a first terminal for generating a 2D barcode is provided, the first terminal including: <ul id="ul0003" list-style="none"><li>an acquisition module, configured to acquire private information input by a user;</li><li>a sending module, configured to send the private information to a server through a network, so that the server stores the private information, and generates an information access address corresponding to the private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;</li><li>a receiving module, configured to receive the information access address returned, through the network, by the server; and</li><li>a generation module, configured to generate a 2D barcode including the information access address; wherein after a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, the server finds the private information according to the information identifier of the private information; if the check identifier included in the information access address is consistent with the prestored check identifier, and the time identifier included in the information access address is effective, the server returns the private information to the second terminal.</li></ul>
0014According to a further aspect, provided is a server, the server including: <ul id="ul0004" list-style="none"><li>a receiving module, configured to receive private information sent, through a network, by a first terminal;</li><li>a storage module, configured to store the private information;</li><li>a generation module, configured to generate an information access address corresponding to the private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information; and</li><li>a return module, configured to return the information access address to the terminal through the network, so that the first terminal generates a 2D barcode according to the information access address; wherein after a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, the server finds the private information according to the information identifier of the private information; if the check identifier included in the information access address is consistent with the prestored check identifier, and the time identifier included in the information access address is effective, the server returns the private information to the second terminal.</li></ul>
0015According to a further aspect, a system for generating a 2D barcode is provided, comprising: a first terminal for reading the 2D barcode, the terminal including: an acquisition module, configured to acquire a private information input by a user; <ul id="ul0005" list-style="none"><li>a sending module, configured to send the information access address through a network to a server that is configured to store the private information, and generate an information access address corresponding to the private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;</li><li>a receiving module, configured to receive the private information returned through the network by the server; and</li><li>a reading module, configured to generate a 2D barcode comprising the information access address; wherein the 2D barcode is configured such that when a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, and the server searches a pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with a pre-stored check identifier, and that the time identifier included in the information access address is effective, and the server returns the private information to the second terminal, and</li><li>the server including: <ul id="ul0006" list-style="none"><li>a receiving module, configured to receive the information access address sent, through the network, by the terminal and for accessing private information; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;</li><li>a storage module (1102), configured to store the private information;</li><li>a second generation module (1103), configured to generate the information access address corresponding to the private information; and</li><li>a return module (1104), configured to return the information access address through the network to the first terminal that is configured such that the first terminal generates the 2D barcode according to the information access address; wherein after a second terminal scans the 2D barcode, the information access address comprised in the 2D barcode is obtained and sent to the server, the server searches the pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with the pre-stored check identifier, and that the time identifier included in the information access address is effective, and the server returns the private information to the second terminal.</li></ul></li></ul>
0016According to a further aspect, a system for reading a 2D barcode is provide, comprising: a second terminal for reading the 2D barcode, comprising: <ul id="ul0007" list-style="none"><li>an acquisition module, configured to acquire the 2D barcode comprising an information access address; wherein the information access address at least comprises an information identifier of the private information, a check identifier and a time identifier corresponding to the private information;</li><li>a scanning module, configured to scan the 2D barcode, to obtain the information access address comprised in the 2D barcode, the information access address being for accessing the private information; a sending module, configured to send the information access address through a network to a server that is configured to search a pre-stored private information corresponding to the private information according to the information identifier of the private information, in response to determining that the check identifier included in the information access address is consistent with a pre-stored check identifier, and that the time identifier included in the information access address is effective, wherein the server is configured to return the private information to the second terminal;</li><li>a first receiving module, configured to receive the private information returned through the network by the server; and</li><li>a reading module, configured to use the private information as a reading result of the 2D barcode, and</li><li>the server, for searching pre-stored information for use as a reading result of the 2D barcode generated by a first terminal,</li><li>wherein the server comprises: <ul id="ul0008" list-style="none"><li>a second receiving module, configured to receive an information access address sent through a network by the second terminal and for accessing the private information;</li><li>a search module, configured to search the pre-stored private information corresponding to the private information according to the information identifier comprised in the information access address, in response to determining that the check identifier comprised in the information access address is consistent with the pre-stored check identifier, and that the time identifier comprised in the information access address is not ineffective; and</li><li>a return module, configured to return the found private information to the second terminal through the network, so that the second terminal uses the private information as a reading result of the 2D barcode.</li></ul></li></ul>
0017The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:
0018Private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and private information returned by the server through the network is then received; and therefore, generation and reading of a 2D barcode are implemented without enciphering and deciphering, costs of generating and reading a 2D barcode are reduced, an application scope of a 2D barcode is broadened, and a generated and read 2D barcode includes an information access address, so that security of private information is ensured.
BRIEF DESCRIPTION OF THE DRAWINGS
0019To describe the technical solutions in the embodiments of the present invention more clearly, drawings required in description of the embodiments will be introduced simply below. It is obvious that the drawings in the following description are only some of the embodiments of the present invention, and a person of ordinary skill in the art may obtain other drawings based on the drawings without creative efforts. <ul id="ul0009" list-style="none"><li><figref idref="f0001">FIG. 1</figref> is a flowchart of a first method for generating a 2D barcode provided in Embodiment 1 of the present invention;</li><li><figref idref="f0001">FIG. 2</figref> is a flowchart of a second method for generating a 2D barcode provided in Embodiment 1 of the present invention;</li><li><figref idref="f0002">FIG. 3</figref> is a flowchart of a first method for reading a 2D barcode provided in Embodiment 2 of the present invention;</li><li><figref idref="f0002">FIG. 4</figref> is a flowchart of a second method for reading a 2D barcode provided in Embodiment 2 of the present invention;</li><li><figref idref="f0003">FIG. 5</figref> is a flowchart of a method for generating a 2D barcode provided in Embodiment 3 of the present invention;</li><li><figref idref="f0004">FIG. 6</figref> is an architecture diagram of a secure 2D barcode service system provided in Embodiment 3 of the present invention;</li><li><figref idref="f0004">FIG. 7</figref> is a flowchart of saving, by the secure 2D barcode service system, information input by a user provided in Embodiment 3 of the present invention;</li><li><figref idref="f0005">FIG. 8</figref> is a flowchart of a method for reading a 2D barcode provided in Embodiment 4 of the present invention;</li><li><figref idref="f0006">FIG. 9</figref> is a flowchart of saving, by a secure 2D barcode service system, information acquired by a user by scanning a 2D barcode provided in Embodiment 4 of the present invention;</li><li><figref idref="f0007">FIG. 10</figref> is a schematic structural diagram of a terminal for generating a 2D barcode provided in Embodiment 5 of the present invention;</li><li><figref idref="f0007">FIG. 11</figref> is a schematic structural diagram of a server provided in Embodiment 6 of the present invention;</li><li><figref idref="f0008">FIG. 12</figref> is a schematic structural diagram of a generation module provided in Embodiment 6 of the present invention;</li><li><figref idref="f0008">FIG. 13</figref> is a schematic structural diagram of a terminal for reading a 2D barcode provided in Embodiment 7 of the present invention;</li><li><figref idref="f0009">FIG. 14</figref> is a schematic structural diagram of a server provided in Embodiment 8 of the present invention;</li><li><figref idref="f0009">FIG. 15</figref> is a schematic structural diagram of a search module provided in Embodiment 8 of the present invention;</li><li><figref idref="f0010">FIG. 16</figref> is a schematic structural diagram of a terminal provided in Embodiment 9 of the present invention;</li><li><figref idref="f0011">FIG. 17</figref> is a schematic structural diagram of a server provided in Embodiment 12 of the present invention;</li><li><figref idref="f0011">FIG. 18</figref> is a schematic structural diagram of a system for generating a 2D barcode provided in Embodiment 13 of the present invention;</li><li><figref idref="f0012">FIG. 19</figref> is a schematic structural diagram of a terminal provided in Embodiment 14 of the present invention;</li><li><figref idref="f0013">FIG. 20</figref> is a schematic structural diagram of a server provided in Embodiment 17 of the present invention; and</li><li><figref idref="f0013">FIG. 21</figref> is a schematic structural diagram of a system for reading a 2D barcode provided in Embodiment 18 of the present invention.</li></ul>
DESCRIPTION OF EMBODIMENTS
0020To make the objectives, technical solutions, and advantages in the present disclosure clearer, the implementation manners of the present invention are further described in detail below with reference to the accompanying drawings.
Embodiment 1
0021For private information, an embodiment of the present invention provides a method for generating a 2D barcode. The method is applicable to a system for generating a 2D barcode. The system includes a terminal and a server, and the terminal and the server are both in a network environment. By using an example of a perspective that the terminal executes the method provided in the embodiment of the present invention, referring to <figref idref="f0001">FIG. 1</figref>, a procedure of the method includes: <ul id="ul0010" list-style="none"><li>101: Acquire private information input by a user, and send the acquired private information to a server through a network, so that the server stores the private information, and generates an information access address corresponding to the private information.</li><li>102: Receive the information access address returned, through the network, by the server.</li></ul>
0022As an embodiment, the receiving the information access address returned, through the network, by the server includes: receiving, the information access address that is returned by the server through the network and at least includes an information identifier of the private information.
0023As an embodiment, the receiving the information access address returned, through the network, by the server includes: receiving, the information access address that is returned by the server through the network and at least includes an information identifier of the private information and a check identifier and/or a time identifier corresponding to the private information.
0024103: Generate a 2D barcode including the information access address.
0025Referring to <figref idref="f0001">FIG. 2</figref>, by using an example of a perspective that a server executes method for generating a 2D barcode provided in the embodiment of the present invention, a procedure of the method provided in the embodiment of the present invention includes: <ul id="ul0011" list-style="none"><li>201: Receive private information sent, through a network, by a terminal, and store the private information.</li><li>202: Generate an information access address corresponding to the private information.</li></ul>
0026As an optional embodiment, the generating an information access address corresponding to the private information includes: <ul id="ul0012" list-style="none"><li>acquiring an information identifier of the private information, and storing the information identifier, one information identifier corresponding to one piece of private information; and</li><li>generating the information access address including the information identifier of the private information.</li></ul>
0027As an optional embodiment, during the acquiring an information identifier of the private information, the method further includes: <ul id="ul0013" list-style="none"><li>acquiring a check identifier and/or a time identifier corresponding to the private information, and storing the check identifier corresponding to the private information; and</li><li>the generating the information access address including the information identifier of the private information includes: generating the information access address including the information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information.</li></ul>
0028203: Return the information access address to the terminal through the network, so that the terminal generates a 2D barcode according to the information access address.
0029In the method provided in the embodiment of the present invention, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering and deciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 2
0030For the above method for generating a 2D barcode provided in Embodiment 1, an embodiment of the present invention provides a method for reading a 2D barcode. The method is applicable to a system for reading a 2D barcode. The system includes a terminal and a server, and the terminal and the server are both in a network environment. By using an example of a perspective that a terminal executes the method provided in the embodiment of the present invention, referring to <figref idref="f0002">FIG. 3</figref>, a procedure of the method includes: <ul id="ul0014" list-style="none"><li>301: Acquire a 2D barcode including an information access address, and scan the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information.</li><li>302: Send the information access address to a server through a network, so that the server searches for corresponding private information according to the information access address.</li><li>303: Receive the private information returned, through the network, by the server, and use the private information as a reading result of the 2D barcode.</li></ul>
0031As an embodiment, the information access address at least includes an information identifier of the private information; and the receiving the private information returned, through the network, by the server includes: receiving, after the server finds the private information according to the information identifier of the private information included in the information access address, the private information returned through the network.
0032As an embodiment, the information access address further includes a check identifier and/or a time identifier corresponding to the private information; and the receiving the private information returned, through the network, by the server includes: receiving, after the server finds the private information according to an information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information included in the information access address, the private information returned through the network.
0033Referring to <figref idref="f0002">FIG. 4</figref>, by using an example of a perspective that a server executes the method for reading a 2D barcode provided in the embodiment of the present invention, a procedure of the method provided in the embodiment of the present invention includes: <ul id="ul0015" list-style="none"><li>401: Receive an information access address sent, through a network, by a terminal and for accessing private information.</li><li>402: Search prestored private information for private information corresponding to the information access address.</li></ul>
0034As an optional embodiment, the information access address includes an information identifier of the private information; and the searching prestored private information for private information corresponding to the information access address includes: searching the prestored private information for the private information corresponding to the information identifier included in the information access address.
0035As an optional embodiment, the information access address further includes a check identifier and/or a time identifier; and the searching the prestored private information for the private information corresponding to the information identifier included in the information access address includes: <ul id="ul0016" list-style="none"><li>determining whether the check identifier included in the information access address is consistent with a prestored check identifier, and/or determining whether the time identifier included in the information access address is ineffective; and</li><li>executing, if the check identifier included in the information access address is consistent with the prestored check identifier, and/or the time identifier included in the information access address is not ineffective, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address.</li></ul>
0036403: Return the found private information to the terminal through the network, so that the terminal uses the private information as a reading result of a 2D barcode.
0037In the method provided in the embodiment of the present invention, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and the private information returned by the server through the network is received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 3
0038An embodiment of the present invention provides a method for generating a 2D barcode. The method provided in the embodiment of the present invention is described in detail with reference to the above content in Embodiment 1. Referring to <figref idref="f0003">FIG. 5</figref>, a procedure of the method includes: 501: A terminal acquires private information input by a user, and sends the acquired private information to a server through a network.
0039A manner of acquiring private information input by a user is not specifically limited in this embodiment. Specific implementation includes, but is not limited to: providing an information input interface, the input interface being further provided with a submit button; and acquiring information input, through the information input interface, by a user, and using, when it is detected that the user clicks the submit button, the information input, through the information input interface, by the user as the acquired private information input by the user.
0040To ensure security of the private information, the method provided in this embodiment includes, but is not limited to, sending the acquired private information to the server through the network.
0041In addition, referring to an architecture diagram of a secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the secure 2D barcode service system includes a client program and an information storage subsystem. The client program includes an information processing module and a 2D barcode module. The information processing module is connected to a user input, and the 2D barcode module is connected to scanning of a 2D barcode by a user. The information storage subsystem includes a data processing module, a network service module, and a 2D barcode information database. The network service module is connected to the scanning of the 2D barcode by the user. The user input correspondingly acquires private information input by the user, and the information processing module is configured to send the private information to a server through a network.
0042502: The server receives the private information sent, through the network, by the terminal, and stores the private information.
0043Referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the network service module is configured to receive the private information sent, through the network, by the terminal, and transfer the private information to the data processing module, so that the data processing module saves the private information in the 2D barcode information database.
0044It should be noted that in the method provided in the embodiment of the present invention, private information is stored on a server, so that a generated 2D barcode does not include private information, so that security of private information is ensured. A manner in which the server stores the private information is not specifically limited in this embodiment, and includes, but is not limited to, storing each piece of private information according to an information identifier of the private information.
0045503: The server generates an information access address corresponding to the private information.
0046Because private information is stored on a server side, to access private information, in the method provided in this embodiment, the server generates the information access address corresponding to the private information, the information access address being for accessing the private information. During specific implementation, the generated information access address may be one Uniform Resource Locator (URL).
0047As an embodiment, the generating an information access address corresponding to the private information includes, but is not limited to: <ul id="ul0017" list-style="none"><li>acquiring an information identifier of the private information, and storing the information identifier, one information identifier corresponding to one piece of private information; and</li><li>generating the information access address including the information identifier of the private information.</li></ul>
0048A manner of acquiring the information identifier of the private information is not specifically limited in this embodiment. Specific implementation includes, but is not limited to, calculating a Message Digest Algorithm 5 (MDS) value according to the entire private information, and the MDS value is a 64-bit 8-byte integral type. The MDSvalue is used as the acquired information identifier of the private information. Because one information identifier corresponds to one piece of private information, an information identifier is used as an information access address, so that private information may be accessed by using an information identifier.
0049As an embodiment, during the acquiring an information identifier of the private information, the method further includes, but is not limited to: <ul id="ul0018" list-style="none"><li>acquiring a check identifier and/or a time identifier corresponding to the private information, and storing the check identifier corresponding to the private information; and</li><li>the generating the information access address including the information identifier of the private information includes: generating the information access address including the information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information.</li></ul>
0050The foregoing procedure may be categorized into the following three cases: In a first case, during the acquiring an information identifier of the private information, a check identifier corresponding to the private information may be acquired, and the check identifier corresponding to the private information may be stored; and the information access address including the information identifier of the private information and the check identifier corresponding to the private information is generated.
0051In a second case, during the acquiring an information identifier of the private information, a time identifier corresponding to the private information may be acquired; and the information access address including the information identifier of the private information and the time identifier corresponding to the private information is generated.
0052In a third case, during the acquiring an information identifier of the private information, a check identifier and a time identifier corresponding to the private information may be acquired, and the check identifier and the time identifier corresponding to the private information are stored; and the information access address including the information identifier of the private information and the check identifier and the time identifier corresponding to the private information is generated.
0053Neither of manners of acquiring a check identifier and/or a time identifier corresponding to the private information is specifically limited in this embodiment. Specific implementation includes, but is not limited to, randomly generating a 64-bit 8-byte integral type value, and using the value as the acquired check identifier corresponding to the private information, the check identifier being for checking the validity of the information access address; and generating a 64-bit 8-byte integral type timestamp according to server time, and using the timestamp as the acquired time identifier corresponding to the private information, the time identifier being for checking effectiveness of information access address.
0054When the information access address includes both the information identifier of the private information, the check identifier corresponding to the private information, and the time identifier corresponding to the private information, the generated information access address may be: http://domain name/qrc?id=user information ID, check KEY value, and timestamp. The information access address includes one parameter id, and parameter values are a user information ID, a check KEY value, and a timestamp. The user information ID corresponds to the information identifier of the private information, the check KEY value corresponds to the check identifier corresponding to the private information, and the timestamp corresponds to the time identifier corresponding to the private information.
0055In addition, referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the data processing module is configured to generate the information access address corresponding to the private information.
0056504: The server returns the information access address to the terminal through the network.
0057In this embodiment, a manner of returning the information access address to the terminal through the network is not limited. During specific implementation, referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, after generating the information access address corresponding to the private information, the data processing module may send the private address to the network service module, and the network server module returns the information access address to the terminal through the network.
0058505: The terminal receives the information access address returned, through the network, by the server.
0059Referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the information processing module is configured to receive the information access address returned, through the network, by the server.
0060As an embodiment, after receiving the information access address returned, through the network, by the server, the information processing module further stores the information access address, and display whether the private information is successfully processed.
0061506: The terminal generates a 2D barcode including the information access address.
0062Referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the 2D barcode module is configured to generate the 2D barcode including the information access address. The generated 2D barcode may be a QR 2D barcode. Because the generated 2D barcode does not include private information, so that security of the private information is ensured.
0063As an embodiment, after generating the 2D barcode including the information access address, the 2D barcode module further displays the 2D barcode.
0064In addition, referring to a flowchart of saving information input by user by a secure 2D barcode service system shown in <figref idref="f0004">FIG. 7</figref>, step 501 corresponds to that a user inputs information, and user information is sent through a network; step 502 and step 503 corresponds to that the user information is transferred, an ID value of the user information is calculated, the user information is saved, the user information has been saved, and a URL for acquiring the information is generated; and step 504 and step 505 correspond to that the URL for acquiring the information is returned, and the URL for acquiring the information is returned through the network, and it is displayed whether processing is successful.
0065In the method provided in this embodiment, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 4
0066With reference to the method for generating a 2D barcode provided in Embodiment 1 and Embodiment 3 above, an embodiment of the present invention provides a method for reading a 2D barcode. With reference to the content of Embodiment 2 above, the method provided in the embodiment of the present invention is described in detail. Referring to <figref idref="f0005">FIG. 8</figref>, a procedure of the method includes:
0067801: A terminal acquires a 2D barcode including an information access address, and scans the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information.
0068Neither of manners of acquiring a 2D barcode including an information access address and scanning the 2D barcode is specifically limited in this embodiment. During specific implementation, a 2D barcode may be generated by using the method provided in Embodiment 3 above, and the 2D barcode is used as the acquired 2D barcode including the information access address. After the 2D barcode is acquired, the 2D barcode may be scanned by using a 2D barcode scanning device. The 2D barcode scanning device may be a mobile phone, a tablet computer, and the like. Because the acquired 2D barcode includes the information access address, after the 2D barcode is scanned, the information access address included in the 2D barcode may be obtained, the information access address being for accessing private information.
0069In addition, referring to an architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, a user scans a 2D barcode to correspondingly acquire a 2D barcode including an information access address, and a 2D barcode module is configured to scan the 2D barcode, to obtain the information access address included in the 2D barcode.
0070802: The terminal sends the information access address to a server through a network.
0071To enable acquisition of private information according to an information access address, in the method provided in this embodiment, the information access address is sent to the server through the network. A manner of sending is not specifically limited in this embodiment. During specific implementation, referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the information processing module may send the information access address to the server through the network. The information access address may be a URL of a network Hyper Text Transfer Protocol (HTTP)/Hypertext Transfer Protocol over Secure Socket Layer (HTTPS) request.
0072803: The server receives the information access address sent, through the network, by the terminal and for accessing private information.
0073Referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the network service module is configured to receive the information access address sent, through the network, by the terminal and for accessing private information, and transfer the information access address to the data processing module.
0074804: The server searches prestored private information for private information corresponding to the information access address.
0075In this embodiment, a manner of searching for the private information corresponding to the information access address is not limited. During specific implementation, because the information access address is for accessing private information, the prestored private information may be directly searched for the private information corresponding to the information access address.
0076As an embodiment, the information access address includes an information identifier of the private information; and <ul id="ul0019" list-style="none"><li>the searching prestored private information for private information corresponding to the information access address includes:</li><li>searching the prestored private information for the private information corresponding to the information identifier included in the information access address.</li></ul>
0077By using the information identifier, the prestored private information may be rapidly searched for the private information corresponding to the information identifier included in the information access address.
0078As an embodiment, the information access address further includes a check identifier and/or a time identifier; the searching the prestored private information for the private information corresponding to the information identifier included in the information access address includes: <ul id="ul0020" list-style="none"><li>determining whether the check identifier included in the information access address is consistent with a prestored check identifier, and/or determining whether the time identifier included in the information access address is ineffective; and</li><li>executing, if the check identifier included in the information access address is consistent with the prestored check identifier, and/or the time identifier included in the information access address is not ineffective, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address.</li></ul>
0079The information access address provided in this embodiment may include the information identifier of the private information, or may further include the information identifier of the private information and the check identifier corresponding to the private information, or may further include the information identifier of the private information and the time identifier corresponding to the private information, or may further include the information identifier of the private information, the check identifier corresponding to the private information, and the time identifier corresponding to the private information. For the four types of information access addresses, during the search for the private information, four cases are included: <ol id="ol0001"><li>(1) When the information access address includes the information identifier of the private information, the prestored private information is directly searched for the private information corresponding to the information identifier included in the information access address.</li><li>(2) When the information access address includes the information identifier of the private information and the check identifier corresponding to the private information, it is determined whether the check identifier included in the information access address is consistent with the prestored check identifier; and when the check identifier included in the information access address is consistent with the prestored check identifier, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address is executed.</li><li>(3) When the information access address includes the information identifier of the private information and the time identifier corresponding to the private information, it is determined whether the time identifier included in the information access address is ineffective; and when the time identifier included in the information access address is not ineffective, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address is executed.</li><li>(4) When the information access address includes the information identifier of the private information, the check identifier corresponding to the private information, and the time identifier corresponding to the private information, it is determined whether the check identifier included in the information access address is consistent with the prestored check identifier; when the check identifier included in the information access address is consistent with the prestored check identifier, it is determined whether the time identifier included in the information access address is ineffective; and when the time identifier included in the information access address is not ineffective, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address is executed.</li></ol>
0080For ease of understanding, an example in which the information identifier corresponds to a user information ID, the check identifier corresponds to a check KEY value, and the time identifier corresponds to a timestamp is used for description. When it is determined that the check KEY value included in the information access address is consistent with the prestored check KEY value, it is determined that the information access address is effective; and when it is determined that the check KEY value included in the information access address is inconsistent with the prestored check KEY value, it is determined that the information access address is ineffective, and it is returned that acquisition of private information fails.
0081The determination of whether the time identifier included in the information access address is ineffective includes, but is not limited to, comparing time recorded in the timestamp with time of a current server; if a difference value between the time recorded in the timestamp and the time of the current server is greater than a preset time threshold, it is determined that the time identifier included in the information access address is ineffective, and it is returned that acquisition of private information fails; and if the difference value between the time recorded in the timestamp and the time of the current server is not greater than the preset time threshold, it is determined that the time identifier included in the information access address is effective. The preset time threshold may be 5 minutes. Certainly, in addition to the above preset time threshold, other preset time thresholds such as 4 minutes and 6 minutes may be further used, and are specifically limited in this embodiment.
0082In addition, referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the data processing module is configured to search the prestored private information for the private information corresponding to the information access address, the prestored private information being stored in the 2D barcode information database.
0083805: The server returns the found private information to the terminal through the network.
0084In this embodiment, a manner of returning the found private information to the terminal through the network is not limited. During specific implementation, referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, after finding the private information corresponding to the information access address from the prestored private information, the data processing module sends the found private information to the network service module, so that the network service module returns the found private information to the terminal through the network.
0085806: The terminal receives the private information returned, through the network, by the server, and uses the private information as a reading result of the 2D barcode.
0086Referring to the architecture diagram of the secure 2D barcode service system shown in <figref idref="f0004">FIG. 6</figref>, the information processing module is configured to receive the private information returned, through the network, by the server, and use the private information as a reading result of the 2D barcode.
0087In addition, referring to a flowchart of saving, by a secure 2D barcode service system, information acquired by a user by scanning a 2D barcode shown in <figref idref="f0006">FIG. 9</figref>, step 801 and step 802 correspond to that a picture of a 2D barcode is generated and displayed, a user scans the 2D barcode and initiates a network request, and pulls and saves information; step 803 and step 804 correspond to that an information pull request is initiated, a URL of the request is transmitted, the URL of the request is parsed, an ID value is acquired, the validity of the request is examined, a check KEY value is compared, a comparison result is returned, effectiveness of the request is examined, a timestamp is checked, it is checked that the timestamp fails, the check result is returned, and information is searched for according to an ID; and step 805 and step 806 correspond to that the information corresponding to the ID is returned, the acquired information is returned, and the acquired information is returned through the network.
0088In the method provided in this embodiment, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and private information returned by the server through the network is then received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 5
0089Referring to <figref idref="f0007">FIG. 10</figref>, an embodiment of the present invention provides a terminal for generating a 2D barcode, the terminal including: <ul id="ul0021" list-style="none"><li>an acquisition module 1001, configured to acquire private information input by a user;</li><li>a sending module 1002, configured to send the private information to a server through a network, so that the server stores the private information, and generates an information access address corresponding to the private information;</li><li>a receiving module 1003, configured to receive an information access address returned, through the network, by the server; and</li><li>a generation module 1004, configured to generate a 2D barcode including the information access address.</li></ul>
0090As an embodiment, the receiving module 1003 is configured to receive the information access address that is returned by the server through the network and at least includes an information identifier of the private information.
0091As an embodiment, the receiving module 1003 is configured to receive the information access address returned by the server through the network and at least includes an information identifier of the private information and a check identifier and/or a time identifier corresponding to the private information.
0092In the terminal provided in the embodiment of the present invention, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 6
0093Referring to <figref idref="f0007">FIG. 11</figref>, an embodiment of the present invention provides a server, the server including: <ul id="ul0022" list-style="none"><li>a receiving module 1101, configured to receive private information sent, through a network, by a terminal;</li><li>a storage module 1102, configured to store the private information;</li><li>a generation module 1103, configured to generate an information access address corresponding to the private information; and</li><li>a return module 1104, configured to return the information access address to the terminal through the network, so that the terminal generates a 2D barcode according to the information access address.</li></ul>
0094As an optional embodiment, referring to <figref idref="f0008">FIG. 12</figref>, the generation module 1103 includes: <ul id="ul0023" list-style="none"><li>an acquisition unit 11031, configured to acquire an information identifier of the private information;</li><li>a storage unit 11032, configured to store the information identifier, one information identifier corresponding to one piece of private information; and</li><li>a generation unit 11033, configured to generate the information access address including the information identifier of the private information.</li></ul>
0095As an optional embodiment, the acquisition unit 11031 is further configured to: when an information identifier of the private information is acquired, acquire a check identifier and/or a time identifier corresponding to the private information; <ul id="ul0024" list-style="none"><li>the storage unit 11032 is further configured to store the check identifier corresponding to the private information; and</li><li>the generation unit 11033 is configured to generate the information access address including the information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information.</li></ul>
0096In the server provided in the embodiment of the present invention, private information sent by a terminal through a network is received and stored, and an information access address corresponding to the private information is generated and returned to the terminal through the network, so that the terminal generates a 2D barcode according to the information access address; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 7
0097Referring to <figref idref="f0008">FIG. 13</figref>, an embodiment of the present invention provides a terminal for reading a 2D barcode, the terminal including: <ul id="ul0025" list-style="none"><li>an acquisition module 1301, configured to acquire a 2D barcode including an information access address;</li><li>a scanning module 1302, configured to scan the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information;</li><li>a sending module 1303, configured to send the information access address to a server through a network, so that the server searches for corresponding private information according to the information access address;</li><li>a receiving module 1304, configured to receive the private information returned, through the network, by the server; and</li><li>a reading module 1305, configured to use the private information as a reading result of the 2D barcode.</li></ul>
0098As an optional embodiment, the information access address obtained through scanning by the scanning module 1302 at least includes an information identifier of the private information; and the receiving module 1304 is configured to receive, after the server finds the private information according to the information identifier of the private information included in the information access address, the private information returned through the network.
0099As an optional embodiment, the information access address obtained through scanning by the scanning module 1302 further includes a check identifier and/or a time identifier corresponding to the private information; and the receiving module 1304 is configured to receive, after the server finds the private information according to an information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information included in the information access address, the private information returned through the network.
0100In the terminal provided in this embodiment, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and private information returned by the server through the network is then received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 8
0101Referring to <figref idref="f0009">FIG. 14</figref>, an embodiment of the present invention provides a server, the server including: <ul id="ul0026" list-style="none"><li>a receiving module 1401, configured to receive an information access address sent, through a network, by a terminal and for accessing private information;</li><li>a search module 1402, configured to search prestored private information for private information corresponding to the information access address; and</li><li>a return module 1403, configured to return the found private information to the terminal through the network, so that the terminal uses the private information as a reading result of a 2D barcode.</li></ul>
0102As an optional embodiment, the information access address received by the receiving module 1401 includes an information identifier of the private information; and the search module 1402 is configured to search the prestored private information for the private information corresponding to the information identifier included in the information access address.
0103As an optional embodiment, the information access address received by the receiving module 1401 further includes a check identifier and/or a time identifier.
0104Referring to <figref idref="f0009">FIG. 15</figref>, the search module 1402 includes: <ul id="ul0027" list-style="none"><li>a determination unit 14021, configured to determine whether the check identifier included in the information access address is consistent with a prestored check identifier, and/or determine whether the time identifier included in the information access address is ineffective; and</li><li>an execution unit 14022, configured to execute, when the check identifier included in the information access address is consistent with the prestored check identifier, and/or the time identifier included in the information access address is not ineffective, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address.</li></ul>
0105In the server provided in this embodiment, an information access address sent by a terminal through a network and for accessing private information is received, and private information corresponding to the information access address found from prestored private information is returned to the terminal through the network, so that the terminal uses the private information as a reading result of a 2D barcode; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 9
0106An embodiment of the present invention provides a terminal. Please refer to <figref idref="f0010">FIG. 16</figref>, which is a schematic structural diagram of a terminal involved in the embodiment of the present invention, and the terminal may be configured to implement the method for generating a 2D barcode provided in the above embodiment. Specifically: The terminal 1600 may include components such as a Radio Frequency (RF) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (WiFi) module 170, a processor 180 including one or more processing cores, and a power supply 190. A person skilled in the art may understand that the structure of the terminal shown in <figref idref="f0010">FIG. 16</figref> does not constitute a limitation to the terminal, and the terminal may include more components or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used.
0107The RF circuit 110 may be configured to receive and send signals during an information receiving and sending process or a call process. Particularly, downlink information from a base station is received and then delivered to one or more processors 180 for processing. In addition, related uplink data is sent to the base station. Generally, the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), and a duplexer. In addition, the RF circuit 110 may also communicate with a network and another device by wireless communication. The wireless communication may use any communications standard or protocol, which includes, but is not limited to, Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
0108The memory 120 may be configured to store a software program and module. The processor 180 runs the software program and module stored in the memory 120, to implement various functional applications and data processing. The memory 120 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function and an image display function), and the like. The data storage area may store data (such as audio data and an address book) created according to use of the terminal 1600, and the like. In addition, the memory 120 may include a high speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory, or another volatile solid-state storage device. Accordingly, the memory 120 may further include a memory controller, so that the processor 180 and the input unit 130 access the memory 120.
0109The input unit 130 may be configured to receive input digit or character information, and generate a keyboard, mouse, joystick, optical, or track ball signal input related to the user setting and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and another input device 132. The touch-sensitive surface 131, which may also be referred to as a touch screen or a touch panel, may collect a touch operation of a user on or near the touch-sensitive surface (such as an operation of a user on or near the touch-sensitive surface 131 by using any suitable object or accessory, such as a finger or a stylus), and drive a corresponding connection apparatus according to a preset program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch position of the user, detects a signal generated by the touch operation, and transfers the signal to the touch controller. The touch controller receives the touch signal from the touch detection apparatus, converts the touch signal into touch point coordinates, and sends the touch point coordinates to the processor 180. Moreover, the touch controller can receive and execute a command sent from the processor 180. In addition, the touch-sensitive surface 131 may be may be a resistive, capacitive, infrared, or surface sound wave type touch-sensitive surface. In addition to the touch-sensitive surface 131, the input unit 130 may further include the another input device 132. Specifically, the another input device 132 may include, but is not limited to, one or more of a physical keyboard, a functional key (such as a volume control key or a switch key), a track ball, a mouse, and a joystick.
0110The display unit 140 may be configured to display information input by the user or information provided for the user, and various graphical user interfaces of the terminal 1600. The graphical user interfaces may be formed by a graph, a text, an icon, a video, and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. After detecting a touch operation on or near the touch-sensitive surface 131, the touch-sensitive surface 131 transfers the touch operation to the processor 180, so as to determine the type of the touch event. Then, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although, in <figref idref="f0010">FIG. 16</figref>, the touch-sensitive surface 131 and the display panel 141 are used as two separate parts to implement input and output functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 may be integrated to implement the input and output functions.
0111The terminal 1600 may further include at least one sensor 150, such as an optical sensor, a motion sensor, and other sensors. Specifically, the optical sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of the display panel 141 according to brightness of the ambient light. The proximity sensor may switch off the display panel 141 and/or backlight when the terminal 1600 is moved to the ear. As one type of motion sensor, a gravity acceleration sensor may detect magnitude of accelerations in various directions (generally on three axes), may detect magnitude and a direction of the gravity when static, and may be applied to an application that recognizes the attitude of the mobile phone (for example, switching between landscape orientation and portrait orientation, a related game, and magnetometer attitude calibration), a function related to vibration recognition (such as a pedometer and a knock), and the like. Other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be configured in the terminal 1600, are not further described herein.
0112The audio circuit 160, a loudspeaker 161, and a microphone 162 may provide audio interfaces between the user and the terminal 1600. The audio circuit 160 may convert received audio data into an electric signal and transmit the electric signal to the loudspeaker 161. The loudspeaker 161 converts the electric signal into a sound signal for output. On the other hand, the microphone 162 converts a collected sound signal into an electric signal. The audio circuit 160 receives the electric signal and converts the electric signal into audio data, and outputs the audio data to the processor 180 for processing. Then, the processor 180 sends the audio data to, for example, another terminal by using the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may further include an earplug jack, so as to provide communication between a peripheral earphone and the terminal 1600.
0113WiFi is a short distance wireless transmission technology. The terminal 1600 may help, by using the WiFi module 170, the user to receive and send e-mails, browse a webpage, access stream media, and so on, which provides wireless broadband Internet access for the user. Although <figref idref="f0010">FIG. 16</figref> shows the WiFi module 170, it may be understood that the wireless communications unit is not a necessary component of the terminal 1600, and when required, the wireless communications unit may be omitted as long as the scope of the essence of the present disclosure is not changed.
0114The processor 180 is the control center of the terminal 1600, and is connected to various parts of the mobile phone by using various interfaces and lines. By running or executing the software program and/or module stored in the memory 120, and invoking data stored in the memory 120, the processor 180 performs various functions and data processing of the terminal 1600, thereby performing overall monitoring on the mobile phone. Optionally, the processor 180 may include one or more processing cores. Preferably, the processor 180 may integrate an application processor and a modem. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem mainly processes wireless communication. It may be understood that the foregoing modem may also not be integrated into the processor 180.
0115The terminal 1600 further includes the power supply 190 (such as a battery) for supplying power to the components. Preferably, the power supply may be logically connected to the processor 180 by using a power management system, thereby implementing functions such as charging, discharging and power consumption management by using the power management system. The power supply 190 may further include any component, such as one or more direct current or alternate current power supplies, a re-charging system, a power supply fault detection circuit, a power supply converter or an inverter, and a power supply state indicator.
0116Although not shown in the figure, the terminal 1600 may further include a camera, a Bluetooth module, and the like, which are not further described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, and the terminal further includes a memory and one or more programs. The one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs contain instructions for executing the following operations: <ul id="ul0028" list-style="none"><li>acquiring private information input by a user, and sending the private information to a server through a network, so that the server stores the private information, and generates an information access address corresponding to the private information;</li><li>receiving an information access address returned, through the network, by the server; and</li><li>generating a 2D barcode including the information access address.</li></ul>
0117Assuming that the above is a first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes an instruction for executing the following operation: the receiving an information access address returned, through the network, by the server includes: receiving the information access address that is returned by the server through the network and at least includes an information identifier of the private information.
0118In a third possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes an instruction for executing the following operation: the receiving an information access address returned, through the network, by the server includes: receiving the information access address that is returned by the server through the network and at least includes an information identifier of the private information and a check identifier and/or a time identifier corresponding to the private information.
0119In the terminal provided in the embodiment of the present invention, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 10
0120An embodiment of the present invention further provides a computer readable storage medium. The computer readable storage medium may be a computer readable storage medium included in the memory in the above embodiment, or may also be a computer readable storage medium that exists separately and is not installed in the terminal. The computer readable storage medium stores one or more programs, the one or more programs are used by one or more processors to execute one method for generating a 2D barcode, the method including: <ul id="ul0029" list-style="none"><li>acquiring private information input by a user, and sending the private information to a server through a network, so that the server stores the private information, and generates an information access address corresponding to the private information;</li><li>receiving the information access address returned, through the network, by the server; and</li><li>generating a 2D barcode including the information access address.</li></ul>
0121Assuming that the above is a first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes an instruction for executing the following operation: the receiving the information access address returned, through the network, by the server includes: receiving the information access address that is returned by the server through the network and at least includes an information identifier of the private information.
0122In a third possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes an instruction for executing the following operation: receiving an information access address returned, through the network, by the server includes: receiving the information access address that is returned by the server through the network and at least includes an information identifier of the private information and a check identifier and/or a time identifier corresponding to the private information.
0123In the computer readable storage medium provided in the embodiment of the present invention, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 11
0124An embodiment of the present invention provides a graphical user interface, and the graphical user interface is used on a terminal. The terminal includes a touch screen display, a memory, and one or more processors configured to execute one or more programs. The graphical user interface includes: <ul id="ul0030" list-style="none"><li>acquiring private information input by a user, and sending the private information to a server through a network, so that the server stores the private information, and generates an information access address corresponding to the private information;</li><li>receiving the information access address returned, through the network, by the server; and</li><li>generating a 2D barcode including the information access address.</li></ul>
0125In the graphical user interface provided in the embodiment of the present invention, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 12
0126<figref idref="f0011">FIG. 17</figref> is a schematic structural diagram of a server provided in an embodiment of the present invention. The server 1700 may have big differences due to different configurations or performance, and may include one or more central processing units (CPU) 1722 (for example, one or more processors), a memory 1732, and one or more storage media 1730 (for example, one or more massive storage devices) for storing application programs 1742 or data 1744. The memory 1732 and the storage medium 1730 may be stored temporarily or stored permanently. The program stored in the storage medium 1730 may include one or more modules (not shown), and each module may include operations on a series of instructions in the server 1700: <ul id="ul0031" list-style="none"><li>receiving private information sent, through a network, by a terminal, and storing the private information;</li><li>generating an information access address corresponding to the private information; and</li><li>returning the information access address to the terminal through the network, so that the terminal generates a 2D barcode according to the information access address.</li></ul>
0127In another embodiment, the following instructions may be further included: the generating an information access address corresponding to the private information includes: <ul id="ul0032" list-style="none"><li>acquiring an information identifier of the private information, and storing the information identifier, one information identifier corresponding to one piece of private information; and</li><li>generating the information access address including the information identifier of the private information.</li></ul>
0128In another embodiment, the following instructions may be further included: during the acquiring an information identifier of the private information, further including: <ul id="ul0033" list-style="none"><li>acquiring a check identifier and/or a time identifier corresponding to the private information, and storing the check identifier corresponding to the private information; and</li><li>the generating the information access address including the information identifier of the private information includes: generating the information access address including an information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information.</li></ul>
0129Furthermore, the central processing unit 1722 may be set to communicate with the storage medium 1730, and operations of a series of instructions in the storage medium 1730 are executed on the server 1700.
0130The server 1700 may further include one or more power supplies 1726, one or more wired or wireless network interfaces 1750, one or more input/output interfaces 1758, and/or, one or more operating systems 1741, for example, Windows Server<sup>™</sup>, Mac OS X<sup>™</sup>, Unix<sup>™</sup>, Linux<sup>™</sup>, and FreeBSD<sup>™</sup>.
0131In the server provided in the embodiment of the present invention, private information sent by a terminal through a network is received and stored, an information access address corresponding to the private information is generated and returned to the terminal through the network, so that the terminal generates a 2D barcode according to the information access address; therefore, generation of a 2D barcode is implemented without enciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
0132It should be noted that when the terminal for generating a 2D barcode and the server provided in the foregoing embodiments generate a 2D barcode, the foregoing division of functional modules is only used as an example for description. In practical applications, the foregoing functions may be allocated to be accomplished by different functional modules according to needs, that is, the internal structures of the terminal and the server are divided into different functional modules to accomplish all or some of the functions described above. In addition, the terminal for generating a 2D barcode and the server provided in the foregoing embodiments share the same concept with the embodiments of the method for generating a 2D barcode, and reference may be made to the method embodiments for the specific implementation processes of the terminal and the server, which are no longer elaborated herein.
Embodiment 13
0133Referring to <figref idref="f0011">FIG. 18</figref>, an embodiment of the present invention provides a system for generating a 2D barcode, and the system includes: a terminal 1801 and a server 1802.
0134The terminal 1801 is configured to acquire private information input by a user, and send the private information to the server 1802 through a network, so that the server 1802 stores the private information, and generates an information access address corresponding to the private information.
0135The terminal 1801 is further configured to receive the information access address returned by the server 1802 through the network.
0136The terminal 1801 is further configured to generate a 2D barcode including the information access address.
0137As an optional embodiment, the terminal 1801 is configured to receive the information access address that is returned by the server 1802 through the network and at least includes an information identifier of the private information.
0138As an optional embodiment, the terminal 1801 is configured to receive the information access address that is returned by the server 1802 through the network and at least includes an information identifier of the private information and a check identifier and/or a time identifier corresponding to the private information.
0139It should be noted that there may be one or more terminals 1801 and servers 1802, and reference may be made to Embodiment 5 and Embodiment 6 above for the structures of the terminal 1801 and the server 1802, which are not specifically limited in this embodiment.
0140In the system provided in the embodiment of the present invention, private information input by a user is sent to a server through a network, an information access address returned by the server through the network is received, and a 2D barcode including the information access address is generated; therefore, generation of a 2D barcode is implemented without enciphering and deciphering, a cost of generating a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a generated 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 14
0141An embodiment of the present invention provides a terminal. Please refer to <figref idref="f0012">FIG. 19</figref>, which is a schematic structural diagram of a terminal involved in the embodiment of the present invention. The terminal may be configured to implement the method for reading a 2D barcode provided in the foregoing embodiment. Specifically:
0142The terminal 1900 may include components such as a Radio Frequency (RF) circuit 210, a memory 220 including one or more computer readable storage media, an input unit 230, a display unit 240, a sensor 250, an audio circuit 260, a Wireless Fidelity (WiFi) module 270, a processor 280 including one or more processing cores, and a power supply 290. A person skilled in the art may understand that the structure of the terminal shown in <figref idref="f0012">FIG. 19</figref> does not constitute a limitation to the terminal, and the terminal may include more components or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used.
0143The RF circuit 210 may be configured to receive and send signals during an information receiving and sending process or a call process. Particularly, downlink information from a base station is received and then delivered to one or more processors 280 for processing. In addition, related uplink data is sent to the base station. Generally, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), and a duplexer. In addition, the RF circuit 210 may also communicate with a network and another device by wireless communication. The wireless communication may use any communications standard or protocol, which includes, but is not limited to, Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
0144The memory 220 may be configured to store a software program and module. The processor 280 runs the software program and module stored in the memory 220, to implement various functional applications and data processing. The memory 220 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function and an image display function), and the like. The data storage area may store data (such as audio data and an address book) created according to use of the terminal 1900, and the like. In addition, the memory 220 may include a high speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory, or another volatile solid-state storage device. Accordingly, the memory 220 may further include a memory controller, so that the processor 280 and the input unit 230 access the memory 220.
0145The input unit 230 may be configured to receive input digit or character information, and generate a keyboard, mouse, joystick, optical, or track ball signal input related to the user setting and function control. Specifically, the input unit 230 may include a touch-sensitive surface 231 and another input device 232. The touch-sensitive surface 231, which may also be referred to as a touch screen or a touch panel, may collect a touch operation of a user on or near the touch-sensitive surface (such as an operation of a user on or near the touch-sensitive surface 231 by using any suitable object or accessory, such as a finger or a stylus), and drive a corresponding connection apparatus according to a preset program. Optionally, the touch-sensitive surface 231 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch position of the user, detects a signal generated by the touch operation, and transfers the signal to the touch controller. The touch controller receives the touch signal from the touch detection apparatus, converts the touch signal into touch point coordinates, and sends the touch point coordinates to the processor 280. Moreover, the touch controller can receive and execute a command sent from the processor 280. In addition, the touch-sensitive surface 231 may be may be a resistive, capacitive, infrared, or surface sound wave type touch-sensitive surface. In addition to the touch-sensitive surface 231, the input unit 230 may further include the another input device 232. Specifically, the another input device 232 may include, but is not limited to, one or more of a physical keyboard, a functional key (such as a volume control key or a switch key), a track ball, a mouse, and a joystick.
0146The display unit 240 may be configured to display information input by the user or information provided for the user, and various graphical user interfaces of the terminal 1900. The graphical user interfaces may be formed by a graph, a text, an icon, a video, and any combination thereof. The display unit 240 may include a display panel 241. Optionally, the display panel 241 may be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch-sensitive surface 231 may cover the display panel 241. After detecting a touch operation on or near the touch-sensitive surface 231, the touch-sensitive surface 231 transfers the touch operation to the processor 280, so as to determine the type of the touch event. Then, the processor 280 provides a corresponding visual output on the display panel 241 according to the type of the touch event. Although, in <figref idref="f0012">FIG. 19</figref>, the touch-sensitive surface 231 and the display panel 241 are used as two separate parts to implement input and output functions, in some embodiments, the touch-sensitive surface 231 and the display panel 241 may be integrated to implement the input and output functions.
0147The terminal 1900 may further include at least one sensor 250, such as an optical sensor, a motion sensor, and other sensors. Specifically, the optical sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of the display panel 241 according to brightness of the ambient light. The proximity sensor may switch off the display panel 241 and/or backlight when the terminal 1900 is moved to the ear. As one type of motion sensor, a gravity acceleration sensor may detect magnitude of accelerations in various directions (generally on three axes), may detect magnitude and a direction of the gravity when static, and may be applied to an application that recognizes the attitude of the mobile phone (for example, switching between landscape orientation and portrait orientation, a related game, and magnetometer attitude calibration), a function related to vibration recognition (such as a pedometer and a knock), and the like. Other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be configured in the terminal 1900, are not further described herein.
0148The audio circuit 260, a loudspeaker 261, and a microphone 262 may provide audio interfaces between the user and the terminal 1900. The audio circuit 260 may convert received audio data into an electric signal and transmit the electric signal to the loudspeaker 261. The loudspeaker 261 converts the electric signal into a sound signal for output. On the other hand, the microphone 262 converts a collected sound signal into an electric signal. The audio circuit 260 receives the electric signal and converts the electric signal into audio data, and outputs the audio data to the processor 280 for processing. Then, the processor 280 sends the audio data to, for example, another terminal by using the RF circuit 210, or outputs the audio data to the memory 220 for further processing. The audio circuit 260 may further include an earplug jack, so as to provide communication between a peripheral earphone and the terminal 1900.
0149WiFi is a short distance wireless transmission technology. The terminal 1900 may help, by using the WiFi module 270, the user to receive and send e-mails, browse a webpage, access stream media, and so on, which provides wireless broadband Internet access for the user. Although <figref idref="f0012">FIG. 19</figref> shows the WiFi module 270, it may be understood that the wireless communications unit is not a necessary component of the terminal 1900, and when required, the wireless communications unit may be omitted as long as the scope of the essence of the present disclosure is not changed.
0150The processor 280 is the control center of the terminal 1900, and is connected to various parts of the mobile phone by using various interfaces and lines. By running or executing the software program and/or module stored in the memory 220, and invoking data stored in the memory 220, the processor 280 performs various functions and data processing of the terminal 1900, thereby performing overall monitoring on the mobile phone. Optionally, the processor 280 may include one or more processing cores. Preferably, the processor 280 may integrate an application processor and a modem. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem mainly processes wireless communication. It may be understood that the foregoing modem may also not be integrated into the processor 280.
0151The terminal 1900 further includes the power supply 290 (such as a battery) for supplying power to the components. Preferably, the power supply may be logically connected to the processor 280 by using a power management system, thereby implementing functions such as charging, discharging and power consumption management by using the power management system. The power supply 290 may further include any component, such as one or more direct current or alternate current power supplies, a re-charging system, a power supply fault detection circuit, a power supply converter or an inverter, and a power supply state indicator.
0152Although not shown in the figure, the terminal 1900 may further include a camera, a Bluetooth module, and the like, which are not further described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, and the terminal further includes a memory and one or more programs. The one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs contain instructions for executing the following operations: <ul id="ul0034" list-style="none"><li>acquiring a 2D barcode including an information access address, and scanning the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information;</li><li>sending the information access address to a server through a network, so that the server searches for corresponding private information according to the information access address; and</li><li>receiving the private information returned, through the network, by the server, and using the private information as a reading result of the 2D barcode.</li></ul>
0153Assuming that the above is a first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for executing the following operations: <ul id="ul0035" list-style="none"><li>the information access address at least includes an information identifier of the private information; and</li><li>the receiving the private information returned, through the network, by the server includes: receiving, after the server finds the private information according to the information identifier of the private information included in the information access address, the private information returned through the network.</li></ul>
0154In a third possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for executing the following operations: <ul id="ul0036" list-style="none"><li>the information access address further includes a check identifier and/or a time identifier corresponding to the private information; and</li><li>the receiving the private information returned, through the network, by the server includes: receiving, after the server finds the private information according to an information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information included in the information access address, the private information returned through the network.</li></ul>
0155In the terminal provided in the embodiment of the present invention, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and the private information returned by the server through the network is then received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 15
0156An embodiment of the present invention further provides a computer readable storage medium. The computer readable storage medium may be a computer readable storage medium included in the memory in the above embodiment, or may also be a computer readable storage medium that exists separately and is not installed in the terminal. The computer readable storage medium stores one or more programs, the one or more programs are used by one or more processors to execute one method for reading a 2D barcode, the method including: <ul id="ul0037" list-style="none"><li>acquiring a 2D barcode including an information access address, and scanning the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information;</li><li>sending the information access address to a server through a network, so that the server searches for corresponding private information according to the information access address; and</li><li>receiving the private information returned, through the network, by the server, and using the private information as a reading result of the 2D barcode.</li></ul>
0157Assuming that the above is a first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for executing the following operations: <ul id="ul0038" list-style="none"><li>the information access address at least includes an information identifier of the private information; and</li><li>the receiving the private information returned, through the network, by the server includes: receiving, after the server finds the private information according to the information identifier of the private information included in the information access address, the private information returned through the network.</li></ul>
0158In a third possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for executing the following operations: <ul id="ul0039" list-style="none"><li>the information access address further includes a check identifier and/or a time identifier corresponding to the private information; and</li><li>the receiving the private information returned, through the network, by the server includes: receiving, after the server finds the private information according to an information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information included in the information access address, the private information returned through the network.</li></ul>
0159In the computer readable storage medium provided in the embodiment of the present invention, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and the private information returned by the server through the network is then received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 16
0160An embodiment of the present invention provides a graphical user interface, and the graphical user interface is used on a terminal. The terminal includes a touchscreen display, a memory, and one or more processors configured to execute one or more programs. The graphical user interface includes: <ul id="ul0040" list-style="none"><li>acquiring a 2D barcode including an information access address, and scanning the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information;</li><li>sending the information access address to a server through a network, so that the server searches for corresponding private information according to the information access address; and</li><li>receiving the private information returned, through the network, by the server, and using the private information as a reading result of the 2D barcode.</li></ul>
0161In the graphical user interface provided in the embodiment of the present invention, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and the private information returned by the server through the network is then received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
Embodiment 17
0162<figref idref="f0013">FIG. 20</figref> is a schematic structural diagram of a server provided in an embodiment of the present invention. The server 2000 may have big differences due to different configurations or performance, and may include one or more central processing units (CPU) 2022 (for example, one or more processors), a memory 2032, and one or more storage media 2030 (for example, one or more massive storage devices) for storing application programs 2042 or data 2044. The memory 2032 and the storage medium 2030 may be stored temporarily or stored permanently. The program stored in the storage medium 2030 may include one or more modules (not shown), and each module may include operations on a series of instructions in the server 2000: <ul id="ul0041" list-style="none"><li>receiving an information access address sent, through a network, by a terminal and for accessing private information;</li><li>searching prestored private information for private information corresponding to the information access address; and</li><li>returning the found private information to the terminal through the network, so that the terminal uses the private information as a reading result of a 2D barcode.</li></ul>
0163In another embodiment, the following instructions may be further included:
0164The information access address includes an information identifier of the private information; and the searching prestored private information for private information corresponding to the information access address includes: searching the prestored private information for the private information corresponding to the information identifier included in the information access address.
0165In another embodiment, the following instructions may be further included: <ul id="ul0042" list-style="none"><li>the information access address further includes a check identifier and/or a time identifier; and</li><li>the searching the prestored private information for the private information corresponding to the information identifier included in the information access address includes: <ul id="ul0043" list-style="none"><li>determining whether the check identifier included in the information access address is consistent with a prestored check identifier, and/or determining whether the time identifier included in the information access address is ineffective; and</li><li>executing, if the check identifier included in the information access address is consistent with the prestored check identifier, and/or the time identifier included in the information access address is not ineffective, the step of searching the prestored private information for the private information corresponding to the information identifier included in the information access address.</li></ul></li></ul>
0166Furthermore, the central processing unit 2022 may be set to communicate with the storage medium 2030, and operations of a series of instructions in the storage medium 2030 are executed on the server 2000.
0167The server 2000 may further include one or more power supplies 2026, one or more wired or wireless network interfaces, 2050, one or more input/output interfaces 2058, and/or, one or more operating systems 2041, for example, Windows Server<sup>™</sup>, Mac OS X<sup>™</sup>, Unix<sup>™</sup>, Linux<sup>™</sup>, and FreeBSD<sup>™</sup>.
0168In the server provided in the embodiment of the present invention, an information access address sent by a terminal through a network is received, and private information corresponding to the information access address found from prestored private information is returned to the terminal through the network, so that the terminal uses the private information as a reading result of a 2D barcode; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
0169It should be noted that when the terminal for reading a 2D barcode and the server provided in the foregoing embodiments read a 2D barcode, the foregoing division of functional modules is only used as an example for description. In practical applications, the foregoing functions may be allocated to be accomplished by different functional modules according to needs, that is, the internal structures of the terminal and the server are divided into different functional modules to accomplish all or some of the functions described above. In addition, the terminal for generating a 2D barcode and the server provided in the foregoing embodiments share the same concept with the embodiments of the method for reading a 2D barcode, and reference may be made to the method embodiments for the specific implementation processes of the terminal and the server, which are no longer elaborated herein.
Embodiment 18
0170Referring to <figref idref="f0013">FIG. 21</figref>, an embodiment of the present invention provides a system for reading a 2D barcode. The system includes: a terminal 2101 and a server 2102.
0171The terminal 2101 is configured to acquire a 2D barcode including an information access address, and scan the 2D barcode, to obtain the information access address included in the 2D barcode, the information access address being for accessing private information.
0172The terminal 2101 is further configured to send the information access address to the server 2102 through a network, so that the server 2102 searches for corresponding private information according to the information access address.
0173The terminal 2101 is further configured to receive the private information returned, through the network, by the server 2102, and use the private information as a reading result of the 2D barcode.
0174As an embodiment, the information access address obtained through scanning by the terminal 2101 at least includes an information identifier of the private information.
0175The terminal 2101 is configured to receive, after the server 2102 finds the private information according to the information identifier of the private information included in the information access address, the private information returned through the network.
0176As an embodiment, the information access address obtained through scanning by the terminal 2101 further includes a check identifier and/or a time identifier corresponding to the private information.
0177The terminal 2101 is configured to receive, after the server 2102 finds the private information according to an information identifier of the private information and the check identifier and/or the time identifier corresponding to the private information included in the information access address, the private information returned through the network.
0178It should be noted that there may be one or more terminals 1801 and servers 1802, and reference may be made to Embodiment 7 and Embodiment 8 above for the structures of the terminal 1801 and the server 1802, which are not specifically limited in this embodiment.
0179In the system provided in the embodiment of the present invention, a 2D barcode including an information access address is acquired and scanned to obtain the information access address included in the 2D barcode, the information access address is sent to a server through a network, and the private information returned by the server through the network is then received; therefore, reading of a 2D barcode is implemented without deciphering, a cost of reading a 2D barcode is reduced, an application scope of a 2D barcode is broadened, and a read 2D barcode includes an information access address, so that security of private information is ensured.
0180The sequence numbers of the above embodiments of the present invention are merely for the convenience of description, and do not imply the preference among the embodiments.
0181A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by using hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.
0182The foregoing descriptions are merely preferred embodiments of the present invention, but are not intended to limit the present invention. Any modification, equivalent replacement, or improvement made within the principle of the present invention shall fall within the protection scope of the present invention.
Contents5
13 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| EP1537717B1 | Cites | European Patent Office (EPO) | Examiner |
| US2002042779A1 | Cites | United States of America | Examiner |
| EP1537717B1 | Cites | European Patent Office (EPO) | – |
| WO2014044183A1 | Cites | World Intellectual Property Organization (WIPO) | – |
| CN102833353A | Cites | China | – |
| CN103065116A | Cites | China | – |
| CN103078868A | Cites | China | – |
| CN104376353A | Cites | China | – |
| US2002042779A1 | Cites | United States of America | – |
| US2002131071A1 | Cites | United States of America | – |
| US8356033B2 | Cites | United States of America | – |
10 members in 4 offices
Members10
| Document | Office | Kind | |
|---|---|---|---|
| CN104376353A | China | A | |
| WO2015158300A1 | World Intellectual Property Organization (WIPO) | A1 | |
| CN104376353B | China | B | |
| US2016306892A1 | United States of America | A1 | |
| EP3132385A1 | European Patent Office (EPO) | A1 | |
| EP3132385A4 | European Patent Office (EPO) | A4 | |
| US9798824B2 | United States of America | B2 | |
| US2018004854A1 | United States of America | A1 | |
| US9965565B2 | United States of America | B2 | |
| EP3132385B1This record | European Patent Office (EPO) | B1 |
80 legal events, as 9 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed because of non-payment of the annual feeLapsedMM | MM | BE | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| No opposition filedOpposition26N | 26N | EP | |
| Ip right lapsedLapsedST27 STATUS EVENT CODE: U-0-0-H10-H13 (AS PROVIDED BY THE NATIONAL OFFICE)H13 | H13 | CH | |
| Ip right review requestedST27 STATUS EVENT CODE: U-0-0-L10-L00 (AS PROVIDED BY THE NATIONAL OFFICE)L10 | L10 | CH | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| No opposition filed against granted patent, or epo opposition proceedings concluded without decisionGrantedR097 | R097 | DE | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Deletion acc. to par. 5 (withdrawal of the translation of the ep patent)MK05 | MK05 | AT | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Patent invalid in the netherlands as no translation has been filedMP | MP | NL | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Invalidation of extension of european patentsMG9D | MG9D | LT | |
| European patents granted designating irelandGrantedFG4D | FG4D | IE | |
| Dpma publication of mentioned ep patent grantGrantedR096 | R096 | DE | |
| European patent takes effect as a national patent in ch/liEP | EP | CH | |
| Designated contracting statesAK | AK | EP | |
| European patent grantedGrantedFG4D | FG4D | GB | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: THE PATENT HAS BEEN GRANTEDSTAA | STAA | EP | |
| Grant fee paidORIGINAL CODE: EPIDOSNIGR3GRAS | GRAS | EP | |
| Intention to grant announcedINTG | INTG | EP | |
| Intention to grant announced (deleted)INTC | INTC | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOSNIGR1GRAP | GRAP | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: GRANT OF PATENT IS INTENDEDSTAA | STAA | EP | |
| Information related to disapproval of communication of intention to grant by the applicant or resumption of examination proceedings by the epo deletedORIGINAL CODE: EPIDOSDIGR1GRAJ | GRAJ | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: EXAMINATION IS IN PROGRESSSTAA | STAA | EP | |
| Intention to grant announcedINTG | INTG | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOSNIGR1GRAP | GRAP | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: GRANT OF PATENT IS INTENDEDSTAA | STAA | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Amendment of ipc main classPREVIOUS MAIN CLASS: H04L0029060000R079 | R079 | DE | |
| Amendment of ipc main classPREVIOUS MAIN CLASS: H04L0029060000R079 | R079 | DE | |
| Party data changed (applicant data changed or rights of an application transferred)RAP3 | RAP3 | EP | |
| First examination report despatched17Q | 17Q | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: EXAMINATION IS IN PROGRESSSTAA | STAA | EP | |
| Request for validation of the european patent (deleted)DAV | DAV | EP | |
| Request for extension of the european patent (deleted)DAX | DAX | EP | |
| Supplementary search report drawn up and despatchedA4 | A4 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAX | AX | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: REQUEST FOR EXAMINATION WAS MADESTAA | STAA | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADESTAA | STAA | EP |
Numbers
- Publication
- 3132385
- Application
- 157800707
Titles3
- German
- VERFAHREN UND SYSTEME ZUR ERZEUGUNG UND AUSLESUNG VON 2D-STRICHCODES
- English
- METHODS AND SYSTEMS FOR GENERATING AND READING 2D BARCODES
- French
- PROCÉDÉS ET SYSTÈMES DE GÉNÉRATION ET DE LECTURE DE CODES À BARRES 2D
Classification
- CPC, 5
- H04L63/10
- G06F16/9554
- G06K7/1417
- G06K19/06037
- H04L9/0643
- IPC, 2
- H04L9 40
- G06F16 955
Designated states38
- Contracting states, 38
- Albania
- Austria
- Belgium
- Bulgaria
- Switzerland
- Cyprus
- Czechia
- Germany
- Denmark
- Estonia
- Spain
- Finland
- France
- United Kingdom
- Greece
- Croatia
- Hungary
- Ireland
- Iceland
- Italy
- Liechtenstein
- Lithuania
- Luxembourg
- Latvia
and 14 moreShow fewer
- Monaco
- North Macedonia
- Malta
- Netherlands (Kingdom of the)
- Norway
- Poland
- Portugal
- Romania
- Serbia
- Sweden
- Slovenia
- Slovakia
- San Marino
- Türkiye
