Patent Description:
With 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.

Currently 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.

A 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.

In a process of implementing the present disclosure, the inventor finds that the existing technology at least has the following problems:.

In 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.

It is noted that <CIT> 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.

It is further noted that <CIT> 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.

To 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:.

According to a first aspect, a method for generating a 2D barcode is provided, the method including:.

According 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;.

Receiving, 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.

According to a further aspect, a first terminal for generating a 2D barcode is provided, the first terminal including:.

According to a further aspect, provided is a server, the server including:.

According 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;.

According to a further aspect, a system for reading a 2D barcode is provide, comprising:
a second terminal for reading the 2D barcode, comprising:.

The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:.

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; 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.

To 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.

To 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.

For 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 <FIG>, a procedure of the method includes:.

As 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.

As 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.

<NUM>: Generate a 2D barcode including the information access address.

Referring to <FIG>, 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:.

As an optional embodiment, the generating an information access address corresponding to the private information includes:.

As an optional embodiment, during the acquiring an information identifier of the private information, the method further includes:.

<NUM>: 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.

In 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.

For the above method for generating a 2D barcode provided in Embodiment <NUM>, 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 <FIG>, a procedure of the method includes:.

As 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.

As 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.

Referring to <FIG>, 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:.

As 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.

As 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:.

<NUM>: 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.

In 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.

An 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 <NUM>. Referring to <FIG>, a procedure of the method includes:
<NUM>: A terminal acquires private information input by a user, and sends the acquired private information to a server through a network.

A 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.

To 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.

In addition, referring to an architecture diagram of a secure 2D barcode service system shown in <FIG>, 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.

<NUM>: The server receives the private information sent, through the network, by the terminal, and stores the private information.

Referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, 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.

It 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.

<NUM>: The server generates an information access address corresponding to the private information.

Because 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).

As an embodiment, the generating an information access address corresponding to the private information includes, but is not limited to:.

A 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 <NUM> (MDS) value according to the entire private information, and the MDS value is a <NUM>-bit <NUM>-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.

As an embodiment, during the acquiring an information identifier of the private information, the method further includes, but is not limited to:.

The 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.

In 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.

In 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.

Neither 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 <NUM>-bit <NUM>-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 <NUM>-bit <NUM>-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.

When 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.

In addition, referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, the data processing module is configured to generate the information access address corresponding to the private information.

<NUM>: The server returns the information access address to the terminal through the network.

In 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 <FIG>, 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.

<NUM>: The terminal receives the information access address returned, through the network, by the server.

Referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, the information processing module is configured to receive the information access address returned, through the network, by the server.

As 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.

<NUM>: The terminal generates a 2D barcode including the information access address.

Referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, 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.

As an embodiment, after generating the 2D barcode including the information access address, the 2D barcode module further displays the 2D barcode.

In addition, referring to a flowchart of saving information input by user by a secure 2D barcode service system shown in <FIG>, step <NUM> corresponds to that a user inputs information, and user information is sent through a network; step <NUM> and step <NUM> 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 <NUM> and step <NUM> 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.

In 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.

With reference to the method for generating a 2D barcode provided in Embodiment <NUM> and Embodiment <NUM> above, an embodiment of the present invention provides a method for reading a 2D barcode. With reference to the content of Embodiment <NUM> above, the method provided in the embodiment of the present invention is described in detail. Referring to <FIG>, a procedure of the method includes:.

<NUM>: 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.

Neither 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 <NUM> 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.

In addition, referring to an architecture diagram of the secure 2D barcode service system shown in <FIG>, 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.

<NUM>: The terminal sends the information access address to a server through a network.

To 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 <FIG>, 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.

<NUM>: The server receives the information access address sent, through the network, by the terminal and for accessing private information.

Referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, 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.

<NUM>: The server searches prestored private information for private information corresponding to the information access address.

In 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.

As an embodiment, the information access address includes an information identifier of the private information; and.

By 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.

As 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:.

The 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:.

For 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.

The 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 <NUM> minutes. Certainly, in addition to the above preset time threshold, other preset time thresholds such as <NUM> minutes and <NUM> minutes may be further used, and are specifically limited in this embodiment.

In addition, referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, 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.

<NUM>: The server returns the found private information to the terminal through the network.

In 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 <FIG>, 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.

<NUM>: 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.

Referring to the architecture diagram of the secure 2D barcode service system shown in <FIG>, 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.

In 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 <FIG>, step <NUM> and step <NUM> 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 <NUM> and step <NUM> 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 <NUM> and step <NUM> 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.

In 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.

Referring to <FIG>, an embodiment of the present invention provides a terminal for generating a 2D barcode, the terminal including:.

As an embodiment, the receiving module <NUM> 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.

As an embodiment, the receiving module <NUM> 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.

In 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.

Referring to <FIG>, an embodiment of the present invention provides a server, the server including:.

As an optional embodiment, referring to <FIG>, the generation module <NUM> includes:.

As an optional embodiment, the acquisition unit <NUM> 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;.

In 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.

Referring to <FIG>, an embodiment of the present invention provides a terminal for reading a 2D barcode, the terminal including:.

As an optional embodiment, the information access address obtained through scanning by the scanning module <NUM> at least includes an information identifier of the private information; and
the receiving module <NUM> 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.

As an optional embodiment, the information access address obtained through scanning by the scanning module <NUM> further includes a check identifier and/or a time identifier corresponding to the private information; and
the receiving module <NUM> 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.

In 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.

As an optional embodiment, the information access address received by the receiving module <NUM> includes an information identifier of the private information; and
the search module <NUM> is configured to search the prestored private information for the private information corresponding to the information identifier included in the information access address.

As an optional embodiment, the information access address received by the receiving module <NUM> further includes a check identifier and/or a time identifier.

Referring to <FIG>, the search module <NUM> includes:.

In 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.

An embodiment of the present invention provides a terminal. Please refer to <FIG>, 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 <NUM> may include components such as a Radio Frequency (RF) circuit <NUM>, a memory <NUM> including one or more computer readable storage media, an input unit <NUM>, a display unit <NUM>, a sensor <NUM>, an audio circuit <NUM>, a Wireless Fidelity (WiFi) module <NUM>, a processor <NUM> including one or more processing cores, and a power supply <NUM>. A person skilled in the art may understand that the structure of the terminal shown in <FIG> 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.

The RF circuit <NUM> 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 <NUM> for processing. In addition, related uplink data is sent to the base station. Generally, the RF circuit <NUM> 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 <NUM> 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.

The memory <NUM> may be configured to store a software program and module. The processor <NUM> runs the software program and module stored in the memory <NUM>, to implement various functional applications and data processing. The memory <NUM> 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 <NUM>, and the like. In addition, the memory <NUM> 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 <NUM> may further include a memory controller, so that the processor <NUM> and the input unit <NUM> access the memory <NUM>.

The input unit <NUM> 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 <NUM> may include a touch-sensitive surface <NUM> and another input device <NUM>. The touch-sensitive surface <NUM>, 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 <NUM> 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 <NUM> 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 <NUM>. Moreover, the touch controller can receive and execute a command sent from the processor <NUM>. In addition, the touch-sensitive surface <NUM> may be may be a resistive, capacitive, infrared, or surface sound wave type touch-sensitive surface. In addition to the touch-sensitive surface <NUM>, the input unit <NUM> may further include the another input device <NUM>. Specifically, the another input device <NUM> 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.

The display unit <NUM> may be configured to display information input by the user or information provided for the user, and various graphical user interfaces of the terminal <NUM>. The graphical user interfaces may be formed by a graph, a text, an icon, a video, and any combination thereof. The display unit <NUM> may include a display panel <NUM>. Optionally, the display panel <NUM> may be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch-sensitive surface <NUM> may cover the display panel <NUM>. After detecting a touch operation on or near the touch-sensitive surface <NUM>, the touch-sensitive surface <NUM> transfers the touch operation to the processor <NUM>, so as to determine the type of the touch event. Then, the processor <NUM> provides a corresponding visual output on the display panel <NUM> according to the type of the touch event. Although, in <FIG>, the touch-sensitive surface <NUM> and the display panel <NUM> are used as two separate parts to implement input and output functions, in some embodiments, the touch-sensitive surface <NUM> and the display panel <NUM> may be integrated to implement the input and output functions.

The terminal <NUM> may further include at least one sensor <NUM>, 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 <NUM> according to brightness of the ambient light. The proximity sensor may switch off the display panel <NUM> and/or backlight when the terminal <NUM> 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 <NUM>, are not further described herein.

The audio circuit <NUM>, a loudspeaker <NUM>, and a microphone <NUM> may provide audio interfaces between the user and the terminal <NUM>. The audio circuit <NUM> may convert received audio data into an electric signal and transmit the electric signal to the loudspeaker <NUM>. The loudspeaker <NUM> converts the electric signal into a sound signal for output. On the other hand, the microphone <NUM> converts a collected sound signal into an electric signal. The audio circuit <NUM> receives the electric signal and converts the electric signal into audio data, and outputs the audio data to the processor <NUM> for processing. Then, the processor <NUM> sends the audio data to, for example, another terminal by using the RF circuit <NUM>, or outputs the audio data to the memory <NUM> for further processing. The audio circuit <NUM> may further include an earplug jack, so as to provide communication between a peripheral earphone and the terminal <NUM>.

WiFi is a short distance wireless transmission technology. The terminal <NUM> may help, by using the WiFi module <NUM>, 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 <FIG> shows the WiFi module <NUM>, it may be understood that the wireless communications unit is not a necessary component of the terminal <NUM>, 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.

The processor <NUM> is the control center of the terminal <NUM>, 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 <NUM>, and invoking data stored in the memory <NUM>, the processor <NUM> performs various functions and data processing of the terminal <NUM>, thereby performing overall monitoring on the mobile phone. Optionally, the processor <NUM> may include one or more processing cores. Preferably, the processor <NUM> 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 <NUM>.

The terminal <NUM> further includes the power supply <NUM> (such as a battery) for supplying power to the components. Preferably, the power supply may be logically connected to the processor <NUM> 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 <NUM> 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.

Although not shown in the figure, the terminal <NUM> 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:.

Assuming 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.

In 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.

An 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:.

Assuming 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.

In 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.

In 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.

An 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:.

In 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.

<FIG> is a schematic structural diagram of a server provided in an embodiment of the present invention. The server <NUM> may have big differences due to different configurations or performance, and may include one or more central processing units (CPU) <NUM> (for example, one or more processors), a memory <NUM>, and one or more storage media <NUM> (for example, one or more massive storage devices) for storing application programs <NUM> or data <NUM>. The memory <NUM> and the storage medium <NUM> may be stored temporarily or stored permanently. The program stored in the storage medium <NUM> may include one or more modules (not shown), and each module may include operations on a series of instructions in the server <NUM>:.

In another embodiment, the following instructions may be further included:
the generating an information access address corresponding to the private information includes:.

In another embodiment, the following instructions may be further included:
during the acquiring an information identifier of the private information, further including:.

Furthermore, the central processing unit <NUM> may be set to communicate with the storage medium <NUM>, and operations of a series of instructions in the storage medium <NUM> are executed on the server <NUM>.

The server <NUM> may further include one or more power supplies <NUM>, one or more wired or wireless network interfaces <NUM>, one or more input/output interfaces <NUM>, and/or, one or more operating systems <NUM>, for example, Windows Server™, Mac OS X™, Unix™, Linux™, and FreeBSD™.

In 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.

It 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.

Referring to <FIG>, an embodiment of the present invention provides a system for generating a 2D barcode, and the system includes: a terminal <NUM> and a server <NUM>.

The terminal <NUM> is configured to acquire private information input by a user, and send the private information to the server <NUM> through a network, so that the server <NUM> stores the private information, and generates an information access address corresponding to the private information.

The terminal <NUM> is further configured to receive the information access address returned by the server <NUM> through the network.

The terminal <NUM> is further configured to generate a 2D barcode including the information access address.

As an optional embodiment, the terminal <NUM> is configured to receive the information access address that is returned by the server <NUM> through the network and at least includes an information identifier of the private information.

As an optional embodiment, the terminal <NUM> is configured to receive the information access address that is returned by the server <NUM> 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.

It should be noted that there may be one or more terminals <NUM> and servers <NUM>, and reference may be made to Embodiment <NUM> and Embodiment <NUM> above for the structures of the terminal <NUM> and the server <NUM>, which are not specifically limited in this embodiment.

In 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.

An embodiment of the present invention provides a terminal. Please refer to <FIG>, 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:.

The terminal <NUM> may include components such as a Radio Frequency (RF) circuit <NUM>, a memory <NUM> including one or more computer readable storage media, an input unit <NUM>, a display unit <NUM>, a sensor <NUM>, an audio circuit <NUM>, a Wireless Fidelity (WiFi) module <NUM>, a processor <NUM> including one or more processing cores, and a power supply <NUM>. A person skilled in the art may understand that the structure of the terminal shown in <FIG> 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.

Assuming 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:.

In 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:.

In 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.

An 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:.

In 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.

An 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:.

In 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.

In another embodiment, the following instructions may be further included:.

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.

The server <NUM> may further include one or more power supplies <NUM>, one or more wired or wireless network interfaces, <NUM>, one or more input/output interfaces <NUM>, and/or, one or more operating systems <NUM>, for example, Windows Server™, Mac OS X™, Unix™, Linux™, and FreeBSD™.

In 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.

It 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.

Referring to <FIG>, an embodiment of the present invention provides a system for reading a 2D barcode. The system includes: a terminal <NUM> and a server <NUM>.

The terminal <NUM> 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.

The terminal <NUM> is further configured to send the information access address to the server <NUM> through a network, so that the server <NUM> searches for corresponding private information according to the information access address.

The terminal <NUM> is further configured to receive the private information returned, through the network, by the server <NUM>, and use the private information as a reading result of the 2D barcode.

As an embodiment, the information access address obtained through scanning by the terminal <NUM> at least includes an information identifier of the private information.

The terminal <NUM> is configured to receive, after the server <NUM> 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.

As an embodiment, the information access address obtained through scanning by the terminal <NUM> further includes a check identifier and/or a time identifier corresponding to the private information.

The terminal <NUM> is configured to receive, after the server <NUM> 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.

In 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.

The 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.

A 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.

Claim 1:
A method for generating a 2D barcode, wherein the method comprises:
acquiring (<NUM>, <NUM>), by a first terminal, a private information input by a user, and sending (<NUM>, <NUM>), 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 (<NUM>, <NUM>), by the first terminal, the information access address returned through the network by the server; and
generating (<NUM>, <NUM>), by the first terminal, the 2D barcode comprising the information access address;
receiving (<NUM>, <NUM>), by the server, the private information sent through the network by the first terminal, and storing the private information;
generating (<NUM>, <NUM>), by the server, the information access address corresponding to the private information; and
returning (<NUM>, <NUM>), 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.