FIELD: information security.
SUBSTANCE: invention relates to information security. Method comprises: forming a pair of asymmetric keys comprising a first public key and a first private key, sending a request for data carrying the first public key to a server; receiving the encrypted text and the second public key sent by the server, wherein the second public key is the public key in the asymmetric key pair received by the server, the pair of asymmetric keys received by the server further comprises a second private key, and the encrypted text is information obtained by encrypting the initial parameter to generate an autonomous payment code using the common key; common key is a key formed based on the second private key and the first public key using a predetermined key matching algorithm; and generating a shared key based on the first private key and the second public key using the key negotiation algorithm and using a shared key to decrypt the encrypted text to obtain an initial parameter.
EFFECT: ensuring data security during the entire transmission process, as well as high efficiency of encryption and decryption.
14 cl, 9 dwg
Authors
Dates
2020-02-25—Published
2017-10-18—Filed