The invention discloses a method for encrypted transmission of sensitive information and
mask copying based on a two-dimensional code, which comprises the following steps: when a
user needs to send the sensitive information in a chat process, encrypting the input information by using a
password, splicing the encrypted information by using a
timestamp and a validity period, and performing secondary
encryption; splicing the secondarily encrypted information with the last page address to generate a two-dimensional code, sharing the two-dimensional code to a
receiver, informing an opposite side of a
password through other ways, prompting the opposite side to input the
password to decrypt the information for the first time after the
receiver accesses the page with few codes, analyzing whether the information is expired after the decryption is successful, and if the information is not expired, sending the two-dimensional code to the
receiver. And carrying out secondary decryption to obtain sensitive information, carrying out
mask operation on the sensitive information, then displaying the sensitive information on an interface, and providing a copy button to enable a receiver to copy the sensitive information so as to finish subsequent operation. According to the invention, the website for providing service does not store sensitive information and passwords, and bystanders can be prevented from seeing the passwords, so that the purpose of confidential transmission of the sensitive information is achieved.