Search

CN-122002278-A - Data communication method, apparatus, computer device, storage medium, and program product

CN122002278ACN 122002278 ACN122002278 ACN 122002278ACN-122002278-A

Abstract

The present application relates to a data communication method, apparatus, computer device, storage medium and program product. The method comprises the steps of sending broadcast information to a candidate connection terminal, establishing communication connection with a target terminal according to response information of the candidate connection device, carrying out security check on the target terminal according to a first secret key generated by the communication device and a second secret key sent by the target terminal, and carrying out encrypted data transmission with the target terminal through the communication connection under the condition that the security check is passed. Before the communication equipment is paired with the target terminal, the safety verification is carried out on the target terminal, the safety of communication connection is improved, and the safety verification is carried out through the first secret key and the second secret key generated by the two interaction parties, so that the verification result is more reliable, in addition, the data is encrypted during data transmission, and the safety of communication connection is further improved.

Inventors

  • ZHANG WENGUANG
  • LI TINGYONG

Assignees

  • 深圳市晨北科技有限公司

Dates

Publication Date
20260508
Application Date
20251107
Priority Date
20241107

Claims (8)

  1. 1. A method of data communication, the method being applied to a communication device, the method comprising: sending broadcast information to a candidate connection terminal, and establishing communication connection with a target terminal according to response information of the candidate connection device; according to the first secret key generated by the communication equipment and the second secret key sent by the target terminal, carrying out security verification on the target terminal; And under the condition that the security check is passed, carrying out encrypted data transmission with the target terminal through the communication connection.
  2. 2. The method according to claim 1, wherein said transmitting encrypted data with said target terminal over said communication connection comprises: Processing data to be transmitted according to a preset data encryption algorithm and a preset data format to obtain first encrypted data, and sending the first encrypted data to the target terminal; Or receiving second encrypted data sent by the target terminal, wherein the second encrypted data is obtained by processing data to be transmitted by the target terminal according to a preset data encryption algorithm and a preset data format.
  3. 3. The method according to claim 1, wherein the security checking of the target terminal based on the first key generated by the communication device and the received second key sent by the target terminal includes: generating a first key according to a preset key generation rule, and receiving a second key sent by the target terminal, wherein the second key is generated by the target terminal according to the preset key generation rule; determining public key information according to the first key, the second key and the preset key generation rule; And interacting with the target terminal according to the public key information, the preset private key information and the preset encryption rule, and carrying out security verification on the target terminal according to the interaction information.
  4. 4. A method according to any one of claims 1-3, wherein the broadcast information includes a key version number, and wherein establishing a communication connection with the target terminal according to the response information of the candidate connection device includes: when the key version number is the same as the preset version number of the target terminal, receiving response information sent by the target terminal; and determining the target terminal according to the response information, and establishing communication connection with the target terminal.
  5. 5. A data communication apparatus, the apparatus comprising: The broadcasting module is used for sending broadcasting information to the candidate connection terminal and establishing communication connection with the target terminal according to the response information of the candidate connection device; the verification module is used for carrying out security verification on the target terminal according to the first secret key generated by the communication equipment and the received second secret key sent by the target terminal; And the transmission module is used for transmitting encrypted data with the target terminal through the communication connection under the condition that the security check is passed.
  6. 6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
  7. 7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
  8. 8. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 4.

Description

Data communication method, apparatus, computer device, storage medium, and program product The present application claims priority from chinese patent office, application number 202411587799.9, entitled "data communication method, apparatus, computer device, storage medium and program product," filed at 7, 11, 2024, the entire contents of which are incorporated herein by reference. Technical Field The present application relates to the field of communications technologies, and in particular, to a data communication method, apparatus, computer device, storage medium, and program product. Background Wireless communication is a communication scheme for exchanging information by utilizing the property that electromagnetic wave signals propagate in free space, such as bluetooth communication, wiFi communication, zigbee communication, loRa communication, 4G communication, NB-IoT communication, and the like. As applications of wireless communication are increasingly widespread, data security of wireless communication has become a key performance indicator of electronic devices. In the conventional communication method, the device is vulnerable to malicious attacks, such as data interception replay attack, injection attack, and the like. Therefore, how to improve the security of wireless communication is a current urgent problem to be solved. Disclosure of Invention In view of the foregoing, it is desirable to provide a data communication method, apparatus, computer device, storage medium, and program product that can improve the security of wireless communication. In a first aspect, the present application provides a data communication method, including: sending broadcast information to a candidate connection terminal, and establishing communication connection with a target terminal according to response information of the candidate connection device; according to the first secret key generated by the communication equipment and the second secret key sent by the target terminal, carrying out security verification on the target terminal; And under the condition that the security check is passed, carrying out encrypted data transmission with the target terminal through the communication connection. In one embodiment, the transmitting encrypted data with the target terminal through the communication connection includes: the encrypted data transmission with the target terminal through the communication connection comprises the following steps: Processing data to be transmitted according to a preset data encryption algorithm and a preset data format to obtain first encrypted data, and sending the first encrypted data to the target terminal; Or receiving second encrypted data sent by the target terminal, wherein the second encrypted data is obtained by processing data to be transmitted by the target terminal according to a preset data encryption algorithm and a preset data format. In one embodiment, the performing security verification on the target terminal according to a preset key generation rule and a preset encryption rule includes: the security verification for the target terminal according to the first key generated by the communication device and the received second key sent by the target terminal includes: Generating a first key according to the preset key generation rule, and receiving a second key sent by the target terminal, wherein the second key is generated by the target terminal according to the preset key generation rule; Determining a first target key according to the first key, the second key and the key generation rule; and carrying out security verification on the target terminal according to the first target key and the second target key. In one embodiment, the performing security verification on the target terminal according to the first target key and the second target key includes: determining whether the first target key and the second target key are identical; If the security check result is not the same, determining that the security check of the target terminal is not passed. In one embodiment, the determining the first target key according to the first key, the second key and the key generation rule includes: performing modulus processing on the first key and the second key according to a key generation rule to obtain public key information; and combining the public key information with preset private key information to obtain a first target key. In one embodiment, the method further comprises: And sending the first target key to the target terminal so that the target terminal performs security verification on the communication equipment according to the first target key and the second target key. In one embodiment, the broadcast information includes a key version number, and the establishing a communication connection with the target terminal according to the response information of the candidate connection device includes: when the key version number is the same as the preset version numb