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