FIELD: computer equipment.
SUBSTANCE: invention relates to computer engineering. Disclosed is a method for sending first data from a first terminal directly to a second terminal, comprising: recording and storing, by a data exchange platform, a data exchange agreement between a first user and a second user in the blockchain, wherein the data exchange agreement includes property information of the exchanged data, wherein the exchanged data includes first data from the first user and data to be exchanged from the second user; receiving, by the communication platform, a first key sent by the first terminal and used to decrypt the encrypted first data, wherein the first terminal is a terminal corresponding to the first user; wherein first terminal encrypts first data to obtain encrypted first data, according to symmetric encryption technology, first terminal sends first key to data exchange platform, and first terminal directly sends encrypted first data to second terminal; and when verified by the data exchange platform that the third data received by the data exchange platform from the second terminal corresponds to the data exchange agreement, sending the first data key to the second terminal by the communication platform, so that second terminal, after reception of encrypted first data sent by first terminal, decrypts received encrypted first data based on first key to obtain first data, wherein second terminal is terminal, corresponding to second user, wherein the third data are to be exchanged from the second user to receive first data from the first user.
EFFECT: technical result is providing data security during data exchange.
15 cl, 5 dwg
Authors
Dates
2020-07-17—Published
2018-02-23—Filed