Data Interaction Method, Apparatus, Electronic Device, and Storage Medium
By encapsulating and encrypting the key data in the data interaction between terminal devices, and determining whether to continue sending data based on the decrypted information of the second terminal device, the problem of poor data security is solved and efficient and secure data interaction is achieved.
Patent Information
- Application Number
- CN202280004232.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-06
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2042-05-06
AI Technical Summary
In the data interaction between terminal devices, data security is poor, especially when screen projection connection, user privacy and account security data are easily intercepted by malicious applications. The existing encryption and decryption process reduces data interaction efficiency and increases the computing load of terminal devices.
The key data in the interactive data is encapsulated into multiple data packets, and some data packets are encrypted and sent to the second terminal device. After receiving the decrypted information of the second terminal device, it is determined whether to continue to send data. The verified encrypted information indicates that the data is secure, and if the transmission is stopped if it fails to pass the verification.
It improves the security of data interaction, reduces the encryption and decryption computing load of terminal devices, avoids data leakage, and ensures data security and interaction efficiency.
Smart Images

Figure CN116097621B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data interaction, and particularly relates to a data interaction method, apparatus, electronic device, and storage medium. Background Art
[0002] In recent years, there have been more and more forms of data interaction between different terminal devices, such as screen mirroring connections. In the scenario of screen mirroring connection, one terminal device saves its video, audio, and other data as multiple frames of data through screen recording, audio recording, etc., and then transmits the multiple frames of data to another terminal device through a wired connection or a wireless connection. The other terminal device can then parse the multiple frames of data to obtain the original video, audio, and other data, and then perform display or playback and other presentation operations on it. During the process of continuously transmitting a large amount of data between two terminal devices, the data may be intercepted by malicious applications, that is, the security of data interaction is relatively poor. Summary of the Invention
[0003] To overcome the problems existing in the related art, embodiments of the present disclosure provide a data interaction method, apparatus, electronic device, and storage medium to solve the defects in the related art.
[0004] According to a first aspect of the embodiments of the present disclosure, there is provided a data interaction method, which is applied to a first terminal device, and the first terminal performs screen mirroring interaction with a second terminal. The method includes:
[0005] Obtain key data in the interaction data, and encapsulate the key data into M first data packets, where M is a natural number greater than 1;
[0006] Encrypt N first data packets among the M first data packets, and sequentially send the M first data packets to the second terminal device, where N is greater than or equal to 1 and less than M;
[0007] Receive the encrypted information returned by the second terminal device, and determine whether to continue sending the interaction data according to the encrypted information, where the encrypted information is obtained by the second terminal device decrypting the encrypted first data packet.
[0008] In one embodiment, it further includes:
[0009] Determine the interaction data according to the interaction control instruction, obtain the interaction data, and determine whether there is key data in the interaction data, where the interaction control instruction is generated based on the operation of the user on the first terminal device or the second terminal device;
[0010] The obtaining of the key data in the interaction data includes:
[0011] In response to the existence of key data in the interaction data, obtain the key data in the interaction data.
[0012] In one embodiment, the determining the interaction data according to the interaction control instruction and obtaining the interaction data includes:
[0013] Determine the interaction data and the application program to which the interaction data belongs according to the interaction control instruction;
[0014] Obtain the interaction data from the application program to which the interaction data belongs.
[0015] In one embodiment, the determining whether there is key data in the interaction data includes:
[0016] Determine whether there is data belonging to a preset key data list in the interaction data;
[0017] In response to the existence of data belonging to the preset key data list in the interaction data, determine that there is key data in the interaction data, and determine that the data belonging to the preset key data list in the interaction data is key data;
[0018] In response to the non-existence of data in the preset key data list in the interaction data, determine that there is no key data in the interaction data.
[0019] In one embodiment, the encrypting N first data packets out of the M first data packets includes:
[0020] Determine N according to the M and the encryption ratio;
[0021] Encrypt the first N first data packets out of the M first data packets.
[0022] In one embodiment, it further includes:
[0023] Determine the encryption ratio according to the computing power of the first terminal device and the quality parameter of the data transmission link.
[0024] In one embodiment, the encrypting N first data packets out of the M first data packets includes:
[0025] Encrypt the encryption identifier, the encryption information and the first data packet to obtain an encrypted first data packet, where the encryption identifier is used for the second terminal device to determine the encrypted first data packet from the multiple first data packets.
[0026] In one embodiment, it further includes:
[0027] Obtain the non-critical data in the interaction data, encapsulate the critical data into multiple second data packets, and send the multiple second data packets to the second terminal device so that the second terminal device can parse and display the non-critical data.
[0028] In one embodiment, the interaction data includes video and / or audio.
[0029] According to a second aspect of the embodiments of the present disclosure, a data interaction method is provided, which is applied to a second terminal device and includes:
[0030] Receive M first data packets sent by a first terminal device, where the M first data packets are obtained by the first terminal device encapsulating the critical data in the interaction data, and N of the M first data packets are encrypted by the first terminal device, M is a natural number greater than 1, N is greater than or equal to 1 and less than M;
[0031] Decrypt the N first data packets that have been encrypted to obtain encryption information;
[0032] Send the encryption information to the first terminal device so that the first terminal device can continue to send the interaction data.
[0033] In one embodiment, before decrypting the N first data packets that have been encrypted to obtain encryption information, it further includes:
[0034] Determine at least one first data packet with an encryption identifier among the M first data packets as the first data packet that has been encrypted.
[0035] In one embodiment, after decrypting the N first data packets that have been encrypted, it further includes:
[0036] Parse the M first data packets in sequence according to the reception order to obtain the critical data;
[0037] Display the critical data according to the display method of the critical data.
[0038] In one embodiment, it further includes:
[0039] Receive multiple second data packets sent by the first terminal device, where the multiple second data packets are obtained by the first terminal device encapsulating the non-critical data in the interaction data;
[0040] Parse the multiple second data packets in sequence according to the reception order to obtain the non-critical data;
[0041] Display the non-critical data according to the display method of the non-critical data.
[0042] In one embodiment, it further includes:
[0043] Generate an interaction control instruction based on the user's operation on the display result of the interaction data;
[0044] Send the interaction control instruction to the first terminal device so that the terminal device continues to return the interaction data.
[0045] According to the third aspect of the embodiments of the present disclosure, there is provided a data interaction device applied to a first terminal device. The first terminal performs screen mirroring interaction with a second terminal. The device includes:
[0046] A first acquisition module, configured to acquire key data in the interaction data and encapsulate the key data into M first data packets, where M is a natural number greater than 1;
[0047] An encryption module, configured to perform encryption processing on N first data packets among the M first data packets and sequentially send the M first data packets to the second terminal device, where N is greater than or equal to 1 and less than M;
[0048] A verification module, configured to determine whether to continue sending the interaction data according to the encryption information within a preset time period when receiving the encryption information returned by the second terminal device, where the encryption information is obtained by the second terminal device decrypting the encrypted first data packet.
[0049] In one embodiment, it further includes a determination module, configured to:
[0050] Determine the interaction data according to the interaction control instruction, acquire the interaction data, and determine whether there is key data in the interaction data, where the interaction control instruction is generated based on the user's operation on the first terminal device or the second terminal device;
[0051] The first acquisition module is specifically configured to:
[0052] In response to the existence of key data in the interaction data, acquire the key data in the interaction data.
[0053] In one embodiment, when the determination module is configured to determine the interaction data according to the interaction control instruction and acquire the interaction data, it is specifically configured to:
[0054] Determine the interaction data according to the interaction control instruction and the application program to which the interaction data belongs;
[0055] Acquire the interaction data from the application program to which the interaction data belongs.
[0056] In one embodiment, when the determining module is used to determine whether there is critical data in the interaction data, it is specifically used for:
[0057] Determine whether there is data belonging to a preset critical data list in the interaction data;
[0058] In response to the existence of data belonging to the preset critical data list in the interaction data, determine that there is critical data in the interaction data, and determine that the data belonging to the preset critical data list in the interaction data is critical data;
[0059] In response to the non-existence of data in the preset critical data list in the interaction data, determine that there is no critical data in the interaction data.
[0060] In one embodiment, when the encryption module is used to encrypt N of the M first data packets, it is specifically used for:
[0061] Determine N according to the M and the encryption ratio;
[0062] Encrypt the first N first data packets among the M first data packets.
[0063] In one embodiment, it further includes a ratio module, which is used for:
[0064] Determine the encryption ratio according to the computing power of the first terminal device and the quality parameter of the data transmission link.
[0065] In one embodiment, when the encryption module is used to encrypt N of the M first data packets, it is specifically used for:
[0066] Encrypt the encryption identifier, the encryption information and the first data packet to obtain an encrypted first data packet, where the encryption identifier is used for the second terminal device to determine the encrypted first data packet from the multiple first data packets.
[0067] In one embodiment, it further includes a second acquisition module, which is used for:
[0068] Acquire the non-critical data in the interaction data, encapsulate the critical data into multiple second data packets, and send the multiple second data packets to the second terminal device, so that the second terminal device can parse and display the non-critical data.
[0069] In one embodiment, the interaction data includes video and / or audio.
[0070] According to a fourth aspect of the embodiments of the present disclosure, a data interaction device is provided, which is applied to a second terminal device and includes:
[0071] A receiving module, configured to receive M first data packets sent by a first terminal device, where the M first data packets are obtained by the first terminal device encapsulating key data in interaction data, and N of the M first data packets are encrypted by the first terminal device. M is a natural number greater than 1, N is greater than or equal to 1 and less than M;
[0072] A decryption module, configured to decrypt the N first data packets that have been encrypted to obtain encrypted information;
[0073] A sending module, configured to send the encrypted information to the first terminal device so that the first terminal device continues to send the interaction data.
[0074] In one embodiment, it further includes an identification module, configured to:
[0075] Before decrypting the N first data packets that have been encrypted to obtain encrypted information, determine the first data packets with an encryption identifier among the M first data packets as the first data packets that have been encrypted.
[0076] In one embodiment, it further includes a first display module, configured to:
[0077] After decrypting the N first data packets that have been encrypted, parse the M first data packets in sequence according to the receiving order to obtain the key data;
[0078] Display the key data according to the display mode of the key data.
[0079] In one embodiment, it further includes a first display module, configured to:
[0080] Receive multiple second data packets sent by the first terminal device, where the multiple second data packets are obtained by the first terminal device encapsulating non-key data in interaction data;
[0081] Parse the multiple second data packets in sequence according to the receiving order to obtain the non-key data;
[0082] Display the non-key data according to the display mode of the non-key data.
[0083] In one embodiment, it further includes a control module, configured to:
[0084] Generate an interaction control instruction based on the user's operation on the display result of the interaction data;
[0085] Send the interaction control instruction to the first terminal device so that the terminal device continues to return the interaction data.
[0086] According to the fifth aspect of the embodiments of the present disclosure, there is provided an electronic device including a memory and a processor. The memory is used to store computer instructions that can run on the processor, and the processor is used to perform the data interaction method according to the first aspect when executing the computer instructions.
[0087] According to the sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium with a computer program stored thereon. When the program is executed by a processor, it implements the method according to the first aspect.
[0088] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0089] The present disclosure obtains key data in the interaction data, encapsulates the key data into M first data packets, then encrypts N first data packets among the M first data packets, and sequentially sends the M first data packets to the second terminal device. Finally, it receives the encryption information returned by the second terminal device, and determines whether to continue sending the interaction data according to the encryption information. The encryption information is obtained by the second terminal device decrypting the encrypted first data packet. Since N first data packets among the M first data packets encapsulating the key data in the interaction data are encrypted, after the M data packets are sent to the second terminal device, it can be determined whether the second terminal device successfully decrypts the encrypted first data packet according to whether the second terminal device returns the encryption information that can pass the verification, and then it can be determined whether the data sent to the second terminal device is secure, and stop sending the interaction data in case of insecurity, thus avoiding data leakage and ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.
[0091] Figure 1 is a flowchart of a data interaction method applied to a first terminal device shown in an exemplary embodiment of the present disclosure;
[0092] Figure 2 is a schematic diagram of the interaction process between a first terminal device and a second terminal device shown in an exemplary embodiment of the present disclosure;
[0093] Figure 3 It is a schematic diagram of the encapsulation process of key data shown in an exemplary embodiment of the present disclosure;
[0094] Figure 4 It is a schematic diagram of the encryption process of key data shown in an exemplary embodiment of the present disclosure;
[0095] Figure 5 It is a schematic diagram of the encryption method of key data shown in an exemplary embodiment of the present disclosure;
[0096] Figure 6 It is a flowchart of a data interaction method applied to a second terminal device shown in an exemplary embodiment of the present disclosure;
[0097] Figure 7 It is a processing flow of the second terminal device after receiving the interaction data shown in an exemplary embodiment of the present disclosure;
[0098] Figure 8 It is a schematic structural diagram of a data interaction device applied to a first terminal device shown in an exemplary embodiment of the present disclosure;
[0099] Figure 9 It is a schematic structural diagram of a data interaction device applied to a second terminal device shown in an exemplary embodiment of the present disclosure;
[0100] Figure 10 It is a block diagram of the structure of an electronic device shown in an exemplary embodiment of the present disclosure. Detailed Description of the Embodiment
[0101] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0102] The terms used in the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a", "the" and "said" used in the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0103] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".
[0104] In recent years, there have been more and more forms of data interaction between different terminal devices, such as screen mirroring connections. In the scenario of screen mirroring connection, a terminal device saves its video, audio and other data as multiple frames of data through screen recording, audio recording, etc., and then transmits it to another terminal device through wired or wireless connection. The other terminal device can parse the multiple frames of data to obtain the original video, audio and other data, and then perform display or playback and other display operations on it. During the continuous transmission of a large amount of data between two terminal devices, the data may be intercepted by malicious applications, that is, the security of data interaction is poor. If these data contain the user's call data, contacts, account passwords, etc., it may lead to the leakage of this information, seriously affecting the user's personal information security.
[0105] To ensure the security of data interaction, in related technologies, a terminal device encrypts the data before transmitting it, and the other terminal device decrypts the data after receiving it. However, the above encryption and decryption processes not only reduce the efficiency of data interaction, but also increase the computing load of the terminal device. Taking the scenario of screen mirroring connection as an example, the above encryption and decryption processes will greatly reduce the efficiency of video and audio transmission, causing problems such as video frame freezing or blurring, and audio freezing or distortion. Moreover, if the malicious application intercepting the interaction data has the ability to decrypt, it will continuously obtain and decrypt the interaction data, resulting in the continuous leakage of important information, which has a greater impact on data security.
[0106] Based on this, in a first aspect, at least one embodiment of the present disclosure provides a data interaction method. Please refer to the appendix Figure 1 , which shows the flow of the method, including step S101 and step S103.
[0107] Among them, this method can be applied to a first terminal device, and the first terminal performs screen mirroring interaction with a second terminal. The first terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA) handheld device, a computing device, a wearable device, etc. The first terminal device can be the data source in a data interaction scenario, that is, the side that sends data outward. For example, in the scenario of a smartphone casting the screen to a TV, the smartphone is the data source and the TV is the data destination.
[0108] It can be understood that this method can be executed by a specific application or a specific module of the first terminal device. For example, as Figure 2 , terminal A, as the first terminal device, has application C for data interaction. Application C can communicate and connect with other application programs such as application 1, application 2, application 3, etc., so as to obtain interactive data such as audio data and video data from other application programs, encapsulate these interactive data, and send them to terminal B as the second terminal device. Terminal B is the data destination of data interaction. It can receive the data sent by application C, decompose the encapsulated data, and at the same time can also reverse-control the application of terminal A, that is, send control instructions to application C, and then application C sends these control instructions to the corresponding application programs. These other application programs can be music application programs, video application programs, navigation application programs, social application programs, etc.
[0109] In step S101, key data in the interactive data is obtained, and the key data is encapsulated into M first data packets, where M is a natural number greater than 1.
[0110] Among them, the interactive data is the data targeted by data interaction, that is, the data sent by the first terminal device to the second terminal device. Taking the screen mirroring scenario as an example, the interactive data is data such as video and audio. The key data can be data related to user privacy or account security.
[0111] During the process of data interaction, the first terminal device can determine the interaction data and the application program to which the interaction data belongs according to the interaction control instruction, and obtain the interaction data from the application program to which the interaction data belongs, where the interaction control instruction is generated based on the user's operation on the first terminal device or the second terminal device. Taking the screen mirroring scenario as an example, after the first terminal device and the second terminal device establish a screen mirroring connection, the first terminal device will send the default screen to the second terminal device so that the second terminal device can display the default screen, which can be the current screen of the first terminal device, the desktop, or the dedicated initial screen of the screen mirroring program; Next, the user can operate on the first terminal device, then the first terminal device generates an interaction control instruction based on this operation, or operates on the above default screen displayed on the second terminal device, and the second terminal device generates an interaction control instruction based on this operation and sends the interaction control instruction to the first terminal device. The first terminal device obtains data such as the screen and audio from the corresponding application program according to the interaction control instruction. For example, if the interaction control instruction is to start a certain application program on the desktop, the first terminal device starts the application program and obtains the initial interface after the application program starts as the interaction data.
[0112] After the first terminal device obtains the interaction data, it can determine whether there is key data in the interaction data in the following way: First, determine whether there is data belonging to the preset key data list in the interaction data. Exemplarily, a preset key data list is pre-set in the first terminal device; Next, in the case where there is data belonging to the preset key data list in the interaction data, it is determined that there is key data in the interaction data, and it is determined that the data belonging to the preset key data list in the interaction data is the key data; In the case where there is no data in the preset key data list in the interaction data, it is determined that there is no key data in the interaction data.
[0113] In the case where there is key data in the interaction data, this step can be executed, that is, obtain the key data in the interaction data. Due to the influence of the transmission channel bandwidth, the key data cannot be directly transmitted to the second terminal device, so reference can be made to Appendix Figure 3 to encapsulate the key data into M first data packets.
[0114] In addition, it is also possible to obtain the non-key data in the interaction data, encapsulate the key data into multiple second data packets, and send the multiple second data packets to the second terminal device so that the second terminal device can parse and display the non-key data.
[0115] In the case where there is no key data in the interaction data, the interaction data can be encapsulated into multiple third data packets, and the multiple third data packets are sent to the second terminal device, so that the second terminal device can parse and display the interaction data.
[0116] In step S102, N first data packets among the M first data packets are encrypted, and the M first data packets are sequentially sent to the second terminal device, where N is greater than or equal to 1 and less than M.
[0117] Among them, the first data packets to be encrypted can be part of the M first data packets. Exemplarily, the encryption ratio K can be determined first according to the computing power p of the first terminal device and the quality parameter q of the data transmission link. The computing power p of the first terminal device can be used to represent the encryption speed of the first terminal device, and the quality parameter q of the data transmission link can be used to represent the packet loss rate. If the packet loss rate is too high, the encrypted first data packets may be lost, resulting in meaningless encryption. Taking the screen mirroring scenario as an example, the packet loss rate is extremely low, and the value of q is between 0.98 and 1. For example, K can be calculated according to the following formula: K = p * q; then, according to the M and the encryption ratio K, the encryption quantity N is determined. For example, N can be calculated according to the following formula: N = M * K; finally, the first N first data packets among the multiple first data packets are encrypted. Reference can be made to the appendix Figure 4 , after the key data is encapsulated into 4 first data packets, the first 3 first data packets are encrypted. It can be understood that the appendix Figure 4 is only an example. Generally, the encryption ratio K is between 20% and 30%.
[0118] In a possible embodiment, the first data packets can be encrypted in the manner as Figure 5 shown: The encryption identifier F, the encryption information I, and the first data packet are encrypted to obtain the encrypted first data packet, where the encryption identifier F is used for the second terminal device to determine the first data packet that has been encrypted from the multiple first data packets.
[0119] It can be understood that during the data interaction process, the first terminal device continuously obtains interaction data according to the interaction control instruction, and determines whether there is key data in the interaction data. If there is key data, some or all of the multiple first data packets obtained by encapsulating the key data are encrypted and sent to the second terminal device, and the multiple second data packets obtained by encapsulating the non-key data are directly sent to the second terminal device. If there is no key data, the multiple third data packets obtained by directly encapsulating the interaction data are sent to the second terminal device. The processing and sending order of the above interaction data can be determined according to the order of obtaining the interaction data.
[0120] In step S103, upon receiving the encrypted information returned by the second terminal device, it is determined whether to continue sending the interaction data according to the encrypted information, where the encrypted information is obtained by the second terminal device decrypting the first data packet that has been encrypted.
[0121] Among them, during the data interaction process, the second terminal device continuously receives the interaction data sent by the first terminal device in the form of data packets, and then processes the received interaction data in sequence, that is, processes the received data packets in sequence. Before processing the data packet, it can be checked whether the data packet has an encryption flag. If it does not have an encryption flag, the data packet is the second data packet, the third data packet, or the first data packet that has not been encrypted. If it has an encryption flag, the data packet is the first data packet that has been encrypted.
[0122] After receiving multiple second data packets sent by the first terminal device, the multiple second data packets can be parsed and processed in sequence according to the reception order to obtain the non-critical data, and the non-critical data can be displayed according to the display method of the non-critical data. Exemplarily, if the non-critical data is a picture, the image can be displayed; if the non-critical data is a video, the video can be played.
[0123] After receiving multiple third data packets sent by the first terminal device, the multiple third data packets can be parsed and processed in sequence according to the reception order to obtain the interaction data, and the interaction data can be displayed according to the display method of the interaction data. Exemplarily, if the interaction data is a picture, the image can be displayed; if the interaction data is a video, the video can be played.
[0124] After receiving multiple first data packets sent by the first terminal device, the first data packets with encryption flags among the multiple first data packets can be determined as the first data packets that have been encrypted, and then the N first data packets that have been encrypted are decrypted to obtain the encrypted information and the decrypted first data packets. Then, the multiple first data packets are parsed and processed in sequence according to the reception order to obtain the critical data, and the critical data is displayed according to the display method of the critical data. Exemplarily, if the critical data is a picture, the image can be displayed; if the critical data is a video, the video can be played; at the same time, the encrypted information can be sent to the first terminal device.
[0125] When the first terminal device receives the encrypted information returned by the second terminal device within a preset time period and the encrypted information passes the verification, it continues to send the interaction data, that is, it continues to send the key data and non-key data in the interaction data with key data in the form of data packets, as well as the interaction data without key data; otherwise (that is, when the first terminal device does not receive the encrypted information returned by the second terminal device within the preset time period, or when the first terminal device receives the encrypted information returned by the second terminal device within the preset time period but the encrypted information fails to pass the verification), it stops sending the interaction data, that is, it stops sending the key data and non-key data in the interaction data with key data, as well as the interaction data without key data. For example, in a screen mirroring scenario, it can stop screen mirroring and disconnect the screen mirroring connection with the second terminal device.
[0126] It can be understood that when the first terminal device does not receive the encrypted information returned by the second terminal device within the preset time period, or when the first terminal device receives the encrypted information returned by the second terminal device within the preset time period but the encrypted information fails to pass the verification, the first terminal device can also generate a prompt message, such as a text prompt message displayed on the display screen or an audio prompt message played by the speaker.
[0127] The present disclosure obtains the key data in the interaction data, encapsulates the key data into M first data packets, then encrypts N of the M first data packets, and sequentially sends the M first data packets to the second terminal device. Finally, it receives the encrypted information returned by the second terminal device and determines whether to continue sending the interaction data according to the encrypted information. Wherein, the encrypted information is obtained by the second terminal device decrypting the encrypted first data packet. Since N of the M first data packets encapsulating the key data in the interaction data are encrypted, after the M data packets are sent to the second terminal device, it can be determined whether the second terminal device has successfully decrypted the encrypted first data packet according to whether the second terminal device returns encrypted information that can pass the verification. Furthermore, it can be determined whether the data sent to the second terminal device is secure, and in the case of insecurity, stop sending the interaction data, thereby avoiding data leakage and ensuring data security.
[0128] In the present disclosure, some of the multiple first data packets obtained by encapsulation are encrypted, thereby reducing the computing load of the encryption process of the first terminal device and the computing load of the decryption process of the second terminal device, thus avoiding problems such as lag and disconnection. Moreover, the present disclosure further controls the subsequent data interaction of the first terminal device according to the decryption situation of the second terminal device for the encrypted first data packet, that is, continues the data interaction when the second terminal device successfully decrypts the encrypted first data packet, and stops the data interaction when the second terminal device fails to decrypt the encrypted first data packet, thereby avoiding the leakage of user information caused by the malicious application in the second terminal device being unable to decrypt the encrypted first data packet but still being able to obtain the unencrypted first data packet. Furthermore, the present disclosure encrypts the first N first data packets among the multiple first data packets, which can avoid the subsequent unencrypted data packets from being intercepted in the case of malicious application intercepting data, and maximally ensures data security.
[0129] In a second aspect, at least one embodiment of the present disclosure provides a data interaction method. Please refer to the appendix Figure 6 , which shows the flow of the method, including step S601 and step S503.
[0130] Among them, this method can be applied to a second terminal device. The second terminal device can be a television, a vehicle-mounted terminal, etc. The second terminal device can be the data destination in the data interaction scenario, that is, the receiving side. For example, in the scenario where a smartphone casts a screen to a television, the smartphone is the data source and the television is the data destination.
[0131] In step S601, receive M first data packets sent by the first terminal device, where the multiple first data packets are obtained by the first terminal device encapsulating the key data in the interaction data, and N of the M first data packets are encrypted by the first terminal device. M is a natural number greater than 1, N is greater than or equal to 1 and less than M.
[0132] The operations of the first terminal device for obtaining, encapsulating, encrypting, and sending the key data in this step have been introduced in detail in the embodiments of the first aspect, so they will not be repeated here.
[0133] In step S602, decrypt the N encrypted first data packets to obtain encrypted information.
[0134] First, the first data packets with encryption identifiers among the M first data packets can be determined as the first data packets that have undergone encryption processing. Next, decrypt the first data packets that have undergone encryption processing. After decryption, not only the decrypted first data packets are obtained, but also the encryption information added by the first terminal device during the decryption process is obtained.
[0135] After decrypting the N first data packets that have undergone encryption processing, the M first data packets can be parsed in sequence according to the reception order to obtain the key data, and the key data can be presented according to the presentation method of the key data. Exemplarily, if the non-key data is a picture, the image can be displayed; if the non-key data is a video, the video can be played.
[0136] In step S603, the encryption information is sent to the first terminal device so that the first terminal device continues to send the interaction data.
[0137] The operations of the first terminal device in receiving, verifying the encryption information and continuing or stopping sending the interaction data according to the verification result in this step have been introduced in detail in the embodiments of the first aspect, so they will not be repeated here.
[0138] In addition, the second terminal device can also receive a plurality of second data packets sent by the first terminal device, where the plurality of second data packets are obtained by the first terminal device encapsulating the non-key data in the interaction data; and the plurality of second data packets are parsed in sequence according to the reception order to obtain the non-key data; and the non-key data is presented according to the presentation method of the non-key data. Exemplarily, if the non-key data is a picture, the image can be displayed; if the non-key data is a video, the video can be played.
[0139] In addition, the second terminal device can also receive a plurality of third data packets sent by the first terminal device, where the plurality of third data packets are obtained by the first terminal device encapsulating the interaction data without key data; and the plurality of third data packets are parsed in sequence according to the reception order to obtain the interaction data; and the interaction data is presented according to the presentation method of the interaction data. Exemplarily, if the non-key data is a picture, the image can be displayed; if the non-key data is a video, the video can be played.
[0140] Reference can be made to the appendix Figure 7, which shows the processing flow of the second terminal device, Terminal B, after receiving the interaction data. After receiving the data, Terminal B first determines whether decryption is required; if decryption is not required, that is, the data is non-critical data in the interaction data with critical data or interaction data without critical data, then the data is parsed and displayed; if decryption is required, the data is encrypted, and the decrypted data is parsed and displayed. At the same time, the encryption information I is obtained during the decryption process, and then the encryption information I is sent to Terminal A, which is the first terminal device. Terminal A determines whether the information I is correct. If it is correct (i.e., passes the verification), the data is continued to be sent. If it is incorrect (i.e., fails the verification), the data sending is terminated.
[0141] Based on the display of the interaction data by the second terminal device, the user can operate on the display result of the interaction data, such as operating on the screen mirroring interface displayed by the second terminal device; the second terminal device can generate an interaction control instruction based on the operation of the user on the display result of the interaction data, and send the interaction control instruction to the first terminal device to enable the terminal device to continue to return the interaction data.
[0142] The data interaction methods introduced in the above two aspects can be combined to obtain the following data interaction method. In this data interaction method, the first terminal device continuously obtains interaction data according to the interaction control instruction (the interaction control instruction is generated based on the operation of the user on the first terminal device or the second terminal device), and sends the interaction data after encapsulation to the second terminal device. The second terminal device unpacks the received interaction data and then displays it, such as displaying a picture and playing audio and video, etc. There is critical data in the above interaction data, and the critical data involves user privacy or account information, so it needs to be encrypted for protection. Therefore, after encapsulating the critical data, a part of the obtained multiple first data packets is encrypted and then sent to the second terminal device. The second terminal device that receives the encrypted first data packet needs to decrypt it first, then unpack it, and then display it. At the same time, the encrypted first data packet in the critical data also serves as a security verification means in the data interaction process, that is, the encryption information is added during the encryption process of the first data packet, and the second terminal device will obtain the encryption information after decryption and return the encryption information to the first terminal device. Therefore, when the first terminal device receives the correct encryption information, it means that the current interaction process is safe and the data interaction can continue. When the first terminal device does not receive the correct encryption information, it means that the current interaction process is unsafe and the data interaction can be stopped.
[0143] According to the third aspect of the embodiments of the present disclosure, a data interaction device is provided, which is applied to the first terminal device. The first terminal performs screen mirroring interaction with the second terminal. Please refer to the appendix Figure 8 , the device includes:
[0144] The first acquisition module 801 is configured to acquire key data in the interaction data and encapsulate the key data into M first data packets, where M is a natural number greater than 1;
[0145] The encryption module 802 is configured to encrypt N first data packets among the M first data packets and sequentially send the M first data packets to a second terminal device, where N is greater than or equal to 1 and less than M;
[0146] The verification module 803 is configured to receive the encrypted information returned by the second terminal device and determine whether to continue sending the interaction data according to the encrypted information, where the encrypted information is obtained by the second terminal device decrypting the encrypted first data packet.
[0147] In some embodiments of the present disclosure, it further includes a determination module configured to:
[0148] Determine the interaction data according to the interaction control instruction, acquire the interaction data, and determine whether there is key data in the interaction data, where the interaction control instruction is generated based on the operation of the user on the first terminal device or the second terminal device;
[0149] The first acquisition module is specifically configured to:
[0150] In response to the existence of key data in the interaction data, acquire the key data in the interaction data.
[0151] In some embodiments of the present disclosure, when the determination module is configured to determine the interaction data according to the interaction control instruction and acquire the interaction data, it is specifically configured to:
[0152] Determine the interaction data according to the interaction control instruction and the application program to which the interaction data belongs;
[0153] Acquire the interaction data from the application program to which the interaction data belongs.
[0154] In some embodiments of the present disclosure, when the determination module is configured to determine whether there is key data in the interaction data, it is specifically configured to:
[0155] Determine whether there is data belonging to a preset key data list in the interaction data;
[0156] In response to the existence of data belonging to the preset key data list in the interaction data, determine that there is key data in the interaction data, and determine that the data belonging to the preset key data list in the interaction data is key data;
[0157] In response to the absence of data in the preset key data list from the interaction data, it is determined that there is no key data in the interaction data.
[0158] In some embodiments of the present disclosure, when the encryption module is used to encrypt N of the M first data packets, it is specifically used for:
[0159] Determine the encryption quantity N according to the M and the encryption ratio;
[0160] Encrypt the first N first data packets among the multiple first data packets.
[0161] In some embodiments of the present disclosure, it further includes a ratio module, which is used for:
[0162] Determine the encryption ratio according to the computing power of the first terminal device and the quality parameter of the data transmission link.
[0163] In some embodiments of the present disclosure, when the encryption module is used to encrypt N of the M first data packets, it is specifically used for:
[0164] Encrypt the encryption identifier, the encryption information, and the first data packet to obtain an encrypted first data packet, where the encryption identifier is used for the second terminal device to determine the encrypted first data packet from the multiple first data packets.
[0165] In some embodiments of the present disclosure, it further includes a second acquisition module, which is used for:
[0166] Acquire the non-key data in the interaction data, encapsulate the key data into multiple second data packets, and send the multiple second data packets to the second terminal device so that the second terminal device can parse and display the non-key data.
[0167] In some embodiments of the present disclosure, the interaction data includes video and / or audio.
[0168] According to the fourth aspect of the embodiments of the present disclosure, there is provided a data interaction device applied to a second terminal device. Please refer to the appendix Figure 9 , the device includes:
[0169] A receiving module 901, configured to receive M first data packets sent by a first terminal device, where the M first data packets are obtained by the first terminal device encapsulating the key data in the interaction data, and N of the M first data packets are encrypted by the first terminal device, M is a natural number greater than 1, N is greater than or equal to 1 and less than M;
[0170] The decryption module 902 is configured to decrypt the N first data packets that have been encrypted to obtain encrypted information;
[0171] The sending module 903 is configured to send the encrypted information to the first terminal device so that the first terminal device continues to send the interaction data.
[0172] In some embodiments of the present disclosure, it further includes an identification module for:
[0173] Before decrypting the N first data packets that have been encrypted to obtain encrypted information, determine the first data packets with an encryption identifier among the M first data packets as the first data packets that have been encrypted.
[0174] In some embodiments of the present disclosure, it further includes a first display module for:
[0175] After decrypting the N first data packets that have been encrypted, parse the M first data packets in sequence according to the reception order to obtain the key data;
[0176] Display the key data according to the display mode of the key data.
[0177] In some embodiments of the present disclosure, it further includes a first display module for:
[0178] Receive multiple second data packets sent by the first terminal device, where the multiple second data packets are obtained by the first terminal device encapsulating non-key data in the interaction data;
[0179] Parse the multiple second data packets in sequence according to the reception order to obtain the non-key data;
[0180] Display the non-key data according to the display mode of the non-key data.
[0181] In some embodiments of the present disclosure, it further includes a control module for:
[0182] Generate an interaction control instruction based on the user's operation on the display result of the interaction data;
[0183] Send the interaction control instruction to the first terminal device so that the terminal device continues to return the interaction data.
[0184] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments of the method in the first aspect, and will not be elaborated herein.
[0185] According to a fifth aspect of the embodiments of the present disclosure, please refer to the appendix Figure 10 , which exemplarily shows a block diagram of an electronic device. For example, the device 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0186] Referring to Figure 10 , the device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.
[0187] The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing element 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing unit 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0188] The memory 1004 is configured to store various types of data to support the operation of the device 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 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, a magnetic disk, or an optical disk.
[0189] The power component 1006 provides power to various components of the device 1000. The power component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
[0190] The multimedia component 1008 includes a screen that provides an output interface between the device 1000 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the device 1000 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0191] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) that is configured to receive external audio signals when the device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 further includes a speaker for outputting audio signals.
[0192] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0193] The sensor component 1014 includes one or more sensors for providing a status assessment of various aspects of the device 1000. For example, the sensor component 1014 can detect the on / off state of the device 1000, the relative positioning of components, such as the display and the keypad of the device 1000. The sensor component 1014 can also detect a change in the position of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, the orientation or acceleration / deceleration of the device 1000, and the temperature change of the device 1000. The sensor component 1014 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1014 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1014 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0194] The communication component 1016 is configured to facilitate communication between the device 1000 and other devices in a wired or wireless manner. The device 1000 can access a communication standard-based wireless network, such as WiFi, 2G or 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 1016 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 1016 further 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.
[0195] In an exemplary embodiment, the device 1000 can 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 for performing the power supply method of the above electronic device.
[0196] In a sixth aspect, in an exemplary embodiment of the present disclosure, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 1004 including instructions, and the above instructions can be executed by a processor 1020 of the device 1000 to complete the power supply method of the above electronic device. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0197] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0198] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A data interaction method, characterized in that, Applied to a first terminal device, the first terminal device performs screen mirroring interaction with a second terminal device, and the method includes: Obtain key data in the interaction data, and encapsulate the key data into M first data packets, where M is a natural number greater than 1; Encrypt N first data packets among the M first data packets, and sequentially send the M first data packets to the second terminal device, where N is greater than or equal to 1 and less than M; Receive the encryption information returned by the second terminal device, and determine whether to continue sending the interaction data according to the encryption information, where the encryption information is obtained by the second terminal device decrypting the encrypted first data packet; The encrypting N first data packets among the M first data packets includes: Determine N according to the M and the encryption ratio; Encrypt the first N first data packets among the M first data packets; The method further includes: Determine the encryption ratio according to the computing power of the first terminal device and the quality parameter of the data transmission link.
2. The data interaction method according to claim 1, wherein It also includes: Determine the interaction data according to the interaction control instruction, obtain the interaction data, and determine whether there is key data in the interaction data, where the interaction control instruction is generated based on the operation of the user on the first terminal device or the second terminal device; The obtaining key data in the interaction data includes: In response to the existence of key data in the interaction data, obtain the key data in the interaction data.
3. The data interaction method according to claim 2, wherein The determining the interaction data according to the interaction control instruction and obtaining the interaction data includes: Determine the interaction data and the application program to which the interaction data belongs according to the interaction control instruction; Obtain the interaction data from the application program to which the interaction data belongs.
4. The data interaction method according to claim 2, wherein The determining whether there is key data in the interaction data includes: Determine whether there is data belonging to a preset key data list in the interaction data; In response to the existence of data belonging to the preset key data list in the interaction data, determine that there is key data in the interaction data, and determine that the data belonging to the preset key data list in the interaction data is key data; In response to the non-existence of data in the preset key data list in the interaction data, determine that there is no key data in the interaction data.
5. The data interaction method according to claim 1, wherein The encrypting N first data packets among the M first data packets includes: Encrypt the encryption identifier, the encryption information, and the first data packet to obtain an encrypted first data packet, where the encryption identifier is used by the second terminal device to determine the encrypted first data packet from the multiple first data packets.
6. The data interaction method according to claim 1, wherein It also includes: Obtain non-key data in the interaction data, encapsulate the key data into multiple second data packets, and send the multiple second data packets to the second terminal device, so that the second terminal device parses and displays the non-key data.
7. The data interaction method according to any one of claims 1 to 6, characterized in that, The interaction data includes video and / or audio.
8. A data interaction method, characterized in that, Applied to a second terminal device, it includes: Receive M first data packets sent by a first terminal device, where the M first data packets are obtained by the first terminal device encapsulating key data in interactive data. The first N first data packets among the M first data packets are encrypted by the first terminal device. M is a natural number greater than 1, N is greater than or equal to 1 and less than M, and N is determined by the first terminal device according to M and an encryption ratio. The encryption ratio is determined according to the computing power of the first terminal device and the quality parameters of the data transmission link. Decrypt the N first data packets that have been encrypted to obtain encrypted information. Send the encrypted information to the first terminal device so that the first terminal device can continue to send the interactive data.
9. The data interaction method according to claim 8, wherein Before decrypting the N first data packets that have been encrypted to obtain encrypted information, it further includes: Determine the first data packets with an encryption identifier among the M first data packets as the encrypted first data packets.
10. The data interaction method according to claim 8, wherein After decrypting the N first data packets that have been encrypted, it further includes: Parse the M first data packets in the order of reception to obtain the key data. Display the key data according to the display method of the key data.
11. The data interaction method according to claim 8, wherein It further includes: Receive multiple second data packets sent by the first terminal device, where the multiple second data packets are obtained by the first terminal device encapsulating non-key data in interactive data. Parse the multiple second data packets in the order of reception to obtain the non-key data. Display the non-key data according to the display method of the non-key data.
12. The data interaction method according to claim 8, wherein It further includes: Generate an interactive control instruction based on the user's operation on the display result of the interactive data. Send the interactive control instruction to the first terminal device so that the terminal device can continue to return the interactive data.
13. A data interaction device, characterized in that, Applied to a first terminal device that performs screen mirroring interaction with a second terminal device, the device includes: A first acquisition module, configured to acquire key data in interactive data and encapsulate the key data into M first data packets, where M is a natural number greater than 1. An encryption module, configured to encrypt N first data packets among the M first data packets and sequentially send the M first data packets to the second terminal device, where N is greater than or equal to 1 and less than M. A verification module, configured to receive the encrypted information returned by the second terminal device and determine whether to continue sending the interactive data according to the encrypted information, where the encrypted information is obtained by the second terminal device decrypting the encrypted first data packets. When the encryption module is configured to encrypt N first data packets among the M first data packets, it specifically is configured to: Determine N according to M and an encryption ratio. Encrypt the first N first data packets among the M first data packets. The device further includes a ratio module, configured to: Determine the encryption ratio according to the computing power of the first terminal device and the quality parameters of the data transmission link.
14. The data interaction device according to claim 13, characterized in that, It further includes a determination module for: Determine interactive data according to an interactive control instruction, obtain the interactive data, and determine whether there is critical data in the interactive data, where the interactive control instruction is generated based on a user's operation on the first terminal device or the second terminal device; Specifically, the first acquisition module is used for: In response to the presence of critical data in the interactive data, obtain the critical data in the interactive data.
15. The data interaction device according to claim 14, wherein When the determination module is used to determine interactive data according to an interactive control instruction and obtain the interactive data, it is specifically used for: Determine interactive data according to an interactive control instruction and the application program to which the interactive data belongs; Obtain the interactive data from the application program to which the interactive data belongs.
16. The data interaction device according to claim 14, characterized in that When the determination module is used to determine whether there is critical data in the interactive data, it is specifically used for: Determine whether there is data belonging to a preset critical data list in the interactive data; In response to the presence of data belonging to the preset critical data list in the interactive data, determine that there is critical data in the interactive data, and determine that the data belonging to the preset critical data list in the interactive data is critical data; In response to the absence of data in the preset critical data list in the interactive data, determine that there is no critical data in the interactive data.
17. The data interaction device according to claim 13, wherein When the encryption module is used to encrypt N of the M first data packets, it is specifically used for: Perform encryption processing on the encryption identifier, the encryption information, and the first data packet to obtain an encrypted first data packet, where the encryption identifier is used by the second terminal device to determine the first data packet that has undergone encryption processing from the multiple first data packets.
18. The data interaction device according to claim 13, wherein It further includes a second acquisition module for: Obtain non-critical data in the interactive data, encapsulate critical data into multiple second data packets, and send the multiple second data packets to the second terminal device so that the second terminal device can parse and display the non-critical data.
19. The data interaction device according to any one of claims 13 to 18, characterized in that, The interactive data includes video and / or audio.
20. A data interaction device, characterized in that, Applied to a second terminal device, it includes: A receiving module for receiving M first data packets sent by a first terminal device, where the M first data packets are obtained by the first terminal device encapsulating critical data in interactive data, and the first N of the M first data packets have undergone encryption processing by the first terminal device, M is a natural number greater than 1, N is greater than or equal to 1 and less than M, and N is determined by the first terminal device according to M and the encryption ratio, and the encryption ratio is determined according to the computing power of the first terminal device and the quality parameters of the data transmission link; A decryption module for decrypting the N first data packets that have undergone encryption processing to obtain encryption information; A sending module for sending the encryption information to the first terminal device so that the first terminal device can continue to send the interactive data.
21. The data interaction device according to claim 20, wherein It further includes an identification module for: Before decrypting the N first data packets that have been encrypted to obtain the encrypted information, determine the first data packets with encryption identifiers among the M first data packets as the first data packets that have been encrypted.
22. The data interaction device according to claim 20, wherein It further includes a first display module for: After decrypting the N first data packets that have been encrypted, sequentially parse the M first data packets in the receiving order to obtain the key data; Display the key data according to the display mode of the key data.
23. The data interaction device according to claim 20, wherein It further includes a first display module for: Receive a plurality of second data packets sent by a first terminal device, where the plurality of second data packets are obtained by the first terminal device encapsulating non-key data in the interaction data; Sequentially parse the plurality of second data packets in the receiving order to obtain the non-key data; Display the non-key data according to the display mode of the non-key data.
24. The data interaction device according to claim 20, wherein It further includes a control module for: Generate an interaction control instruction based on a user's operation on the display result of the interaction data; Send the interaction control instruction to the first terminal device so that the terminal device continues to return the interaction data.
25. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory is used to store computer instructions that can run on the processor, and the processor is used to, when executing the computer instructions, perform the data interaction method according to any one of claims 1 to 12.
26. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Video data encryption transmission method, system and device, and storage medium
CN108769740A
Screen projection method, terminal and communication system
CN113965789A
Content encryption distribution system, control method of content encryption distribution system, encryption device, control method of encryption device, and control program of encryption device
JP2009302825A