Data transmission method and device, computer device and storage medium

By encrypting the data before transmission and decrypting and saving it at the receiving end, the security and efficiency issues of cross-terminal data pasting are solved, and the security and pasting efficiency of data during transmission are improved.

CN119416236BActive Publication Date: 2026-05-22PING AN BANK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN BANK CO LTD
Filing Date
2024-10-22
Publication Date
2026-05-22

AI Technical Summary

Technical Problem

Existing cross-device data pasting solutions require manual copying and display of data on instant messaging tools, which affects data security and pasting efficiency.

Method used

The target data is encrypted before being sent, and saved directly to the clipboard at the receiving end using preset encryption and decryption rules, thus avoiding data display and copying operations.

Benefits of technology

It improves the security of data transmission, reduces data exposure, and saves data directly to the receiving end's clipboard, thus improving pasting efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119416236B_ABST
    Figure CN119416236B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of artificial intelligence, and discloses a data transmission method and device, computer equipment and a storage medium, which comprise the following steps: in response to a user generating target data in a data to-be-sent area in a first terminal, generating the target data in the data to-be-sent area; in response to the user selecting a sending target of the data to-be-sent area, determining a target sending object identifier from a plurality of preset candidate sending object identifiers; in response to the user sending the data to-be-sent area, performing an encryption operation on the target data according to a preset encryption rule to obtain encrypted data; and sending the encrypted data to a second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, the second terminal performs a decryption operation on the encrypted data according to a preset decryption rule to obtain the target data and saves the target data on a pasteboard of the second terminal. The security of the data to be pasted and the data pasting efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a data transmission method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the development of computer technology, copy and paste technology emerged. Copy and paste technology refers to the ability of users to copy data using a computer and paste the copied data to the target location.

[0003] In daily life, users often need to use the above-mentioned copy and paste technology to paste content across devices. For example, they may receive content (such as web links) sent by others through instant messaging tools installed on mobile phones or other devices, then manually copy the content to the clipboard, and then open the corresponding software (such as a browser) to paste it.

[0004] However, the aforementioned cross-terminal content pasting solution requires the terminal to receive and display the content to be copied and pasted through an instant messaging tool before the user can manually copy the content displayed on the instant messaging tool to the clipboard. Displaying the content on the instant messaging tool increases the exposure of the data, affecting data security. Moreover, requiring the content to be manually copied before pasting the data reduces pasting efficiency. Summary of the Invention

[0005] This application provides a data transmission method, apparatus, computer equipment, and storage medium, which can improve the security of the data to be pasted and the efficiency of data pasting.

[0006] In a first aspect, a data transmission method is provided, the method being applied to a first terminal, the method comprising:

[0007] In response to a user's operation to generate target data for a data-to-send area in the first terminal, target data is generated in the data-to-send area.

[0008] In response to the user's operation of selecting a sending target for the data to be sent area, a target sending object identifier is determined from a plurality of preset candidate sending object identifiers;

[0009] In response to a user's data transmission operation targeting the data to be sent area, the target data is encrypted according to a preset encryption rule to obtain encrypted data;

[0010] The encrypted data is sent to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to the preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal.

[0011] Secondly, a data transmission method is provided, the method being applied to a second terminal, the method comprising:

[0012] The encrypted data sent by the first terminal is obtained, wherein the encrypted data is the data obtained by the first terminal encrypting the target data according to the preset encryption rules, and the target data is the data in the data to be sent area of ​​the first terminal;

[0013] The encrypted data is decrypted according to a preset decryption rule to obtain the target data;

[0014] Save the target data to the clipboard.

[0015] Thirdly, a first data transmission device is provided, the first data transmission device being deployed on a first terminal, the first data transmission device comprising:

[0016] The generation unit is configured to generate target data in the data to be sent area in response to a user's target data generation operation for the data to be sent area in the first terminal.

[0017] The determining unit is configured to determine the target sending object identifier from a plurality of preset candidate sending object identifiers in response to a user's sending target selection operation for the data to be sent area;

[0018] An encryption unit is used to respond to a user's data transmission operation for the data to be sent area by encrypting the target data according to a preset encryption rule to obtain encrypted data.

[0019] The sending unit is used to send the encrypted data to a second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to a preset decryption rule to obtain the target data, and saves the target data to the clipboard of the second terminal.

[0020] Fourthly, a second data transmission device is provided, the second data transmission device being deployed on a second terminal, the second data transmission device comprising:

[0021] The acquisition unit is used to acquire encrypted data sent by the first terminal, wherein the encrypted data is data obtained by the first terminal encrypting target data according to a preset encryption rule, and the target data is data in the data to be sent area of ​​the first terminal;

[0022] The decryption unit is used to decrypt the encrypted data according to a preset decryption rule to obtain the target data;

[0023] A storage unit is used to save the target data to the clipboard.

[0024] Fifthly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the data transmission method mentioned in the first or second aspect above.

[0025] In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps of the data transmission method mentioned in the first or second aspect above.

[0026] In the aforementioned data transmission method, apparatus, computer equipment, and storage medium, the following steps are implemented: In response to a user's operation to generate target data in the data to be sent area of ​​the first terminal, target data is generated in the data to be sent area; in response to a user's operation to select a sending target in the data to be sent area, a target sending object identifier is determined from a plurality of preset candidate sending object identifiers; in response to a user's data sending operation in the data to be sent area, the target data is encrypted according to preset encryption rules to obtain encrypted data; the encrypted data is sent to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal. In this application, the first terminal encrypts the data to be sent before sending it to the second terminal, thereby improving the security of the data during transmission. In addition, when the second terminal receives the encrypted data sent by the first terminal, it decrypts the encrypted data to obtain the target data and saves the target data directly to the clipboard of the second terminal. There is no need to display the target data (the data to be pasted) before copying it, which reduces the exposure rate of the data to be pasted and further improves the security of the data. Moreover, since the second terminal saves the target data directly to the clipboard, the user can directly paste the data on the clipboard without copying the data before pasting, which improves the efficiency of pasting the data. Attached Figure Description

[0027] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a schematic diagram of an application environment for a data transmission method according to an embodiment of this application;

[0029] Figure 2This is a schematic diagram of another application environment for the data transmission method in one embodiment of this application;

[0030] Figure 3 This is a flowchart illustrating a data transmission method in one embodiment of this application;

[0031] Figure 4 This is a schematic diagram of a sub-process of the data transmission method in one embodiment of this application;

[0032] Figure 5 This is a flowchart illustrating a data transmission method in another embodiment of this application;

[0033] Figure 6 This is a schematic diagram of the structure of a first data transmission device in one embodiment of this application;

[0034] Figure 7 This is a schematic diagram of the structure of a second data transmission device in one embodiment of this application;

[0035] Figure 8 This is a schematic diagram of the structure of a computer device according to one embodiment of this application. Detailed Implementation

[0036] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0037] The data transmission method provided in this application embodiment can be applied to, for example, Figure 1 or Figure 2 In the application environment, among which, Figure 1 In the application environment shown, the first terminal and the second terminal can communicate directly. For example, the first terminal and the second terminal can pre-connect via Bluetooth and then communicate through Bluetooth transmission technology. Figure 2In the application environment shown, both the first terminal and the second terminal have the same target application installed. For ease of understanding, this application can be understood as an instant messaging tool such as WeChat or an internal bank chat software. The first terminal and the second terminal then communicate through the target server corresponding to the target application. Specifically, in response to a user's operation to generate target data in the data waiting-to-send area of ​​the first terminal, the first terminal generates target data in the data waiting-to-send area; in response to a user's operation to select a sending target in the data waiting-to-send area, it determines a target sending object identifier from a set of preset candidate sending object identifiers; in response to a user's operation to send data in the data waiting-to-send area, it encrypts the target data according to preset encryption rules to obtain encrypted data; and sends the encrypted data directly or through the target server to the second terminal corresponding to the target sending object identifier. When the second terminal receives the encrypted data, it decrypts the encrypted data according to preset decryption rules to obtain the target data and saves the target data to the clipboard. In this application, the first terminal encrypts the data to be sent before sending it to the second terminal, thereby improving the security of the data during transmission. In addition, when the second terminal receives the encrypted data sent by the first terminal, it decrypts the encrypted data to obtain the target data and saves the target data directly to the clipboard of the second terminal. There is no need to display the target data (the data to be pasted) before copying it, which reduces the exposure rate of the data to be pasted and further improves the security of the data. Moreover, since the second terminal saves the target data directly to the clipboard, the user can directly paste the data on the clipboard without copying the data before pasting, which improves the efficiency of pasting the data.

[0038] The encryption rules preset in the first terminal and the decryption rules preset in the second terminal are encryption and decryption rules agreed upon in advance by the first terminal and the second terminal. The encryption rules and decryption rules are either symmetric encryption algorithms or asymmetric encryption algorithms.

[0039] Please see Figure 3 As shown, Figure 3 A flowchart illustrating a data transmission method provided in this application embodiment, wherein the execution subject of this embodiment is a first terminal, and includes the following steps:

[0040] S110: In response to a user's operation to generate target data for a data to be sent area in the first terminal, target data is generated in the data to be sent area.

[0041] In this embodiment, when a user needs to send content to another terminal, the user first needs to open the data waiting area on the first terminal, and then fill the data waiting area by manually entering or selecting the target data from the local storage of the first terminal.

[0042] Specifically, when the target data generation operation is a target data writing operation, the target data input by the user corresponding to the target data writing operation is written into the data waiting area; when the target data generation operation is a target data selection operation, the local data corresponding to the target data selection operation is selected from the data selection entry of the data waiting area as the target data, and the target data is written into the data waiting area.

[0043] That is, when a user opens the data to be sent area, they can directly write target data into the data to be sent area using input tools such as keyboard or mouse. For example, they can copy other content from the first terminal and paste it into the data to be sent area, or write the content directly into the data to be sent area. In addition, the data to be sent area provides a data selection entry. Through the data selection entry, users can select corresponding local data from the local album or local folder as target data to be written into the data to be sent area. The target data in this application includes text (such as text, links, etc.), files (such as Word files, PDF files, etc.) or images.

[0044] S120: In response to the user's operation of selecting a transmission target for the data to be sent area, determine the target transmission target identifier from a plurality of preset candidate transmission target identifiers.

[0045] In this embodiment, after the user inputs target data in the data sending area, they need to further select a target sending object identifier. The target sending object identifier is the identifier of the target data receiving object, which can be a username (for example, when both the first terminal and the second terminal have the target application installed, and the data sending area is the paste data sending area of ​​the target application in the first terminal, the username is the username of the target application logged in in the second terminal), a device identifier (an identifier used to identify the second terminal), and an application identifier (the application identifier is an application identifier, such as WeChat, QQ, bank internal chat software identifier, etc., at least one application is installed in the first terminal and the second terminal, the applications in the first terminal and the second terminal are logged in with the same account, or a pre-established binding relationship between accounts (different accounts)).

[0046] It should be noted that when the first terminal and the second terminal transmit data via Bluetooth, the multiple candidate senders are identified by the device identifiers in the first terminal's Bluetooth list.

[0047] Among them, the preset multiple candidate sending objects are the sending objects that the user has saved in the application in advance. Specifically, they can be communication objects in the communication list. Users can determine the target sending object by searching by keywords or directly from the list.

[0048] In some embodiments, a user can select multiple target sending object identifiers at the same time. When there are multiple target sending object identifiers, the first terminal can send the target sending object identifiers to multiple second terminals at the same time. When multiple second terminals need to paste the content sent by the first terminal, the first terminal transmits the target content to multiple second terminals at the same time, resulting in high transmission efficiency.

[0049] S130: In response to the user's data transmission operation for the data to be sent area, the target data is encrypted according to a preset encryption rule to obtain encrypted data.

[0050] In this embodiment, in order to improve the security of data transmission, the first terminal and the second terminal pre-agreed on encryption and decryption rules. When the user triggers the data sending operation, the target data is not sent immediately, but is first encrypted to obtain encrypted data.

[0051] Furthermore, in order to save transmission resources and improve transmission speed, this application also compresses the encrypted data, and the encrypted data sent subsequently is the compressed encrypted data.

[0052] S140: Send the encrypted data to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to the preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal.

[0053] In this embodiment, after the first terminal automatically performs preprocessing (encryption processing, or encryption and compression processing) on ​​the target data based on the user-triggered data sending operation, the first terminal sends the encrypted data to the second terminal corresponding to the target object identifier.

[0054] In some embodiments, corresponding Figure 1 In the application environment described, data transmission occurs directly between the first terminal and the second terminal. In this case, sending the encrypted data to the second terminal corresponding to the target sending object identifier includes: sending the encrypted data to the second terminal corresponding to the target sending object identifier via Bluetooth transmission technology. When the second terminal receives the encrypted data, it automatically encrypts the data according to pre-stored decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal system.

[0055] In other embodiments, corresponding Figure 2In the application environment described, both the first terminal and the second terminal have the target application installed. The data to be sent area is the paste data sending area of ​​the target application on the first terminal. The target application provides a regular data sending area (sent to the message display interface of the second terminal by default) and a paste data sending area (sent to the second terminal by default without being displayed and saved to the clipboard). Please refer to [link to relevant documentation]. Figure 4 Sending the encrypted data to the second terminal corresponding to the target sending object identifier includes:

[0056] S1401. Generate target sending data based on the encrypted data, the pasting identifier corresponding to the pasting data sending area, and the target sending object identifier.

[0057] Specifically, encrypted data, pasted identifiers, and target recipient identifiers are combined according to preset combination rules to form target data for transmission.

[0058] S1402. Send the target sending data to the target server corresponding to the target application, so that the target server sends the target sending data to the target application in the second terminal according to the target sending object identifier in the target sending data.

[0059] Specifically, when the first terminal sends encrypted data through the target application, the first terminal sends the target data to the target server of the application through the target application. Then, the target server identifies the target sending object identifier in the target data and determines the target operating system of the second terminal corresponding to the target sending object identifier. Then, the server sends the target data to the second terminal according to the transmission protocol and transmission technology corresponding to the target operating system.

[0060] To facilitate understanding of the data transmission method provided in this application, a specific embodiment is used as an example below. In a data transmission scenario involving different terminals of the same user, the first terminal is a mobile phone, and the second terminal is a computer. Both the mobile phone and the computer have the target application installed, and the same account is logged into both target applications. In this case, the user enters target data (such as a target link) in the paste data sending area of ​​the target application on the mobile phone, then uses the currently logged-in account as the target sending object identifier (target account), and triggers the sending operation. The first terminal automatically encrypts the target link, then combines the encrypted target link, the target account, and the paste identifier to form target sending data, and sends the target sending data to the corresponding target server. When the target server receives the data sent by the target, it retrieves the target account from the data and determines whether the target application on another terminal is logged in with that account. If the target application on the second terminal is found to be logged in with the target account, the target data is sent to the target application on the second terminal. When the second terminal receives the data sent by the target application, it decrypts the encrypted target link according to a preset decryption rule and saves the decrypted target link to the clipboard on the second terminal. At this point, the user can directly open the browser on the second terminal and paste the target link from the clipboard into the browser, eliminating the need to copy the target link through the second terminal and improving the data pasting efficiency.

[0061] In addition to the examples mentioned above, the data transmission method provided in this application can also be applied to data transmission scenarios with different users and different terminals. This application does not limit the specific application scenarios.

[0062] In summary, in this application, the first terminal encrypts the data to be sent before sending it to the second terminal, thereby improving the security of the data during transmission. Furthermore, when the second terminal receives the encrypted data sent by the first terminal, it decrypts the encrypted data to obtain the target data and directly saves the target data to the second terminal's clipboard. This eliminates the need to display the target data (the data to be pasted) before copying it, reducing the exposure rate of the data to be pasted and further improving data security. Moreover, since the second terminal directly saves the target data to the clipboard, the user can directly paste the data from the clipboard without needing to copy the data before pasting, thus improving the efficiency of data pasting.

[0063] Please see Figure 5 As shown, Figure 5 A flowchart illustrating a data transmission method provided in this application embodiment, wherein the execution subject of this embodiment is a second terminal, and includes the following steps:

[0064] S210. Obtain encrypted data sent by the first terminal, wherein the encrypted data is data obtained by the first terminal encrypting target data according to a preset encryption rule, and the target data is data in the data to be sent area of ​​the first terminal.

[0065] In this embodiment, when the first terminal sends encrypted data to the second terminal, the second terminal receives the encrypted data. The specific steps for the first terminal to obtain the encrypted data are described below. Figure 3 The corresponding steps in the corresponding embodiments will not be described in detail here.

[0066] In some embodiments, both the first terminal and the second terminal have a target application installed. The data to be sent area is the paste data sending area of ​​the target application in the first terminal. The first terminal sends target data to the second terminal. This target data consists of encrypted data, a paste identifier corresponding to the paste data sending area, and a target sending object identifier. In this case, obtaining the encrypted data sent by the first terminal includes:

[0067] The first terminal receives target data sent by the target server based on the target sending object identifier through the application interface of the target application. The target sending data is data generated and sent to the target server by the first terminal based on the encrypted data, the paste identifier corresponding to the paste data sending area, and the target sending object identifier. The target sending object identifier is the object identifier corresponding to the target application in the second terminal. The paste identifier is used to instruct the second terminal to save the target data to the clipboard. Then, the second terminal retrieves the encrypted data from the target sending data.

[0068] S220. Decrypt the encrypted data according to the preset decryption rules to obtain the target data.

[0069] Specifically, in this embodiment, the decryption rules and encryption rules in the first terminal and the second terminal are rules pre-agreed upon by the first terminal and the second terminal, or rules pre-agreed upon by the target application in the first terminal and the target application in the second terminal.

[0070] After the second terminal obtains the encrypted data, it will decrypt the encrypted data to obtain the target data. Specifically, in some embodiments, the application interface of the target application has the above-mentioned decryption rules preset. When the encrypted data is obtained from the target data sent through the application interface, the second terminal will directly decrypt the encrypted data in the application interface according to the decryption rules to obtain the target data, and store the target data in the interface cache corresponding to the application interface.

[0071] As can be seen, this embodiment stores the decrypted target data in the interface cache of the application interface, without storing it in the memory corresponding to the target application in the second terminal, which can save the system storage resources of the second terminal.

[0072] In some embodiments, when the data received by the second terminal is compressed data, the second terminal will automatically decompress the data after receiving it, then extract the encrypted data, and then further decrypt it.

[0073] S230. Save the target data to the clipboard.

[0074] In this embodiment, after the second terminal obtains the target data, it automatically saves the target data to the clipboard.

[0075] Specifically, in some embodiments, saving the target data to the clipboard includes: when the target data being sent is detected to carry the paste identifier, saving the target data in the interface cache to the clipboard via a hook component.

[0076] The hook component is used to monitor whether the data received in the application interface of the target application carries a paste identifier. If it does, the target data obtained after decryption will be intercepted and the target data will be copied from the interface cache and transferred to the system's clipboard.

[0077] If the hook component detects that the data received in the application interface does not carry a paste identifier, it will not intercept the received data, and the data will be displayed in the message receiving box of the target application in the second terminal.

[0078] It should be noted that the target data storage system in this application uses a clipboard, so other applications on the second terminal can use the target data on the clipboard. When a user opens the paste area (e.g., a data input box) of the current display interface of another application on the second terminal, a paste command triggered by the user can be received; then, in response to the paste command, the target data on the clipboard is pasted into the paste area of ​​the current display interface of the second terminal.

[0079] In summary, in this embodiment, the second terminal directly saves the received target data to its clipboard, eliminating the need to display the target data (data to be pasted) before copying it. This reduces the exposure rate of the data to be pasted, improves data security, and allows users to directly paste the data without needing to copy it before pasting, thus improving data pasting efficiency.

[0080] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0081] In one embodiment, a first data transmission device is provided, the first data transmission device being the same as described above. Figure 3 The data transmission methods in the corresponding embodiments are one-to-one. For example... Figure 6 As shown, the first data transmission device includes a generation unit 101, a determination unit 102, an encryption unit 103, and a transmission unit 104.

[0082] The generation unit 101 is configured to generate target data in the data to be sent area in response to a user's target data generation operation for the data to be sent area in the first terminal;

[0083] The determining unit 102 is used to determine the target sending object identifier from a plurality of preset candidate sending object identifiers in response to the user's sending target selection operation for the data to be sent area;

[0084] The encryption unit 103 is used to encrypt the target data according to a preset encryption rule in response to a user's data transmission operation for the data to be sent area, so as to obtain encrypted data.

[0085] The sending unit 104 is used to send the encrypted data to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to the preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal.

[0086] In some embodiments, the generation unit 101 is specifically used for:

[0087] When the target data generation operation is a target data writing operation, the target data input by the user corresponding to the target data writing operation is written into the data waiting to be sent area;

[0088] When the target data generation operation is a target data selection operation, local data corresponding to the target data selection operation is selected from the data selection entry of the data to be sent area as the target data, and the target data is written into the data to be sent area.

[0089] In some embodiments, both the first terminal and the second terminal have a target application installed, and the data to be sent area is the paste data sending area of ​​the target application in the first terminal; the sending unit 104 is specifically used for:

[0090] Target sending data is generated based on the encrypted data, the pasting identifier corresponding to the pasting data sending area, and the target sending object identifier;

[0091] The target sending data is sent to the target server corresponding to the target application, so that the target server sends the target sending data to the target application in the second terminal according to the target sending object identifier in the target sending data.

[0092] In one embodiment, a second data transmission device is provided, which is related to the above-described... Figure 5 The data transmission methods in the corresponding embodiments are one-to-one. For example... Figure 7 As shown, the second data transmission device includes an acquisition unit 201, a decryption unit 202, and a storage unit 203.

[0093] The acquisition unit 201 is used to acquire encrypted data sent by the first terminal, wherein the encrypted data is data obtained by the first terminal encrypting target data according to a preset encryption rule, and the target data is data in the data to be sent area of ​​the first terminal;

[0094] The decryption unit 202 is used to decrypt the encrypted data according to a preset decryption rule to obtain the target data;

[0095] The storage unit 203 is used to save the target data to the clipboard.

[0096] In some embodiments, the second data transmission device further includes:

[0097] The receiving unit is used to receive the paste command triggered by the user;

[0098] The pasting unit is used to, in response to the pasting command, paste the target data on the clipboard into the pasting area of ​​the current display interface of the second terminal.

[0099] In some embodiments, both the first terminal and the second terminal have a target application installed, and the data to be sent area is the paste data sending area of ​​the target application in the first terminal; the acquisition unit 201 is specifically used for:

[0100] The first terminal receives target data sent by the target server based on the target sending object identifier through the application interface of the target application. The target sending data is data generated and sent to the target server by the first terminal based on the encrypted data, the paste identifier corresponding to the paste data sending area, and the target sending object identifier. The target sending object identifier is the object identifier corresponding to the target application in the second terminal. The paste identifier is used to instruct the second terminal to save the target data to the clipboard. The encrypted data is obtained from the target sending data.

[0101] The decryption unit 202 is specifically used for:

[0102] The encrypted data is decrypted using the pre-defined decryption rules in the application interface to obtain the target data, and the target data is stored in the interface cache corresponding to the application interface.

[0103] The storage unit 203 is specifically used for:

[0104] When the target data is detected to carry the paste identifier, the target data in the interface cache is saved to the pasteboard through the hook component.

[0105] The first and second data transmission devices provided in this application can improve data security and data pasting efficiency.

[0106] Specific limitations regarding the data transmission device can be found in the limitations regarding the data transmission method above, and will not be repeated here. Each module in the aforementioned data transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0107] In one embodiment, a computer device is provided, which may be a client, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it implements the client-side functions or steps of a data transmission method.

[0108] In one embodiment, a computer device is provided, which is either the first terminal or the second terminal described above. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer device is the first terminal, the processor executes the computer program to perform the following steps:

[0109] In response to a user's operation to generate target data for a data-to-send area in the first terminal, target data is generated in the data-to-send area.

[0110] In response to the user's operation of selecting a sending target for the data to be sent area, a target sending object identifier is determined from a plurality of preset candidate sending object identifiers;

[0111] In response to a user's data transmission operation targeting the data to be sent area, the target data is encrypted according to a preset encryption rule to obtain encrypted data;

[0112] The encrypted data is sent to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to the preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal.

[0113] When the computer device is a second terminal, the processor executes the following steps when executing a computer program:

[0114] The encrypted data sent by the first terminal is obtained, wherein the encrypted data is the data obtained by the first terminal encrypting the target data according to the preset encryption rules, and the target data is the data in the data to be sent area of ​​the first terminal;

[0115] The encrypted data is decrypted according to a preset decryption rule to obtain the target data;

[0116] Save the target data to the clipboard.

[0117] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0118] In response to a user's operation to generate target data for a data-to-send area in the first terminal, target data is generated in the data-to-send area.

[0119] In response to the user's operation of selecting a sending target for the data to be sent area, a target sending object identifier is determined from a plurality of preset candidate sending object identifiers;

[0120] In response to a user's data transmission operation targeting the data to be sent area, the target data is encrypted according to a preset encryption rule to obtain encrypted data;

[0121] The encrypted data is sent to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to the preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal.

[0122] or,

[0123] The encrypted data sent by the first terminal is obtained, wherein the encrypted data is the data obtained by the first terminal encrypting the target data according to the preset encryption rules, and the target data is the data in the data to be sent area of ​​the first terminal;

[0124] The encrypted data is decrypted according to a preset decryption rule to obtain the target data;

[0125] Save the target data to the clipboard.

[0126] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device described above can be referred to the relevant descriptions on the server side and client side in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0127] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0128] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0129] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A data transmission method, characterized in that, The method is applied to a first terminal, and the method includes: In response to a user's operation to generate target data for a data-to-send area in the first terminal, target data is generated in the data-to-send area. In response to the user's operation of selecting a sending target for the data to be sent area, a target sending object identifier is determined from a plurality of preset candidate sending object identifiers; In response to a user's data transmission operation targeting the data to be sent area, the target data is encrypted according to a preset encryption rule to obtain encrypted data; The encrypted data is sent to the second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to the preset decryption rules to obtain the target data, and saves the target data to the clipboard of the second terminal; Both the first terminal and the second terminal have the target application installed, and the data to be sent area is the paste data sending area of ​​the target application in the first terminal; sending the encrypted data to the second terminal corresponding to the target sending object identifier includes: Target sending data is generated based on the encrypted data, the pasting identifier corresponding to the pasting data sending area, and the target sending object identifier; The target sending data is sent to the target server corresponding to the target application, so that the target server sends the target sending data to the target application in the second terminal according to the target sending object identifier in the target sending data. The target server identifies the target sending object identifier in the target sending data, determines the target operating system of the second terminal corresponding to the target sending object identifier, and sends the target sending data to the second terminal according to the transmission protocol and transmission technology corresponding to the target operating system. The step of generating target data in the data-to-send area in response to a user's target data generation operation for the data-to-send area in the first terminal includes: When the target data generation operation is a target data writing operation, the target data input by the user corresponding to the target data writing operation is written into the data waiting to be sent area; When the target data generation operation is a target data selection operation, local data corresponding to the target data selection operation is selected from the data selection entry of the data to be sent area as the target data, and the target data is written into the data to be sent area.

2. A data transmission method, characterized in that, The method is applied to a second terminal, and the method includes: The encrypted data sent by the first terminal is obtained, wherein the encrypted data is the data obtained by the first terminal encrypting the target data according to the preset encryption rules, and the target data is the data in the data to be sent area of ​​the first terminal; The encrypted data is decrypted according to a preset decryption rule to obtain the target data; Save the target data to the clipboard; Both the first terminal and the second terminal have the target application installed, and the data to be sent area is the paste data sending area of ​​the target application in the first terminal; the step of obtaining the encrypted data sent by the first terminal includes: The first terminal receives target data sent by the target server based on the target sending object identifier through the application interface of the target application. The target sending data is data generated and sent to the target server by the first terminal based on the encrypted data, the pasting identifier corresponding to the pasting data sending area, and the target sending object identifier. The target sending object identifier is the object identifier corresponding to the target application in the second terminal. The pasting identifier is used to instruct the second terminal to save the target data to the clipboard. When the target server receives the target sending data sent by the first terminal, the target server identifies the target sending object identifier in the target sending data, determines the target operating system of the second terminal corresponding to the target sending object identifier, and sends the target sending data to the second terminal according to the transmission protocol and transmission technology corresponding to the target operating system. Obtain the encrypted data from the data sent by the target; The step of decrypting the encrypted data according to a preset decryption rule to obtain the target data includes: The encrypted data is decrypted using the pre-defined decryption rules in the application interface to obtain the target data, and the target data is stored in the interface cache corresponding to the application interface. Saving the target data to the clipboard includes: When the target data is detected to carry the paste identifier, the target data in the interface cache is saved to the pasteboard through the hook component; Receive paste command triggered by user; In response to the paste command, the target data on the clipboard is pasted into the paste area of ​​the current display interface of the second terminal.

3. A first data transmission device, characterized in that, The first data transmission device is deployed on the first terminal, and the first data transmission device includes: The generation unit is configured to generate target data in the data to be sent area in response to a user's target data generation operation for the data to be sent area in the first terminal. The determining unit is configured to determine the target sending object identifier from a plurality of preset candidate sending object identifiers in response to a user's sending target selection operation for the data to be sent area; An encryption unit is used to respond to a user's data transmission operation for the data to be sent area by encrypting the target data according to a preset encryption rule to obtain encrypted data. The sending unit is used to send the encrypted data to a second terminal corresponding to the target sending object identifier, so that when the second terminal receives the encrypted data, it decrypts the encrypted data according to a preset decryption rule to obtain the target data, and saves the target data to the clipboard of the second terminal. Both the first terminal and the second terminal have the target application installed, and the data to be sent area is the paste data sending area of ​​the target application in the first terminal; the sending unit is specifically used for: Target sending data is generated based on the encrypted data, the pasting identifier corresponding to the pasting data sending area, and the target sending object identifier; The target sending data is sent to the target server corresponding to the target application, so that the target server sends the target sending data to the target application in the second terminal according to the target sending object identifier in the target sending data. The target server identifies the target sending object identifier in the target sending data, determines the target operating system of the second terminal corresponding to the target sending object identifier, and sends the target sending data to the second terminal according to the transmission protocol and transmission technology corresponding to the target operating system. The generation unit is specifically used for: When the target data generation operation is a target data writing operation, the target data input by the user corresponding to the target data writing operation is written into the data waiting to be sent area; When the target data generation operation is a target data selection operation, local data corresponding to the target data selection operation is selected from the data selection entry of the data to be sent area as the target data, and the target data is written into the data to be sent area.

4. A second data transmission device, characterized in that, The second data transmission device is deployed on the second terminal, and the second data transmission device includes: The acquisition unit is used to acquire encrypted data sent by the first terminal, wherein the encrypted data is data obtained by the first terminal encrypting target data according to a preset encryption rule, and the target data is data in the data to be sent area of ​​the first terminal; The decryption unit is used to decrypt the encrypted data according to a preset decryption rule to obtain the target data; A storage unit is used to save the target data to the clipboard; Both the first terminal and the second terminal have the target application installed, and the data to be sent area is the paste data sending area of ​​the target application in the first terminal; the acquisition unit is specifically used for: The first terminal receives target data sent by the target server based on the target sending object identifier through the application interface of the target application. The target sending data is data generated and sent to the target server by the first terminal based on the encrypted data, the paste identifier corresponding to the paste data sending area, and the target sending object identifier. The target sending object identifier is the object identifier corresponding to the target application in the second terminal. The paste identifier is used to instruct the second terminal to save the target data to the clipboard. When the target server receives the target sending data sent by the first terminal, the target server identifies the target sending object identifier in the target sending data, determines the target operating system of the second terminal corresponding to the target sending object identifier, and sends the target sending data to the second terminal according to the transmission protocol and transmission technology corresponding to the target operating system; and retrieves the encrypted data from the target sending data. The decryption unit is specifically used for: The encrypted data is decrypted using the pre-defined decryption rules in the application interface to obtain the target data, and the target data is stored in the interface cache corresponding to the application interface. The storage unit is specifically used for: When the target data is detected to carry the paste identifier, the target data in the interface cache is saved to the pasteboard through the hook component; The receiving unit is used to receive the paste command triggered by the user; The pasting unit is used to, in response to the pasting command, paste the target data on the clipboard into the pasting area of ​​the current display interface of the second terminal.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the data transmission method as described in any one of claims 1 or 2.

6. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the data transmission method as described in any one of claims 1 or 2.