Information transmission method and device, electronic equipment, storage medium and program product
Patent Information
- Application Number
- CN202411046530.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-25
Smart Images

Figure CN118843104A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to an information transmission method, device, electronic device, storage medium and program product. Background Art
[0002] For wireless communication, wireless signal coverage can be provided by wireless access points, and other terminals can be used after password verification.
[0003] In the related art, a terminal must pass the password verification of the wireless access point to connect to the wireless access point, and the user needs to manually enter the password. The whole method is relatively complicated. For scenarios where wireless access points need to be connected frequently and the passwords and names of the wireless access points change frequently, accessing the wireless access point is very inconvenient. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides an information transmission method, device, electronic device, storage medium and program product, so as to transmit password information to an access terminal while ensuring security, thereby realizing automatic access of the terminal and improving the convenience of the terminal accessing a wireless access point.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an information transmission method, including: Generate target encryption information, the target encryption information including target encryption data corresponding to the target transmission data and an encryption signature corresponding to the target identity information of the first terminal; The target encrypted information is broadcasted, so that the second terminal determines the target encrypted information from at least one broadcasted encrypted information according to the target decryption information and the target identity information, and parses the target transmission data from the target encrypted information according to the target decryption information.
[0006] Optionally, generating target encrypted information includes: Encrypting the target transmission data by using a target key to obtain the target encrypted data; The target identity information of the first terminal is encrypted by using the target key to obtain the encrypted signature.
[0007] Optionally, before generating the target encrypted information, the method further includes: In case of establishing a target connection with the second terminal, the target decryption information and the target identity information are sent to the second terminal, wherein the target decryption information includes the target key.
[0008] Optionally, generating target encrypted information includes: Encrypting the target transmission data by using the public key of the second terminal to obtain the target encrypted data; The target identity information of the first terminal is encrypted by using the private key of the first terminal to obtain the encrypted signature.
[0009] Optionally, before generating the target encrypted information, the method further includes: When a target connection is established with the second terminal, decryption data and the target identity information are sent to the second terminal, and a public key of the second terminal sent by the second terminal is received, wherein the decryption data includes the public key of the first terminal, so that the second terminal determines the public key of the first terminal and the private key of the second terminal as the target decryption information.
[0010] Optionally, the second terminal includes a plurality of paired terminals; The step of sending the decrypted data and the target identity information to the second terminal when establishing a target connection with the second terminal, and receiving the public key of the second terminal sent by the second terminal, comprises: In the case of establishing a target connection with the multiple paired terminals, sending decryption data and the target identity information to the multiple paired terminals respectively, and receiving public keys sent by the multiple paired terminals, the decryption data including identification information corresponding to the target transmission data and the public key of the first terminal, so that the second terminal determines the identification information, the public key of the first terminal and the private key of the second terminal as the target decryption information; The step of encrypting the target transmission data by using the public key of the second terminal to obtain the target encrypted data includes: The target transmission data is encrypted respectively by using the public keys of the multiple paired terminals to obtain the target encrypted data.
[0011] Optionally, generating target encrypted information includes: Encrypting the target transmission data by using the public key of the second terminal to obtain the target encrypted data; The target identity information of the first terminal is encrypted by using the public key of the second terminal to obtain the encrypted signature.
[0012] Optionally, before generating the target encrypted information, the method further includes: When establishing a target connection with the second terminal, the target identity information is sent to the second terminal, and the public key of the second terminal sent by the second terminal is received, so that the second terminal determines the private key of the second terminal as the target decryption information.
[0013] Optionally, broadcasting the target encrypted information includes: Putting the target encrypted information into a target broadcast frame; The target broadcast frame is broadcasted.
[0014] According to a second aspect of an embodiment of the present disclosure, there is provided an information transmission method, including: Acquire at least one broadcast encryption information including target encryption information, the target encryption information being generated by the first terminal, the target encryption information including target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal; Determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information; The target transmission data is parsed from the target encryption information according to the target decryption information.
[0015] Optionally, the target decryption information includes a target key, the target encrypted data is obtained by encrypting the target transmission data by using the target key, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using the target key; The step of determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information comprises: For any encrypted information, parse the encrypted signature in the encrypted information according to the target key to obtain a first parsed signature; In the case where the first parsed signature is identical to the target identity information, determining the encrypted information as the target encrypted information; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: The target encrypted data in the target encrypted information is parsed according to the target key to obtain the target transmission data.
[0016] Optionally, before acquiring at least one broadcast encrypted information including the target encrypted information, the method further includes: In case of establishing a target connection with the first terminal, the target key and the target identity information sent by the first terminal are received, and the target key is determined as the target decryption information.
[0017] Optionally, the target decryption information includes a public key of the first terminal and a private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data by using the public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using the private key of the first terminal; The step of determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information comprises: For any encrypted information, parse the encrypted signature in the encrypted information according to the public key of the first terminal to obtain a second parsed signature; In the case where the second parsed signature is identical to the target identity information, determining the encrypted information as the target encrypted information; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: The target encrypted data in the target encrypted information is parsed according to the private key of the second terminal to obtain the target transmission data.
[0018] Optionally, before acquiring at least one broadcast encrypted information including the target encrypted information, the method further includes: In the case of establishing a target connection with the first terminal, receiving decrypted data and the target identity information sent by the first terminal, and sending a public key of the second terminal to the first terminal, the decrypted data including the public key of the first terminal; The public key of the first terminal and the private key of the second terminal are determined as the target decryption information.
[0019] Optionally, the target encrypted data is obtained by encrypting the target transmission data respectively using the public keys of multiple paired terminals, and the target decryption information also includes identification information corresponding to the target transmission data; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: Parsing the target encrypted data in the target encrypted information according to the public keys of the multiple paired terminals to obtain multiple decrypted data; determining the decrypted data including the identification information as target decrypted data; The target transmission data is obtained by decrypting the target data.
[0020] Optionally, the target decryption information includes a private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data by using a public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using a public key of the second terminal; The step of determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information comprises: For any encrypted information, parse the encrypted signature in the encrypted information according to the private key of the second terminal to obtain a third parsed signature; In the case where the third parsed signature is identical to the target identity information, determining the encrypted information as the target encrypted information; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: The target encrypted data in the target encrypted information is parsed according to the private key of the second terminal to obtain the target transmission data.
[0021] Optionally, before acquiring at least one broadcast encrypted information including the target encrypted information, the method further includes: In case of establishing a target connection with the first terminal, receiving the target identity information sent by the first terminal, and sending the public key of the second terminal to the first terminal; The private key of the second terminal is determined as the target decryption information.
[0022] According to a third aspect of an embodiment of the present disclosure, there is provided an information transmission device, including: A generating module configured to generate target encryption information, wherein the target encryption information includes target encryption data corresponding to the target transmission data and an encryption signature corresponding to the target identity information of the first terminal; The broadcast module is configured to broadcast the target encryption information so that the second terminal determines the target encryption information from at least one broadcast encryption information according to the target decryption information and the target identity information, and parses the target transmission data from the target encryption information according to the target decryption information.
[0023] According to a fourth aspect of an embodiment of the present disclosure, there is provided an information transmission device, including: an acquisition module, configured to acquire at least one broadcast encryption information including target encryption information, the target encryption information being generated by the first terminal, the target encryption information including target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal; A first determination module is configured to determine the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information; The parsing module is configured to parse the target transmission data from the target encryption information according to the target decryption information.
[0024] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the information transmission method provided in the first aspect or the second aspect of the present disclosure when executing.
[0025] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the information transmission method provided in the first aspect or the second aspect of the present disclosure are implemented.
[0026] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the information transmission method provided in the first aspect or the second aspect of the present disclosure.
[0027] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: The first terminal generates target encryption information, which includes target encryption data corresponding to target transmission data and an encryption signature corresponding to the target identity information of the first terminal, and broadcasts the target encryption information so that the second terminal can determine the target encryption information from at least one broadcast encryption information according to the target decryption information and the target identity information, and parse the target transmission data from the target encryption information according to the target decryption information. The first terminal broadcasts the encrypted target encryption data and the encryption signature so that the second terminal can determine the target encryption information sent by the first terminal according to the corresponding target decryption information and the target identity information, and decrypts and obtains the target transmission data of the first terminal after confirmation, so that the target transmission data can be transmitted to the second terminal while ensuring security, for example, the password information of the first terminal is transmitted to the second terminal, so that the second terminal can automatically access the first terminal through the password information, thereby improving the convenience of the terminal accessing the wireless access point.
[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0030] Figure 1 The figure is a schematic diagram of an application scenario of an information transmission method according to an exemplary embodiment.
[0031] Figure 2 The invention is a flowchart of an information transmission method according to an exemplary embodiment.
[0032] Figure 3 It is a timing diagram showing an information transmission method according to an exemplary embodiment.
[0033] Figure 4 The invention is a flowchart of an information transmission method according to an exemplary embodiment.
[0034] Figure 5 is a timing diagram of another information transmission device according to an exemplary embodiment.
[0035] Figure 6 The invention is a block diagram of an information transmission device according to an exemplary embodiment.
[0036] Figure 7 is a block diagram of another information transmission device according to an exemplary embodiment.
[0037] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0039] The embodiments described in some embodiments of the present disclosure below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0040] For wireless communication, wireless signal coverage can be provided by wireless access points, and other terminals can be used after password verification.
[0041] In the related art, a terminal must pass the password verification of the wireless access point to connect to the wireless access point, and the user needs to manually enter the password. The whole method is relatively complicated. For scenarios where wireless access points need to be connected frequently and the passwords and names of the wireless access points change frequently, accessing the wireless access point is very inconvenient.
[0042] In view of the above technical problems, the embodiments of the present disclosure provide an information transmission method, device, electronic device, storage medium and program product, wherein the first terminal broadcasts the encrypted target encrypted data and encrypted signature so that the second terminal can determine the target encrypted information sent by the first terminal according to the corresponding target decryption information and target identity information, and then decrypt and obtain the target transmission data of the first terminal after confirmation, so that the target transmission data can be transmitted to the second terminal while ensuring security. For example, the password information of the first terminal is transmitted to the second terminal, so that the second terminal can automatically access the first terminal through the password information, thereby improving the convenience of the terminal accessing the wireless access point.
[0043] Figure 1 is a schematic diagram of an application scenario of an information transmission method according to an exemplary embodiment. Figure 1 As shown, the first terminal 101 and the second terminal 102 can be connected and data can be transmitted. For example, the first terminal can be a wireless access point and the second terminal can be a mobile phone. The first terminal can transmit an encrypted access password to the second terminal, and the second terminal can automatically access the first terminal through the password after receiving and parsing the access password.
[0044] Figure 2 is a flow chart of an information transmission method according to an exemplary embodiment. Figure 2 As shown, it can be applied to the first terminal and may include the following steps.
[0045] In step S201, target encryption information is generated, where the target encryption information includes target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal.
[0046] In this embodiment, the first terminal may be an AP (Access Point) or other terminals with communication functions, and the target transmission data may be the access password of the first terminal or other data to be transmitted. In order to ensure the security of the transmission data, the target transmission data may be encrypted to obtain target encrypted data, and in order to ensure the access security of the second terminal, the target identity information of the first terminal may be sent to the second terminal so that the second terminal can confirm the first terminal through the target identity information. The target identity information may also be encrypted to obtain the encryption signature corresponding to the first terminal, thereby generating the target encryption information.
[0047] In step S202, the target encrypted information is broadcasted, so that the second terminal determines the target encrypted information from at least one broadcasted encrypted information according to the target decryption information and the target identity information, and parses the target transmission data from the target encrypted information according to the target decryption information.
[0048] In this embodiment, when the first terminal does not know which terminals want to access, the target encrypted information including the target encrypted data and the encrypted signature can be directly broadcast so that other devices can scan and obtain the target encrypted information. The second terminal can scan the vicinity of the device to obtain at least one encrypted information, and determine the target encrypted information sent by the first terminal through the corresponding target decryption information and the target identity information of the first terminal, and further parse the target transmission data of the first terminal from the target encryption information. The target transmission data can be the access password of the first terminal, so that after the second terminal obtains the target transmission data, it can directly connect back to the first terminal through the target transmission data, thereby improving the convenience of the terminal accessing the wireless access point while ensuring the security of data transmission.
[0049] In a possible implementation, the method for generating target encrypted information may be: The target transmission data is encrypted by the target key to obtain the target encrypted data; the target identity information of the first terminal is encrypted by the target key to obtain the encrypted signature.
[0050] In this embodiment, the first terminal and the second terminal may pre-negotiate to obtain a target key. When encrypting data, the first terminal may directly encrypt the target transmission data with the target key to obtain target encrypted data, and encrypt the target identity information of the first terminal with the target key to obtain an encrypted signature. In this way, the second terminal can parse the encrypted signature with the locally stored target key and target identity information to verify the identity of the first terminal, and parse the target encrypted data with the target key to obtain the target transmission data when the identity authentication of the first terminal passes. Among them, the identity information of the first terminal may be data pre-agreed between the first terminal and the second terminal, and may be part of the target transmission data, a timestamp or a random number, etc., so as to use the pre-agreed data to verify the identity of the first terminal. By encrypting data, the security of data transmission can be improved.
[0051] In a possible implementation, before generating the target encrypted information, the method further includes: When a target connection is established with the second terminal, target decryption information and target identity information are sent to the second terminal, where the target decryption information includes a target key.
[0052] In this embodiment, the first terminal and the second terminal may be paired and key negotiation may be performed first, so as to perform subsequent verification and data decryption. Specifically, a secure connection may be established between the first terminal and the second terminal. For example, the connection method may be a WIFI (Wireless Fidelity) connection, a BT (Bluetooth) connection, a QR code scan, or a server communication connection. After the connection is successful, data transmission may be performed. Specifically, the first terminal may send the target key to the second terminal to complete the key transmission between the first terminal and the second terminal and obtain the negotiated target key. After the second terminal receives the target key, it may be saved locally in the second terminal so as to determine the target key and the target identity information as the target decryption information for decrypting the target encrypted information sent by the first terminal.
[0053] In a possible implementation, the method for generating target encrypted information may be: The target transmission data is encrypted by the public key of the second terminal to obtain the target encrypted data; the target identity information of the first terminal is encrypted by the private key of the first terminal to obtain the encrypted signature.
[0054] In this embodiment, data can be exchanged between the first terminal and the second terminal in advance. When encrypting data, the first terminal can encrypt the target transmission data through the public key of the second terminal to obtain the target encrypted data, and encrypt the target identity information of the first terminal through the private key of the first terminal to obtain the encrypted signature. In this way, the second terminal can parse the encrypted signature through the public key and target identity information of the first terminal stored locally to verify the identity of the first terminal, and parse the target encrypted data through the private key of the second terminal to obtain the target transmission data when the identity authentication of the first terminal is passed. Data encryption through asymmetric keys can improve the security of data transmission.
[0055] In a possible implementation, before generating the target encrypted information, the method further includes: When a target connection is established with the second terminal, decryption data and target identity information are sent to the second terminal, and a public key of the second terminal sent by the second terminal is received, and the decryption data includes the public key of the first terminal, so that the second terminal determines the public key of the first terminal and the private key of the second terminal as the target decryption information.
[0056] In this embodiment, the first terminal and the second terminal may be paired and data exchanged first, so as to perform subsequent verification and data decryption. Specifically, a secure connection may be established between the first terminal and the second terminal. After the connection is successful, data transmission may be performed. Specifically, the first terminal may send the public key and target identity information of the first terminal to the second terminal, and the second terminal may send the public key of the second terminal to the first terminal, so as to complete the data exchange between the first terminal and the second terminal. After the first terminal receives the public key of the second terminal, it may be saved locally in the first terminal to encrypt the target transmission data. After the second terminal receives the public key and target identity information of the first terminal, it may be saved locally in the second terminal, so as to determine the public key of the first terminal and the private key of the second terminal as the target decryption information, which is used to decrypt the target encrypted information sent by the first terminal.
[0057] In a possible implementation, the second terminal may include multiple paired terminals, that is, the first terminal may be paired with multiple paired terminals.
[0058] In the case of establishing a target connection with a second terminal, a method of sending decrypted data and target identity information to the second terminal and receiving a public key of the second terminal sent by the second terminal may be: When establishing a target connection with multiple paired terminals, decryption data and target identity information are sent to the multiple paired terminals respectively, and public keys sent by the multiple paired terminals are received. The decryption data includes identification information corresponding to the target transmission data and the public key of the first terminal, so that the second terminal determines the identification information, the public key of the first terminal and the private key of the second terminal as the target decryption information.
[0059] In this embodiment, the first terminal can establish a secure connection with multiple paired terminals, and send identification information corresponding to the target transmission data and the public key of the first terminal, as well as the target identity information to the multiple paired terminals respectively, and the multiple paired terminals can send their respective public keys to the first terminal respectively. After the first terminal receives the public keys of multiple paired terminals, it can be saved locally in the first terminal. The second terminal receives the identification information corresponding to the target transmission data and the public key of the first terminal, as well as the target identity information, which can be saved locally in the second terminal, so that the identification information, the public key of the first terminal and the private key of the second terminal are determined as the target decryption information, and the target encrypted information is decrypted. Among them, the identification information corresponding to the target transmission data can be determined by pre-negotiation between the first terminal and the second terminal. For example, the identification information can be a target character, such as "helloword". So that the second terminal can determine the target transmission data from the multiple transmission data parsed according to the identification information.
[0060] The target transmission data is encrypted by the public key of the second terminal, and the method for obtaining the target encrypted data may be: The target transmission data is encrypted respectively by using the public keys of multiple paired terminals to obtain target encrypted data.
[0061] In this embodiment, the target transmission data can be encrypted by the public keys of multiple paired terminals respectively to obtain multiple encrypted transmission data, and the multiple encrypted transmission data are combined together to obtain the target encrypted data. Each paired terminal encrypts the target encrypted data with its own private key and obtains the target transmission data in combination with the identification information.
[0062] In a possible implementation, the method for generating target encrypted information may be: The target transmission data is encrypted by the public key of the second terminal to obtain the target encrypted data; the target identity information of the first terminal is encrypted by the public key of the second terminal to obtain the encrypted signature.
[0063] In this embodiment, the public key of the second terminal can be directly used to encrypt the target transmission data and the target identity information of the first terminal to obtain the target encrypted data and the encrypted signature, so that the first terminal does not need to transmit the public key of the first terminal to the second terminal.
[0064] In a possible implementation, before generating the target encrypted information, the method further includes: When establishing a target connection with the second terminal, the target identity information is sent to the second terminal, and the public key of the second terminal sent by the second terminal is received, so that the second terminal determines the private key of the second terminal as the target decryption information.
[0065] In this embodiment, data exchange between the first terminal and the second terminal may be performed first, so as to perform subsequent verification and data decryption. Specifically, a secure connection may be established between the first terminal and the second terminal, and after the connection is successful, data transmission may be performed. Specifically, the first terminal may send the target identity information to the second terminal, and the second terminal may send the public key of the second terminal to the first terminal, so as to complete the data exchange between the first terminal and the second terminal. After the second terminal receives the target identity information, it may be saved locally in the second terminal, so as to determine the target identity information and the private key of the second terminal as the target decryption information, which is used to decrypt the target encrypted information sent by the first terminal. The first terminal may save the received public key of the second terminal locally, so as to encrypt the data.
[0066] In a possible implementation, the method for broadcasting the target encrypted information may be: Put the target encrypted information into the target broadcast frame; broadcast the target broadcast frame.
[0067] In this embodiment, the target broadcast frame may be a probe req frame, and the target area may be a vendor IE area, or an area with customizable content such as an SSID (Service Set Identifier) area, so that the target broadcast frame can carry information. The target broadcast frame carrying the verification information is broadcast so that the first terminal can receive the verification information.
[0068] Figure 3 is a timing diagram of an information transmission method according to an exemplary embodiment. Figure 3 As shown, the following steps may be included: 1. Pairing process: 1.0 Establish a reliable transmission channel.
[0069] 1.1 Transfer the target key to the second terminal.
[0070] 2. Connection process: 2.1 Generate target encryption information.
[0071] 2.1.1 Encrypt the target transmission data using the target key to obtain the target encrypted data.
[0072] 2.1.2 The target identity information of the first terminal is encrypted using the target key to obtain an encrypted signature.
[0073] 2.2 Broadcast the target encrypted information.
[0074] 2.3 Scan and obtain at least one encrypted information.
[0075] 2.4 Decryption process: 2.4.1 For any encrypted information, the encrypted signature in the encrypted information is parsed according to the target key to obtain a first parsed signature. When the first parsed signature is the same as the target identity information, the encrypted information is determined as the target encrypted information.
[0076] 2.4.2 According to the target key, the target encrypted data in the target encrypted information is parsed to obtain the target transmission data.
[0077] 2.5 Use the target transmission data to connect back.
[0078] Figure 4 is a flow chart of an information transmission method according to an exemplary embodiment. Figure 4 As shown, it can be applied to the second terminal and may include the following steps.
[0079] In step S401, at least one broadcast encryption information including target encryption information is obtained, where the target encryption information is generated by a first terminal and includes target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal.
[0080] In this embodiment, the first terminal may be an AP (Access Point) or other terminals with communication functions, and the second terminal may be an access device, such as a client device, including a personal computer, a smart phone, a tablet computer, etc. The second terminal may scan the vicinity of the device, and since there may be multiple devices broadcasting encrypted information near the second terminal, the second terminal may obtain at least one encrypted information. In order to ensure the security of the transmitted data, the first terminal may encrypt the target transmitted data to obtain the target encrypted data, and in order to ensure the access security of the second terminal, the target identity information of the first terminal may also be sent to the second terminal, and the target identity information may also be encrypted to obtain the encrypted signature corresponding to the first terminal, thereby generating the target encrypted information.
[0081] In step S402, target encryption information is determined from at least one broadcast encryption information according to the target decryption information and the target identity information.
[0082] In this embodiment, each encrypted information includes encrypted data and an encrypted signature. The target decryption information and the target identity information correspond to the first terminal. The encrypted signature can be parsed through the target decryption information and the target identity information to determine the encrypted signature, and then the target encrypted information can be determined from at least one broadcast encrypted information.
[0083] In step S403, target transmission data is parsed from the target encryption information according to the target decryption information.
[0084] In this embodiment, after the target encryption information is determined, the target encrypted data in the target encryption information may be parsed through the target decryption information to obtain the target transmission data.
[0085] In a possible implementation, the target decryption information includes a target key, the target encrypted data is obtained by encrypting the target transmission data using the target key, and the encrypted signature is obtained by encrypting the target identity information of the first terminal using the target key.
[0086] The method of determining the target encrypted information from at least one broadcast encrypted information according to the target decryption information and the target identity information may be: For any encrypted information, the encrypted signature in the encrypted information is parsed according to the target key to obtain a first parsed signature; when the first parsed signature is identical to the target identity information, the encrypted information is determined as the target encrypted information.
[0087] In this embodiment, multiple encrypted information can be identified one by one. Since the encrypted signature is obtained by encrypting the target identity information of the first terminal through the target key, for any encrypted information, the encrypted signature in the encrypted information can be parsed according to the target key to obtain the first parsing signature. Then, it is determined whether the first parsing signature is the same as the target identity information. If the first parsing signature is the same as the target identity information, it is determined that the encrypted information is the target encrypted information broadcast by the first terminal, and further data decryption can be performed. If the first parsing signature is not the same as the target identity information, the encrypted information is discarded and the next encrypted information among the multiple encrypted information is parsed.
[0088] After determining the target encryption information, the method for parsing the target transmission data from the target encryption information according to the target decryption information can be: According to the target key, the target encrypted data in the target encrypted information is parsed to obtain the target transmission data.
[0089] In this embodiment, the determined target encrypted information can be further parsed. Since the target encrypted data is obtained by encrypting the target transmission data using the target key, the target transmission data can be obtained by parsing the target encrypted data in the target encrypted information using the target key.
[0090] In a possible implementation, before acquiring at least one broadcast encrypted information including target encrypted information, the method further includes: When a target connection is established with the first terminal, a target key and target identity information sent by the first terminal are received, and the target key is determined as target decryption information.
[0091] In this embodiment, the first terminal and the second terminal may be paired and key negotiation may be performed first, so as to perform subsequent verification and data decryption. Specifically, a secure connection may be established between the first terminal and the second terminal. For example, the connection method may be a WIFI (Wireless Fidelity) connection, a BT (Bluetooth) connection, a QR code scan, or a server communication connection. After the connection is successful, data transmission may be performed. Specifically, the first terminal may send the target key to the second terminal to complete the key transmission between the first terminal and the second terminal and obtain the negotiated target key. After the second terminal receives the target key, it may be saved locally in the second terminal so as to determine the target key as the target decryption information for decrypting the target encrypted information sent by the first terminal.
[0092] In a possible implementation, the target decryption information includes a public key of the first terminal and a private key of the second terminal. The target encrypted data is obtained by encrypting the target transmission data using the public key of the second terminal. The encrypted signature is obtained by encrypting the target identity information of the first terminal using the private key of the first terminal.
[0093] The method of determining the target encrypted information from at least one broadcast encrypted information according to the target decryption information and the target identity information may be: For any encrypted information, the encrypted signature in the encrypted information is parsed according to the public key of the first terminal to obtain a second parsed signature; when the second parsed signature is identical to the target identity information, the encrypted information is determined as the target encrypted information.
[0094] In this embodiment, multiple encrypted information can be identified one by one. Since the encrypted signature is obtained by encrypting the target identity information of the first terminal using the private key of the first terminal, for any encrypted information, the encrypted signature in the encrypted information can be parsed according to the public key of the first terminal to obtain a second parsed signature, and then it is determined whether the second parsed signature and the target identity information are the same. If the second parsed signature is the same as the target identity information, it is determined that the encrypted information is the target encrypted information broadcast by the first terminal, and further data decryption can be performed. If the second parsed signature is not the same as the target identity information, the encrypted information is discarded and the next encrypted information among the multiple encrypted information is parsed.
[0095] After determining the target encryption information, the method for parsing the target transmission data from the target encryption information according to the target decryption information can be: The target encrypted data in the target encrypted information is parsed according to the private key of the second terminal to obtain the target transmission data.
[0096] In this embodiment, the determined target encryption information can be further parsed. Since the target encryption data is obtained by encrypting the target transmission data using the public key of the second terminal, the target encryption data in the target encryption information can be parsed using the private key of the second terminal to obtain the target transmission data.
[0097] In a possible implementation, before acquiring at least one broadcast encrypted information including target encrypted information, the method further includes: When a target connection is established with the first terminal, decryption data and target identity information sent by the first terminal are received, and the public key of the second terminal is sent to the first terminal, where the decryption data includes the public key of the first terminal; the public key of the first terminal and the private key of the second terminal are determined as target decryption information.
[0098] In this embodiment, the first terminal and the second terminal may be paired and data exchanged first, so as to perform subsequent verification and data decryption. Specifically, a secure connection may be established between the first terminal and the second terminal. After the connection is successful, data transmission may be performed. Specifically, the first terminal may send the public key and target identity information of the first terminal to the second terminal, and the second terminal may send the public key of the second terminal to the first terminal, so as to complete the data exchange between the first terminal and the second terminal. After the first terminal receives the public key of the second terminal, it may be saved locally in the first terminal to encrypt the target transmission data. After the second terminal receives the public key and target identity information of the first terminal, it may be saved locally in the second terminal, so as to determine the public key of the first terminal and the private key of the second terminal as the target decryption information, which is used to decrypt the target encrypted information sent by the first terminal.
[0099] In a possible implementation manner, the target encrypted data is obtained by encrypting the target transmission data respectively using the public keys of multiple paired terminals, and the target decryption information also includes identification information corresponding to the target transmission data.
[0100] According to the target decryption information, the method of parsing the target transmission data from the target encryption information can be: The target encrypted data in the target encrypted information is parsed according to the public keys of the multiple paired terminals to obtain multiple decrypted data; the decrypted data including the identification information is determined as the target decrypted data; and the target transmission data is obtained according to the target decrypted data.
[0101] In this embodiment, the second terminal may include multiple paired terminals, that is, the first terminal may be paired with multiple paired terminals. The first terminal may establish a secure connection with multiple paired terminals, and send identification information corresponding to the target transmission data and the public key of the first terminal, as well as the target identity information to the multiple paired terminals respectively, and the multiple paired terminals may send their respective public keys to the first terminal respectively. After the first terminal receives the public keys of the multiple paired terminals, it may be saved locally in the first terminal. The second terminal receives the identification information corresponding to the target transmission data and the public key of the first terminal, as well as the target identity information, and may save it locally in the second terminal, so as to determine the identification information, the public key of the first terminal and the private key of the second terminal as the target decryption information, and decrypt the target encrypted information.
[0102] The identification information corresponding to the target transmission data can be determined by pre-negotiation between the first terminal and the second terminal. For example, the identification information can be a target character, such as "hello word". So that the second terminal can determine the target transmission data from the multiple transmission data parsed according to the identification information. After parsing the multiple decrypted data, it can be determined whether there is decrypted data including the identification information in the multiple decrypted data, and the decrypted data including the identification information is determined as the target decrypted data. And the data after removing the identification information from the target decrypted data is determined as the target transmission data.
[0103] In a possible implementation, the target decryption information includes the private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data using the public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal using the public key of the second terminal.
[0104] The method of determining the target encrypted information from at least one broadcast encrypted information according to the target decryption information and the target identity information may be: For any encrypted information, the encrypted signature in the encrypted information is parsed according to the private key of the second terminal to obtain a third parsed signature; when the third parsed signature is identical to the target identity information, the encrypted information is determined as the target encrypted information.
[0105] In this embodiment, multiple encrypted information can be identified one by one. Since the encrypted signature is obtained by encrypting the target identity information of the first terminal through the public key of the second terminal, for any encrypted information, the encrypted signature in the encrypted information can be parsed according to the private key of the second terminal to obtain a third parsed signature. Then, it is determined whether the third parsed signature is the same as the target identity information. If the third parsed signature is the same as the target identity information, it is determined that the encrypted information is the target encrypted information broadcast by the first terminal, and further data decryption can be performed. If the third parsed signature is not the same as the target identity information, the encrypted information is discarded and the next encrypted information among the multiple encrypted information is parsed.
[0106] After determining the target encryption information, the method for parsing the target transmission data from the target encryption information according to the target decryption information can be: The target encrypted data in the target encrypted information is parsed according to the private key of the second terminal to obtain the target transmission data.
[0107] In this embodiment, the determined target encryption information can be further parsed. Since the target encryption data is obtained by encrypting the target transmission data using the public key of the second terminal, the target encryption data in the target encryption information can be parsed using the private key of the second terminal to obtain the target transmission data.
[0108] In a possible implementation, before acquiring at least one broadcast encrypted information including target encrypted information, the method further includes: When a target connection is established with the first terminal, the target identity information sent by the first terminal is received, and the public key of the second terminal is sent to the first terminal; and the private key of the second terminal is determined as the target decryption information.
[0109] In this embodiment, the first terminal and the second terminal may be paired and data exchanged first, so as to perform subsequent verification and data decryption. Specifically, a secure connection may be established between the first terminal and the second terminal. After the connection is successful, data transmission may be performed. Specifically, the first terminal may send the target identity information to the second terminal, and the second terminal may send the public key of the second terminal to the first terminal, so as to complete the data exchange between the first terminal and the second terminal. After the first terminal receives the public key of the second terminal, it may be saved locally in the first terminal to encrypt the target transmission data. After the second terminal receives the target identity information, it may be saved locally in the second terminal, so as to determine the private key of the second terminal as the target decryption information, which is used to decrypt the target encrypted information sent by the first terminal.
[0110] Figure 5 is a timing diagram of another information transmission device according to an exemplary embodiment. Figure 5 As shown, the following steps may be included: 1. Pairing process: 1.0 Establish a reliable transmission channel.
[0111] 1.1 Transfer the public key of the second terminal to the first terminal.
[0112] 1.2 The public key of the first terminal is transferred to the second terminal.
[0113] 2. Connection process: 2.1 Generate target encryption information.
[0114] 2.1.1 Encrypt the target transmission data using the private key of the first terminal to obtain target encrypted data.
[0115] 2.1.2 The target identity information of the first terminal is encrypted using the public key of the second terminal to obtain an encrypted signature.
[0116] 2.2 Broadcast the target encrypted information.
[0117] 2.3 Scan and obtain at least one encrypted information.
[0118] 2.4 Decryption process: 2.4.1 For any encrypted information, the encrypted signature in the encrypted information is parsed according to the public key of the first terminal to obtain a second parsed signature. When the second parsed signature is the same as the target identity information, the encrypted information is determined as the target encrypted information.
[0119] 2.4.2 Parsing the target encrypted data in the target encrypted information according to the private key of the second terminal to obtain the target transmission data.
[0120] 2.5 Use the target transmission data to connect back.
[0121] Figure 6 is a block diagram of an information transmission device according to an exemplary embodiment. Figure 6 The information transmission device 600 includes a generation module 601 and a broadcast module 602.
[0122] The generating module 601 is configured to generate target encryption information, wherein the target encryption information includes target encryption data corresponding to the target transmission data and an encryption signature corresponding to the target identity information of the first terminal; The broadcast module 602 is configured to broadcast the target encryption information so that the second terminal determines the target encryption information from at least one broadcast encryption information according to the target decryption information and the target identity information, and parses the target transmission data from the target encryption information according to the target decryption information.
[0123] Optionally, the generating module 601 includes: A first encryption submodule is configured to encrypt the target transmission data by using a target key to obtain the target encrypted data; The second encryption submodule is configured to encrypt the target identity information of the first terminal by using the target key to obtain the encrypted signature.
[0124] Optionally, the information transmission device 600 further includes: The sending module is configured to send the target decryption information and the target identity information to the second terminal when a target connection is established with the second terminal, wherein the target decryption information includes the target key.
[0125] Optionally, the generating module 601 includes: A third encryption submodule is configured to encrypt the target transmission data by using the public key of the second terminal to obtain the target encrypted data; The fourth encryption submodule is configured to encrypt the target identity information of the first terminal by using the private key of the first terminal to obtain the encrypted signature.
[0126] Optionally, the information transmission device 600 further includes: The first exchange module is configured to send decryption data and the target identity information to the second terminal when establishing a target connection with the second terminal, and receive the public key of the second terminal sent by the second terminal, wherein the decryption data includes the public key of the first terminal, so that the second terminal determines the public key of the first terminal and the private key of the second terminal as the target decryption information.
[0127] Optionally, the second terminal includes a plurality of paired terminals; The first switching module includes: an exchange submodule, configured to, when establishing a target connection with the multiple paired terminals, send decryption data and the target identity information to the multiple paired terminals respectively, and receive public keys sent by the multiple paired terminals, the decryption data including identification information corresponding to the target transmission data and the public key of the first terminal, so that the second terminal determines the identification information, the public key of the first terminal and the private key of the second terminal as the target decryption information; The third encryption submodule comprises: The encryption unit is configured to encrypt the target transmission data respectively by using the public keys of the plurality of paired terminals to obtain the target encrypted data.
[0128] Optionally, the generating module 601 includes: a fifth encryption submodule, configured to encrypt the target transmission data by using the public key of the second terminal to obtain the target encrypted data; The sixth encryption submodule is configured to encrypt the target identity information of the first terminal by using the public key of the second terminal to obtain the encrypted signature.
[0129] Optionally, the information transmission device 600 further includes: The second exchange module is configured to send the target identity information to the second terminal and receive the public key of the second terminal sent by the second terminal when establishing a target connection with the second terminal, so that the second terminal determines the private key of the second terminal as the target decryption information.
[0130] Optionally, the broadcast module 602 includes: An inserting submodule is configured to insert the target encrypted information into a target broadcast frame; The broadcast submodule is configured to broadcast the target broadcast frame.
[0131] Figure 7is a block diagram of another information transmission device according to an exemplary embodiment. Figure 7 The information transmission device 700 includes an acquisition module 701, a first determination module 702 and a parsing module 703.
[0132] The acquisition module 701 is configured to acquire at least one broadcast encryption information including target encryption information, where the target encryption information is generated by the first terminal, and the target encryption information includes target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal; The first determination module 702 is configured to determine the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information; The parsing module 703 is configured to parse the target transmission data from the target encryption information according to the target decryption information.
[0133] Optionally, the target decryption information includes a target key, the target encrypted data is obtained by encrypting the target transmission data by using the target key, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using the target key; The first determining module 702 includes: A first parsing submodule is configured to parse the encrypted signature in any encrypted information according to the target key to obtain a first parsed signature; A first determination submodule is configured to determine the encrypted information as the target encrypted information when the first parsed signature is the same as the target identity information; The analysis module 703 includes: The second parsing submodule is configured to parse the target encrypted data in the target encryption information according to the target key to obtain the target transmission data.
[0134] Optionally, the information transmission device 700 further includes: The receiving module is configured to receive the target key and the target identity information sent by the first terminal when a target connection is established with the first terminal, and determine the target key as the target decryption information.
[0135] Optionally, the target decryption information includes a public key of the first terminal and a private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data by using the public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using the private key of the first terminal; The first determining module 702 includes: A third parsing submodule is configured to parse the encrypted signature in any encrypted information according to the public key of the first terminal to obtain a second parsed signature; A second determination submodule is configured to determine the encrypted information as the target encrypted information when the second parsed signature is the same as the target identity information; The analysis module 703 includes: The fourth parsing submodule is configured to parse the target encrypted data in the target encrypted information according to the private key of the second terminal to obtain the target transmission data.
[0136] Optionally, the information transmission device 700 further includes: a third exchange module, configured to, when establishing a target connection with the first terminal, receive the decrypted data and the target identity information sent by the first terminal, and send the public key of the second terminal to the first terminal, wherein the decrypted data includes the public key of the first terminal; The second determining module is configured to determine the public key of the first terminal and the private key of the second terminal as the target decryption information.
[0137] Optionally, the target encrypted data is obtained by encrypting the target transmission data respectively using the public keys of multiple paired terminals, and the target decryption information also includes identification information corresponding to the target transmission data; The analysis module 703 includes: a fifth parsing submodule, configured to parse the target encrypted data in the target encrypted information according to the public keys of the plurality of paired terminals to obtain a plurality of decrypted data; A third determination submodule is configured to determine the decrypted data including the identification information as target decrypted data; The obtaining submodule is configured to decrypt the data according to the target to obtain the target transmission data.
[0138] Optionally, the target decryption information includes a private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data by using a public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using a public key of the second terminal; The first determining module 702 includes: a sixth parsing submodule, configured to parse the encrypted signature in any encrypted information according to the private key of the second terminal to obtain a third parsed signature; A fourth determination submodule is configured to determine the encrypted information as the target encrypted information when the third parsed signature is the same as the target identity information; The analysis module 703 includes: The seventh parsing submodule is configured to parse the target encrypted data in the target encrypted information according to the private key of the second terminal to obtain the target transmission data.
[0139] Optionally, the information transmission device 700 further includes: a fourth exchange module, configured to, when establishing a target connection with the first terminal, receive the target identity information sent by the first terminal, and send a public key of the second terminal to the first terminal; The third determining module is configured to determine the private key of the second terminal as the target decryption information.
[0140] Regarding the information transmission device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0141] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of the information transmission method provided by the present disclosure when the program instructions are executed by a processor.
[0142] Figure 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be the above-mentioned manager.
[0143] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a first memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .
[0144] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more first processors 820 to execute instructions to complete all or part of the steps of the above-mentioned information transmission method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0145] The first memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The first memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0146] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0147] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0148] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the first memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0149] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0150] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0151] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0152] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned information transmission method.
[0153] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a first memory 804 including instructions, and the instructions can be executed by a first processor 820 of the electronic device 800 to complete the above information transmission method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0154] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned information transmission method when executed by the programmable device.
[0155] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.
[0156] It should be understood that the features of some embodiments of the various present disclosures described herein may be combined with each other, unless specifically stated otherwise.
[0157] Although terms such as "first", "second" and "third" can be used herein to describe various components, parts, regions, layers or sections, these components, parts, regions, layers or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, component, region, layer or section from another component, component, region, layer or section. Therefore, without departing from the teachings of each example, the first component, component, region, layer or section mentioned in the examples described herein may also be referred to as the second component, component, region, layer or section. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may expressly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0158] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".
[0159] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".
[0160] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
[0161] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An information transmission method, characterized in that: include: Generate target encryption information, the target encryption information including target encryption data corresponding to the target transmission data and an encryption signature corresponding to the target identity information of the first terminal; The target encrypted information is broadcasted, so that the second terminal determines the target encrypted information from at least one broadcasted encrypted information according to the target decryption information and the target identity information, and parses the target transmission data from the target encrypted information according to the target decryption information.
2. The information transmission method according to claim 1, characterized in that: The generating target encrypted information comprises: Encrypting the target transmission data by using a target key to obtain the target encrypted data; The target identity information of the first terminal is encrypted by using the target key to obtain the encrypted signature.
3. The information transmission method according to claim 2, characterized in that: Before generating the target encrypted information, the method further includes: In case of establishing a target connection with the second terminal, the target decryption information and the target identity information are sent to the second terminal, wherein the target decryption information includes the target key.
4. The information transmission method according to claim 1, characterized in that: The generating target encrypted information comprises: Encrypting the target transmission data by using the public key of the second terminal to obtain the target encrypted data; The target identity information of the first terminal is encrypted by using the private key of the first terminal to obtain the encrypted signature.
5. The information transmission method according to claim 4, characterized in that: Before generating the target encrypted information, the method further includes: When a target connection is established with the second terminal, decryption data and the target identity information are sent to the second terminal, and a public key of the second terminal sent by the second terminal is received, wherein the decryption data includes the public key of the first terminal, so that the second terminal determines the public key of the first terminal and the private key of the second terminal as the target decryption information.
6. The information transmission method according to claim 5, characterized in that: The second terminal includes a plurality of paired terminals; The step of sending the first decrypted data and the target identity information to the second terminal when establishing a target connection with the second terminal, and receiving the public key of the second terminal sent by the second terminal, comprises: In the case of establishing a target connection with the multiple paired terminals, sending decryption data and the target identity information to the multiple paired terminals respectively, and receiving public keys sent by the multiple paired terminals, the decryption data including identification information corresponding to the target transmission data and the public key of the first terminal, so that the second terminal determines the identification information, the public key of the first terminal and the private key of the second terminal as the target decryption information; The step of encrypting the target transmission data by using the public key of the second terminal to obtain the target encrypted data includes: The target transmission data is encrypted respectively by using the public keys of the multiple paired terminals to obtain the target encrypted data.
7. The information transmission method according to claim 1, characterized in that: The generating target encrypted information comprises: Encrypting the target transmission data by using the public key of the second terminal to obtain the target encrypted data; The target identity information of the first terminal is encrypted by using the public key of the second terminal to obtain the encrypted signature.
8. The information transmission method according to claim 7, characterized in that: Before generating the target encrypted information, the method further includes: When establishing a target connection with the second terminal, the target identity information is sent to the second terminal, and the public key of the second terminal sent by the second terminal is received, so that the second terminal determines the private key of the second terminal as the target decryption information.
9. The information transmission method according to any one of claims 1 to 8, characterized in that: The broadcasting of the target encrypted information comprises: Putting the target encrypted information into a target broadcast frame; The target broadcast frame is broadcasted.
10. An information transmission method, characterized in that: include: Acquire at least one broadcast encryption information including target encryption information, the target encryption information being generated by the first terminal, the target encryption information including target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal; Determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information; The target transmission data is parsed from the target encryption information according to the target decryption information.
11. The information transmission method according to claim 10, characterized in that: The target decryption information includes a target key, the target encrypted data is obtained by encrypting the target transmission data by using the target key, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using the target key; The step of determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information comprises: For any encrypted information, parse the encrypted signature in the encrypted information according to the target key to obtain a first parsed signature; In the case where the first parsed signature is identical to the target identity information, determining the encrypted information as the target encrypted information; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: The target encrypted data in the target encrypted information is parsed according to the target key to obtain the target transmission data.
12. The information transmission method according to claim 11, characterized in that: Before acquiring at least one broadcast encrypted information including target encrypted information, the method further includes: In case of establishing a target connection with the first terminal, the target key and the target identity information sent by the first terminal are received, and the target key is determined as the target decryption information.
13. The information transmission method according to claim 10, characterized in that: The target decryption information includes a public key of the first terminal and a private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data with the public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal with the private key of the first terminal; The step of determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information comprises: For any encrypted information, parse the encrypted signature in the encrypted information according to the public key of the first terminal to obtain a second parsed signature; In the case where the second parsed signature is identical to the target identity information, determining the encrypted information as the target encrypted information; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: The target encrypted data in the target encrypted information is parsed according to the private key of the second terminal to obtain the target transmission data.
14. The information transmission method according to claim 13, characterized in that: Before acquiring at least one broadcast encrypted information including target encrypted information, the method further includes: In the case of establishing a target connection with the first terminal, receiving decrypted data and the target identity information sent by the first terminal, and sending a public key of the second terminal to the first terminal, the decrypted data including the public key of the first terminal; The public key of the first terminal and the private key of the second terminal are determined as the target decryption information.
15. The information transmission method according to claim 14, characterized in that: The target encrypted data is obtained by encrypting the target transmission data respectively using the public keys of multiple paired terminals, and the target decryption information also includes identification information corresponding to the target transmission data; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: Parsing the target encrypted data in the target encrypted information according to the public keys of the multiple paired terminals to obtain multiple decrypted data; determining the decrypted data including the identification information as target decrypted data; The target transmission data is obtained by decrypting the target data.
16. The information transmission method according to claim 10, characterized in that: The target decryption information includes a private key of the second terminal, the target encrypted data is obtained by encrypting the target transmission data by using the public key of the second terminal, and the encrypted signature is obtained by encrypting the target identity information of the first terminal by using the public key of the second terminal; The step of determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information comprises: For any encrypted information, parse the encrypted signature in the encrypted information according to the private key of the second terminal to obtain a third parsed signature; In the case where the third parsed signature is identical to the target identity information, determining the encrypted information as the target encrypted information; The step of parsing the target transmission data from the target encryption information according to the target decryption information includes: The target encrypted data in the target encrypted information is parsed according to the private key of the second terminal to obtain the target transmission data.
17. The information transmission method according to claim 16, characterized in that: Before acquiring at least one broadcast encrypted information including target encrypted information, the method further includes: In case of establishing a target connection with the first terminal, receiving the target identity information sent by the first terminal, and sending the public key of the second terminal to the first terminal; The private key of the second terminal is determined as the target decryption information.
18. An information transmission device, characterized in that: include: Generate target encryption information, the target encryption information including target encryption data corresponding to the target transmission data and an encryption signature corresponding to the target identity information of the first terminal; The target encrypted information is broadcasted, so that the second terminal determines the target encrypted information from at least one broadcasted encrypted information according to the target decryption information and the target identity information, and parses the target transmission data from the target encrypted information according to the target decryption information.
19. An information transmission device, characterized in that: include: Acquire at least one broadcast encryption information including target encryption information, the target encryption information being generated by the first terminal, the target encryption information including target encryption data corresponding to target transmission data and an encryption signature corresponding to target identity information of the first terminal; Determining the target encryption information from the at least one broadcast encryption information according to the target decryption information and the target identity information; The target transmission data is parsed from the target encryption information according to the target decryption information.
20. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the steps of the information transmission method described in any one of claims 1 to 9 when executed, or the processor is configured to implement the steps of the information transmission method described in any one of claims 10 to 17 when executed.
21. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the information transmission method described in any one of claims 1 to 9 are implemented, or when the computer program instructions are executed by a processor, the steps of the information transmission method described in any one of claims 10 to 17 are implemented.
22. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the steps of the information transmission method described in any one of claims 1 to 9, or, when executed by a processor, implements the steps of the information transmission method described in any one of claims 10 to 17.
