Data transmission method and device, electronic equipment and medium
By passing the encrypted data to the server for decryption and processing during the encrypted communication process, the problem of low data transmission security in encrypted communication is solved, and higher security and lower complexity are achieved.
Patent Information
- Application Number
- CN202311083457.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-02-25
AI Technical Summary
During encrypted communication, the security of data transmission is still low, especially because private key certificates are easily stolen, resulting in high complexity of data transmission.
By performing data transmission between the second client and the server corresponding to the first client, the first client transmits the encrypted data transmission to the server without performing data analysis and processing. The server decrypts the encrypted data, obtains the target data and sends it to the first client to complete the data transmission.
It improves the security of data transmission, avoids private key leakage, reduces the complexity of data transmission, and enhances the reliability of data transmission.
Smart Images

Figure CN119520003A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a data transmission method, device, electronic device and medium. Background Art
[0002] At present, with the development of communication technology, data can be transmitted between clients in electronic devices to meet the needs of users. In order to improve the security of data transmission, encrypted communication is used between clients to prevent data from being tampered with during transmission. However, in the process of encrypted communication, the security of data transmission is still low. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a data transmission method, device, electronic device and medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a data transmission method is provided, which is applied to a first client, and the data transmission method includes:
[0005] In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server;
[0006] Receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
[0007] In some embodiments of the present disclosure, the transparent transmission of data between the second client and the server corresponding to the first client includes:
[0008] receiving the encrypted data sent by the second client;
[0009] Transmitting the encrypted data to the server;
[0010] Receiving first response data sent by the server for the encrypted data;
[0011] The first response data is transparently transmitted to the second client.
[0012] In some embodiments of the present disclosure, before receiving the encrypted data sent by the second client, transparently transmitting data between the second client and the server corresponding to the first client further includes:
[0013] Transmitting the first encrypted communication request to the server;
[0014] receiving second response data sent by the server to the first encrypted communication request;
[0015] The second response data is transparently transmitted to the second client.
[0016] In some embodiments of the present disclosure, the protocol for encrypted communication includes Hypertext Transfer Protocol Secure (HTTS SEC); and / or, the second client includes a browser.
[0017] According to a second aspect of an embodiment of the present disclosure, a data transmission method is provided, which is applied to a second client, and the data transmission method includes:
[0018] receiving a second encrypted communication request input by a user;
[0019] Determining a first client corresponding to the second encrypted communication request;
[0020] Perform data transmission with the first client so that the first client transparently transmits the encrypted data to a server corresponding to the first client.
[0021] In some embodiments of the present disclosure, before determining the first client corresponding to the second encrypted communication request, the data transmission method further includes:
[0022] The second encrypted communication request is parsed and processed to obtain the first encrypted communication request and target data.
[0023] According to a third aspect of an embodiment of the present disclosure, a data transmission method is provided, which is applied to a server, and the data transmission method includes:
[0024] Receiving encrypted data transparently transmitted by the first client;
[0025] Decrypting the encrypted data to obtain target data;
[0026] The target data is sent to the first client.
[0027] In some embodiments of the present disclosure, before sending the target data to the first client, the data transmission method further includes:
[0028] Sending first response data to the encrypted data to the first client, so that the first client transparently transmits the first response data to the second client.
[0029] In some embodiments of the present disclosure, before receiving the encrypted data transparently transmitted by the first client, the data transmission method further includes:
[0030] In response to the first encrypted communication request transparently transmitted by the first client, second response data for the first encrypted communication request is sent to the first client.
[0031] According to a fourth aspect of an embodiment of the present disclosure, a data transmission device is provided, which is applied to a first client, and the data transmission device includes:
[0032] a first transmission module configured to perform data transparent transmission between the second client and a server corresponding to the first client in response to a first encrypted communication request sent by the second client, so as to transmit encrypted data from the second client to the server;
[0033] The first receiving module is configured to receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
[0034] According to a fifth aspect of an embodiment of the present disclosure, a data transmission device is provided, which is applied to a second client, and the data transmission device includes:
[0035] A second receiving module is configured to receive a second encrypted communication request input by a user;
[0036] A determination module, configured to determine a first client corresponding to the second encrypted communication request;
[0037] The second transmission module is configured to perform data transmission with the first client, so that the first client transparently transmits the encrypted data to the server corresponding to the first client.
[0038] According to a sixth aspect of an embodiment of the present disclosure, there is provided an application to a server, wherein the data transmission device includes:
[0039] A third receiving module is configured to receive the encrypted data transparently transmitted by the first client;
[0040] A decryption module, configured to decrypt the encrypted data to obtain target data;
[0041] A sending module is configured to send the target data to the first client.
[0042] According to a seventh aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0043] processor;
[0044] a memory for storing instructions executable by the processor;
[0045] Wherein, the processor is configured to execute:
[0046] In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server;
[0047] Receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
[0048] According to an eighth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute:
[0049] In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server;
[0050] Receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
[0051] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0052] When the second client needs to transmit data with the first client, the second client sends a first encrypted communication request to the first client. In response to the first encrypted communication request, the first client transparently transmits data between the second client and the server corresponding to the first client without parsing and processing the data. After the first client transparently transmits the encrypted data to the server, the server decrypts the encrypted data, obtains the target data and sends it to the first client to complete the data transmission between the second client and the first client. The encrypted data is decrypted by the server and the decrypted target data is sent to the first client. The first client only transparently transmits the data without decrypting the encrypted data, avoiding the leakage of the private key used for decryption to improve the security of data transmission.
[0053] 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
[0054] 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.
[0055] Figure 1 is a flowchart of a data transmission method according to an exemplary embodiment;
[0056] Figure 2 is a flowchart of a data transmission method according to another exemplary embodiment;
[0057] Figure 3 is a flowchart of a data transmission method according to another exemplary embodiment;
[0058] Figure 4 is a flowchart of a data transmission method according to another exemplary embodiment;
[0059] Figure 5 is a flowchart of a data transmission method according to another exemplary embodiment;
[0060] Figure 6 is a flowchart of a data transmission method according to another exemplary embodiment;
[0061] Figure 7 is a flowchart of a data transmission method according to another exemplary embodiment;
[0062] Figure 8 is a flowchart of a data transmission method according to another exemplary embodiment;
[0063] Fig. 9 is a flowchart of a data transmission method according to another exemplary embodiment;
[0064] Fig.10 is a flowchart of a data transmission method according to another exemplary embodiment;
[0065] Fig.11 is a block diagram of a data transmission device according to an exemplary embodiment;
[0066] Fig.12 is a block diagram of a data transmission device according to another exemplary embodiment;
[0067] Fig.13 is a block diagram of a data transmission device according to another exemplary embodiment;
[0068] Fig.14 is a block diagram of an electronic device according to an exemplary embodiment.
[0069] In the figure:
[0070] 100-first transmission module; 110-first receiving module; 200-second receiving module; 210-determination module; 220-second transmission module; 300-third receiving module; 310-decryption module; 320-sending module; 400-electronic device; 402-processing component; 404-memory; 406-power component; 408-multimedia component; 410-audio component; 412-input and output interface; 414-sensor component; 416-communication component; 420-processor. DETAILED DESCRIPTION
[0071] 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, 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. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0072] At present, with the development of communication technology, data can be transmitted between clients in electronic devices to meet the needs of users. For example, data synchronization is required between clients, and the data in the address of the web page accessed in the client is provided by other clients. In the process of data transmission, the commonly used methods are non-encrypted communication methods and encrypted communication methods. For example, the protocol of non-encrypted communication may include Hypertext Transfer Protocol (HTTP), etc., and the encrypted communication protocol may include Hypertext Transfer Protocol Secure (HTTPS), etc. In order to improve the security of data transmission, encrypted communication is used between clients to transmit data to prevent data from being tampered with during transmission. In order to decrypt the encrypted data in the encrypted communication process, it is necessary to set a private key certificate in the client by presetting, dynamic generation, etc., and the corresponding public key needs to be set in the trusted list of other clients or systems. However, since the client is installed in the electronic device, the private key certificate is easy to be stolen, and the security of data transmission is still low. In addition, when the private key certificate is set by dynamic generation, etc., operations such as public key import need to be performed, and the complexity of data transmission is high.
[0073] In order to solve the above technical problems, the present invention provides a data transmission method. During the process of encrypted communication between the second client and the first client, the first client only transmits data between the second client and the server without parsing and processing the data. Since the private key certificate does not need to be set on the client, the private key certificate is prevented from being stolen, thereby improving the security of data transmission. The server decrypts the encrypted data using the private key and sends it to the first client to complete the data transmission between the second client and the first client. Since the private key certificate is set on the server, the private key certificate is difficult to be stolen, thereby further improving the security of data transmission. At the same time, since there is no need to perform operations such as public key import, the complexity of data transmission is reduced.
[0074] The present disclosure provides a data transmission method, which is applied to a first client. Figure 1 As shown, the method includes:
[0075] S100: In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server.
[0076] S110. Receive target data sent by the server, where the target data is obtained by decrypting the encrypted data by the server.
[0077] In this embodiment, when the second client needs to transmit data with the first client, the second client sends a first encrypted communication request to the first client. In response to the first encrypted communication request, the first client transparently transmits data between the second client and the server corresponding to the first client without parsing and processing the data. After the first client transparently transmits the encrypted data to the server, the server decrypts the encrypted data, obtains the target data and sends it to the first client to complete the data transmission between the second client and the first client. The encrypted data is decrypted by the server and the decrypted target data is sent to the first client. The first client only transparently transmits the data without decrypting the encrypted data, avoiding the leakage of the private key used for decryption to improve the security of data transmission.
[0078] Exemplarily, the data transparent transmission between the second client and the server corresponding to the first client in step S100 means that when the first client receives data sent by the second client, the data sent by the second client is directly sent to the server without parsing and processing the data sent by the second client; when the first client receives data sent by the server, the data sent by the server is directly sent to the second client without parsing and processing the data sent by the server.
[0079] In one embodiment, if Figure 2As shown, the data transparent transmission between the second client and the server corresponding to the first client in step S100 is determined by:
[0080] S101: Receive encrypted data sent by a second client.
[0081] S102, transparently transmit the encrypted data to the server.
[0082] S103: Receive first response data for the encrypted data sent by the server.
[0083] S104: Transmit the first response data to the second client.
[0084] In this embodiment, during the data transmission process, the encrypted data sent by the second client is received, and the encrypted data is transparently transmitted to the server without parsing and processing the encrypted data. The first response data sent by the server for the encrypted data is received, and the first response data is transparently transmitted to the second client without parsing and processing the first response data. By transparently transmitting the encrypted data directly to the server and transparently transmitting the first response data directly to the second client, the first client and the server perform data parsing and processing, avoiding the leakage of the private key to improve the security of data transmission.
[0085] In one embodiment, if Figure 3 As shown, before receiving the encrypted data sent by the second client in step S101, transparently transmitting data between the second client and the server corresponding to the first client in step S100 further includes:
[0086] S105: Transmit the first encrypted communication request to the server.
[0087] S106. Receive second response data sent by the server to the first encrypted communication request.
[0088] S107: Transmit the second response data to the second client.
[0089] In this embodiment, before the encrypted data is transmitted, the first encrypted communication request and the second response data are transparently transmitted between the second client and the server to establish an encrypted communication connection. After the encrypted communication connection is established, the encrypted data is transparently transmitted to avoid the server from being unable to decrypt the encrypted data, thereby improving the reliability of data transmission.
[0090] In one embodiment, the protocol for encrypted communication includes Hypertext Transfer Protocol Secure.
[0091] In this embodiment, by using the Hypertext Transfer Protocol Security as the protocol for encrypted communication, a wide number of clients are applicable to encrypted communication, thereby improving the compatibility of data transmission.
[0092] In one embodiment, the second client includes a browser.
[0093] In this embodiment, a browser is used as the second client, and the user can implement the expected function by inputting the webpage address through the browser, thereby reducing the complexity of user operation. Since most electronic devices are pre-installed with a browser, using a browser as the second client facilitates data transmission with other clients, thereby improving the versatility of data transmission.
[0094] It is understandable that, in addition to using a browser as the second client, other clients having a web page address access function may also be used as the second client, which is not limited here.
[0095] The present disclosure provides a data transmission method, which is applied to a first client. Figure 4 As shown, the method includes:
[0096] S200. In response to a first encrypted communication request sent by a second client, transparently transmit the first encrypted communication request to a server.
[0097] S210. Receive second response data sent by the server to the first encrypted communication request.
[0098] S220: Transmit the second response data to the second client.
[0099] S230: Receive encrypted data sent by the second client.
[0100] S240, transparently transmit the encrypted data to the server.
[0101] S250: Receive first response data for the encrypted data sent by the server.
[0102] S260: Transmit the first response data to the second client.
[0103] S270: Receive target data sent by the server.
[0104] In this embodiment, when the second client needs to transmit data with the first client, in response to the first encrypted communication request sent by the second client, the first encrypted communication request is transparently transmitted to the server. After receiving the second response data sent by the server, the second response data is transparently transmitted to the second client to establish an encrypted communication connection. After the encrypted communication connection is established, the encrypted data sent by the second client is received, and the encrypted data is transparently transmitted to the server so that the server decrypts the encrypted data. The first response data sent by the server for the encrypted data is received, and the first response data is transparently transmitted to the second client so that the first client ends the encrypted communication process. After the encrypted communication process ends, the target data sent by the server is received so that the target data is transmitted from the second client to the first client. The encrypted data is decrypted by the server and the decrypted target data is sent to the first client. The first client only transparently transmits the data without decrypting the encrypted data, thereby avoiding the leakage of the private key used for decryption to improve the security of data transmission.
[0105] The present disclosure provides a data transmission method, which is applied to a second client. Figure 5 As shown, the method includes:
[0106] S300: Receive a second encrypted communication request input by a user.
[0107] S310: Determine a first client corresponding to the second encrypted communication request.
[0108] S320: Perform data transmission with the first client, so that the first client transparently transmits the encrypted data to the server corresponding to the first client.
[0109] In this embodiment, when the user operates the second client, a second encrypted communication request is input to the second client. The second client receives the second encrypted communication request input by the user, determines the corresponding first client, and performs data transmission with the first client. During the data transmission process, the encrypted data to be transmitted to the first client is sent to the first client, so that the first client transmits the encrypted data to the corresponding server for decryption and transmits the decrypted target data to the first client to complete the data transmission. Since the first client enables the second client and the server to perform data analysis and processing in a data transparent transmission manner, the second client does not need to import the public key additionally, thereby reducing the complexity of data transmission.
[0110] In one embodiment, if Figure 6 As shown, the data transmission with the first client in step S320 is determined in the following manner:
[0111] S321. Encrypt the target data to obtain encrypted data.
[0112] S322: Send the encrypted data to the first client.
[0113] S323: Receive first response data transparently transmitted by the first client for the encrypted data.
[0114] S324. Close the communication port.
[0115] In this embodiment, during the encrypted communication process, the target data to be transmitted to the first client is encrypted to obtain encrypted data to prevent the target data from being tampered with. The encrypted data is sent to the first client, and after receiving the first response data, the communication port is closed. By closing the communication port after the encrypted communication is completed, the second client is prevented from continuing to communicate with the first client to transparently transmit the target data, thereby improving the reliability of data transmission.
[0116] In one embodiment, before determining the first client corresponding to the second encrypted communication request in step S310, the data transmission method further includes:
[0117] The second encrypted communication request is parsed and processed to obtain the first encrypted communication request and target data.
[0118] Before encrypting the target data to obtain the encrypted data in step S321, the data transmission with the first client in step S320 further includes:
[0119] A first encrypted communication request is sent to the first client.
[0120] Receive second response data transparently transmitted by the first client to the first encrypted communication request.
[0121] In this embodiment, before the encrypted data is transmitted, the second encrypted communication request is parsed and processed to obtain the first encrypted communication request and the target data. According to the parsing and processing of the second encrypted communication request, the first client corresponding to the second encrypted communication request is determined. The first encrypted communication request is sent to the first client, and the second response data transparently transmitted by the first client is received to establish an encrypted communication connection. After the encrypted communication connection is established, the target data is encrypted and transmitted to avoid being unable to determine how to encrypt the target data, thereby improving the reliability of data transmission.
[0122] Exemplarily, the second response data includes a public key, and the public key is used to encrypt the target data to obtain encrypted data.
[0123] The present disclosure provides a data transmission method, which is applied to a second client. Figure 7 As shown, the method includes:
[0124] S400: Receive a second encrypted communication request input by a user.
[0125] S410: Parse and process the second encrypted communication request to obtain the first encrypted communication request and target data.
[0126] S420: Determine the first client corresponding to the second encrypted communication request.
[0127] S430: Send a first encrypted communication request to the first client.
[0128] S440: Receive second response data transparently transmitted by the first client to the first encrypted communication request.
[0129] S450: Encrypt the target data to obtain encrypted data.
[0130] S460: Send the encrypted data to the first client.
[0131] S470: Receive first response data transparently transmitted by the first client to the encrypted data.
[0132] S480. Close the communication port.
[0133] In this embodiment, when the user operates the second client, a second encrypted communication request is input to the second client. The second client parses and processes the second encrypted communication request, obtains the first encrypted communication request and the target data, and determines the first client to which the target data needs to be transmitted. The first encrypted communication request is sent to the first client, and the second response data transparently transmitted by the first client is received to establish an encrypted communication connection. The target data is encrypted, and the obtained encrypted data is sent to the first client so that the server decrypts the encrypted data and transmits the target data to the first client. The first response data transparently transmitted by the first client is received, and it is determined that the encrypted communication process is over, and the communication port is closed to prevent the first client from transparently transmitting the target data. Since the first client enables the second client and the server to parse and process the data in a data transparent manner, the second client does not need to import an additional public key, thereby reducing the complexity of data transmission.
[0134] The present disclosure provides a data transmission method, which is applied to a server, such as Figure 8 As shown, the method includes:
[0135] S500: Receive encrypted data transparently transmitted by the first client.
[0136] S510: Decrypt the encrypted data to obtain target data.
[0137] S520: Send the target data to the first client.
[0138] In this embodiment, when the second client receives the second encrypted communication request input by the user, the second client transparently transmits the encrypted data to the server through the first client, and receives the encrypted data transparently transmitted by the first client. The encrypted data is decrypted using the private key, and the decrypted target data is sent to the first client to complete the data transmission between the second client and the first client. Since the encrypted data is decrypted using the private key of the server, the risk of private key leakage is reduced, thereby improving the security of data transmission.
[0139] In one embodiment, before sending the target data to the first client in step S520, the data transmission method further includes:
[0140] Sending first response data to the encrypted data to the first client, so that the first client transparently transmits the first response data to the second client.
[0141] In this embodiment, the first client transparently transmits the first response data to the second client, so that the second client closes the communication port, and determines that the encrypted communication process is completed. After sending the first response data to the encrypted data to the first client, the target data is sent to the first client to prevent the first client from transparently transmitting the target data to the second client, thereby improving the reliability of data transmission.
[0142] In one embodiment, before receiving the encrypted data transparently transmitted by the first client in step S500, the data transmission method further includes:
[0143] In response to the first encrypted communication request transparently transmitted by the first client, second response data for the first encrypted communication request is sent to the first client.
[0144] In this embodiment, by responding to the first encrypted communication request transparently transmitted by the first client, second response data is sent to the first client to establish an encrypted communication connection, thereby avoiding failure to decrypt the encrypted data to improve the reliability of data transmission.
[0145] The present disclosure provides a data transmission method, which is applied to a server, such as Fig. 9 As shown, the method includes:
[0146] S600: In response to the first encrypted communication request transparently transmitted by the first client, second response data for the first encrypted communication request is sent to the first client.
[0147] S610: Receive encrypted data transparently transmitted by the first client.
[0148] S620: Decrypt the encrypted data to obtain target data.
[0149] S630: Send first response data for the encrypted data to the first client.
[0150] S640: Send the target data to the first client.
[0151] In this embodiment, in response to the first encrypted communication request transparently transmitted by the first client, an encrypted communication connection needs to be established, and the second response data needs to be sent to the first client. After the encrypted communication connection is established, the received encrypted data is decrypted to obtain the target data. The first response data is sent to the first client, so that the second client closes the communication port and ends the encrypted communication process. After the encrypted communication process ends, the target data is sent to the first client to complete the data transmission between the second client and the first client. Since the encrypted data is decrypted by the private key of the server, the risk of private key leakage is reduced, thereby improving the security of data transmission.
[0152] The present disclosure provides a data transmission method. Fig.10 As shown, the method includes:
[0153] S700: The second client receives a second encrypted communication request input by a user.
[0154] S710: The second client parses and processes the second encrypted communication request to obtain the first encrypted communication request and target data.
[0155] S720: The second client determines the first client corresponding to the second encrypted communication request.
[0156] S730: The second client sends a first encrypted communication request to the first client.
[0157] S740: The first client transparently transmits the received first encrypted communication request to the server.
[0158] S750: The server sends second response data to the first client.
[0159] S760: The first client transparently transmits the received second response data to the second client.
[0160] S770. The second client encrypts the target data to obtain encrypted data.
[0161] S780: The second client sends the encrypted data to the first client.
[0162] S790. The first client transparently transmits the received encrypted data to the server.
[0163] S800. The server decrypts the encrypted data to obtain target data.
[0164] S810. The server sends first response data to the first client.
[0165] S820: The first client transparently transmits the received first response data to the second client.
[0166] S830: The second client closes the communication port.
[0167] S840: The server sends the target data to the first client.
[0168] In this embodiment, when the user operates the second client, the second encrypted communication request is input to the second client. The second client parses and processes the second encrypted communication request, obtains the first encrypted communication request and the target data, and determines the first client corresponding to the second encrypted communication request. The first client transparently transmits the first encrypted communication request to the server, and transparently transmits the second response data to the second client to establish an encrypted communication connection. The second client encrypts the target data, and transparently transmits the encrypted data to the server through the first client. The server decrypts the encrypted data, and transparently transmits the first response data to the second client through the first client to end the encrypted communication process. After the encrypted communication process ends, the server sends the target data to the first client to complete the data transmission between the second client and the first client. The encrypted data is decrypted by the server and the decrypted target data is sent to the first client. The first client only transparently transmits the data without decrypting the encrypted data, avoiding the leakage of the private key used for decryption to improve the security of data transmission. At the same time, since the first client enables the second client and the server to perform data parsing and processing in a data transparent transmission manner, the second client does not need to import the public key additionally, thereby reducing the complexity of data transmission.
[0169] In an exemplary embodiment, a data transmission device is provided, which is applied to a first client and is used to implement the above method. Fig.11 As shown, the data transmission device may include a first transmission module 100 and a first receiving module 110, wherein, in the process of implementing the above method,
[0170] The first transmission module 100 is configured to perform data transparent transmission between the second client and a server corresponding to the first client in response to a first encrypted communication request sent by the second client, so as to transmit encrypted data from the second client to the server.
[0171] The first receiving module 110 is configured to receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
[0172] In an exemplary embodiment, a data transmission device is provided, in which a first transmission module 100 is configured to:
[0173] Receive encrypted data sent by the second client.
[0174] Transmit the encrypted data to the server.
[0175] The first response data for the encrypted data sent by the receiving server.
[0176] The first response data is transparently transmitted to the second client.
[0177] In an exemplary embodiment, a data transmission device is provided, in which a first transmission module 100 is configured to:
[0178] The first encrypted communication request is transparently transmitted to the server.
[0179] Second response data for the first encrypted communication request sent by the server is received.
[0180] The second response data is transparently transmitted to the second client.
[0181] In an exemplary embodiment, a data transmission device is provided, which is applied to a second client and is used to implement the above method. Fig.12 As shown, the data transmission device may include a second receiving module 200, a determining module 210 and a second transmission module 220, wherein, in the process of implementing the above method,
[0182] The second receiving module 200 is configured to receive a second encrypted communication request input by a user.
[0183] The determination module 210 is configured to determine the first client corresponding to the second encrypted communication request.
[0184] The second transmission module 220 is configured to perform data transmission with the first client, so that the first client transparently transmits the encrypted data to the server corresponding to the first client.
[0185] In an exemplary embodiment, a data transmission device is provided, in which the second transmission module 220 is configured to:
[0186] The target data is encrypted to obtain encrypted data.
[0187] The encrypted data is sent to the first client.
[0188] Receive first response data transparently transmitted by the first client for the encrypted data.
[0189] Close the communication port.
[0190] In an exemplary embodiment, a data transmission device is provided, the device further comprising:
[0191] The processing module is configured to parse and process the second encrypted communication request to obtain the first encrypted communication request and target data.
[0192] In an exemplary embodiment, a data transmission device is provided, in which the second transmission module 220 is configured to:
[0193] A first encrypted communication request is sent to the first client.
[0194] Receive second response data transparently transmitted by the first client to the first encrypted communication request.
[0195] In an exemplary embodiment, a data transmission device is provided, which is applied to a server and is used to implement the above method. Fig.13 As shown, the data transmission device may include a third receiving module 300, a decryption module 310 and a sending module 320, wherein, in the process of implementing the above method,
[0196] The third receiving module 300 is configured to receive the encrypted data transparently transmitted by the first client.
[0197] The decryption module 310 is configured to decrypt the encrypted data to obtain target data.
[0198] The sending module 320 is configured to send the target data to the first client.
[0199] In an exemplary embodiment, a data transmission device is provided, in which a sending module 320 is configured to:
[0200] Sending first response data to the encrypted data to the first client, so that the first client transparently transmits the first response data to the second client.
[0201] In an exemplary embodiment, a data transmission device is provided, in which a sending module 320 is configured to:
[0202] In response to the first encrypted communication request transparently transmitted by the first client, second response data for the first encrypted communication request is sent to the first client.
[0203] In an exemplary embodiment, an electronic device is provided, and the electronic device is, for example, a mobile phone, a laptop computer, a tablet computer, a wearable device, etc.
[0204] refer to Fig.14As shown, electronic device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0205] The processing component 402 generally controls the overall operation of the electronic device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0206] The memory 404 is configured to store various types of data to support operations on the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage terminal 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.
[0207] The power supply component 406 provides power to the various components of the electronic device 400. The power supply component 406 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 400.
[0208] The multimedia component 408 includes a screen that provides an output interface between the electronic device 400 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 408 includes a front camera module and / or a rear camera module. When the electronic device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera module and / or the rear camera module may receive external multimedia data. Each front camera module and the rear camera module may be a fixed optical lens system or have a focal length and optical zoom capability.
[0209] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the electronic device 400 is in an operating 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 memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0210] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as 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.
[0211] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 can detect the open / closed state of the electronic device 400, the relative positioning of components, such as the display and keypad of the electronic device 400, and the sensor assembly 414 can also detect the position change of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration / deceleration of the electronic device 400, and the temperature change of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 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 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0212] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other terminals. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 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 416 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.
[0213] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned data transmission method applied to the first client and the second client.
[0214] In an exemplary embodiment, a server is also provided, and the server is used to execute the data transmission method described above.
[0215] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the above instructions can be executed by the processor 420 of the electronic device 400 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, and an optical data storage terminal. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the method shown in the above embodiment.
[0216] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0217] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0218] 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. A data transmission method, applied to a first client, characterized in that: The data transmission method comprises: In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server; Receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
2. The data transmission method according to claim 1, characterized in that: The transparent transmission of data between the second client and the server corresponding to the first client includes: receiving the encrypted data sent by the second client; Transmitting the encrypted data to the server; Receiving first response data sent by the server for the encrypted data; The first response data is transparently transmitted to the second client.
3. The data transmission method according to claim 2, characterized in that: Before receiving the encrypted data sent by the second client, transparently transmitting data between the second client and the server corresponding to the first client further includes: Transmitting the first encrypted communication request to the server; receiving second response data sent by the server to the first encrypted communication request; The second response data is transparently transmitted to the second client.
4. The data transmission method according to any one of claims 1 to 3, characterized in that: The protocol for encrypted communication includes Hypertext Transfer Protocol Secure (HTTS Secure) and / or the second client includes a browser.
5. A data transmission method, applied to a second client, characterized in that: The data transmission method comprises: receiving a second encrypted communication request input by a user; Determining a first client corresponding to the second encrypted communication request; Perform data transmission with the first client so that the first client transparently transmits the encrypted data to a server corresponding to the first client.
6. The data transmission method according to claim 5, characterized in that: Before determining the first client corresponding to the second encrypted communication request, the data transmission method further includes: The second encrypted communication request is parsed and processed to obtain the first encrypted communication request and target data.
7. A data transmission method, applied to a server, characterized in that: The data transmission method comprises: Receiving encrypted data transparently transmitted by the first client; Decrypting the encrypted data to obtain target data; The target data is sent to the first client.
8. The data transmission method according to claim 7, characterized in that: Before sending the target data to the first client, the data transmission method further includes: Sending first response data to the encrypted data to the first client, so that the first client transparently transmits the first response data to the second client.
9. The data transmission method according to claim 7 or 8, characterized in that: Before receiving the encrypted data transparently transmitted by the first client, the data transmission method further includes: In response to the first encrypted communication request transparently transmitted by the first client, second response data for the first encrypted communication request is sent to the first client.
10. A data transmission device, applied to a first client, characterized in that: The data transmission device comprises: a first transmission module configured to perform data transparent transmission between the second client and a server corresponding to the first client in response to a first encrypted communication request sent by the second client, so as to transmit encrypted data from the second client to the server; The first receiving module is configured to receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
11. A data transmission device, applied to a second client, characterized in that: The data transmission device comprises: A second receiving module is configured to receive a second encrypted communication request input by a user; A determination module, configured to determine a first client corresponding to the second encrypted communication request; The second transmission module is configured to perform data transmission with the first client, so that the first client transparently transmits the encrypted data to the server corresponding to the first client.
12. A data transmission device, applied to a server, characterized in that: The data transmission device comprises: A third receiving module is configured to receive the encrypted data transparently transmitted by the first client; A decryption module, configured to decrypt the encrypted data to obtain target data; A sending module is configured to send the target data to the first client.
13. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute: In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server; Receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.
14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute: In response to a first encrypted communication request sent by a second client, data transparent transmission is performed between the second client and a server corresponding to the first client, so as to transmit encrypted data from the second client to the server; Receive target data sent by the server, where the target data is obtained by the server decrypting the encrypted data.