Data transmission method and device, equipment and storage medium

By distributing key information bound to a specific lifecycle through a key management center, the problems of increased overhead and low security in the key interaction process in end-to-end encryption are solved, and automatic destruction and secure management of keys are achieved.

CN118944884APending Publication Date: 2024-11-12CETC CYBERSPACE SECURITY TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411275429.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In existing end-to-end encryption technologies, key transmission requires additional interaction processes, increasing system overhead. Furthermore, once the key is held by both the sender and receiver, it is difficult to manage effectively, resulting in low security.

Method used

The key information is distributed by the key management center and has a lifecycle. The sender and receiver do not need to directly exchange keys, and the key information is automatically destroyed after the data transmission task is completed.

Benefits of technology

This reduces key interaction processes, avoids additional overhead, and improves key security and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944884A_ABST
    Figure CN118944884A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, equipment and a storage medium, relates to the technical field of data transmission, is applied to a sender, and comprises the following steps: obtaining a current data transmission task, and determining corresponding to-be-transmitted data and identity information of a receiver; first key request information containing the identity information is sent to a key management center, so that the key management center returns key information; a life cycle bound with the current data transmission task is set in the key information, so that the key information is automatically destroyed; and encrypting the to-be-transmitted data by using the key information and sending the encrypted to-be-transmitted data to a receiver, so that the receiver requests the key information from a key management center according to the encrypted data, and decrypts the encrypted data according to the key information to complete the current data transmission task. Therefore, the key management center distributes the key information bound with the life cycle, the sender and the receiver do not have key interaction, additional overhead is avoided, and the key security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method, device, equipment and storage medium. Background Art

[0002] The current end-to-end encryption needs to solve the key transmission problem. The sender and the receiver need to perform additional key exchange processes, which increases system overhead and poses a risk of key leakage. After the sender and the receiver complete the key exchange, the key is held by both the sender and the receiver, and the key lifecycle cannot be effectively managed, which is not very secure.

[0003] Therefore, how to improve key security during data transmission and how to effectively manage the key life cycle are issues to be solved in this field. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a data transmission method, apparatus, device and storage medium, in which the key management center distributes key information bound to the life cycle during the data transmission process, and there is no key interaction between the sender and the receiver, which avoids additional overhead and improves key security. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a data transmission method, applied to a sender, comprising:

[0006] Acquire a current data transmission task, and determine the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding recipient;

[0007] Sending a first key request message including the identity information to a key management center so that the key management center returns key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task so that the key information is automatically destroyed based on the life cycle after the current data transmission task is completed;

[0008] The data to be transmitted is encrypted using the key information, and the corresponding encrypted data is sent to the receiver, so that the receiver requests the corresponding key information from the key management center based on the encrypted data, and decrypts the encrypted data based on the key information to obtain the decrypted data, thereby completing the current data transmission task.

[0009] Optionally, before obtaining the current data transmission task and determining the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding receiver, the method further includes:

[0010] Sending a registration request to the key management center so that the key management center assigns an identity to the sender according to the registration request;

[0011] Correspondingly, the sending of the first key request information including the identity information to the key management center includes:

[0012] Based on the identity identifier of the self, first key request information including the identity information is sent to the key management center.

[0013] Optionally, the key management center returns key information for the current data transmission task, including:

[0014] The key management center selects an initial key from a preset key pool corresponding to the recipient, and based on the first key request information, adds a life cycle bound to the current data transmission task to the initial key to obtain key information for the current data transmission task.

[0015] Optionally, the using the key information to encrypt the data to be transmitted and sending the corresponding encrypted data to the receiving party includes:

[0016] Encrypting the data to be transmitted using the key information to obtain encrypted data;

[0017] Parsing the key information to obtain a key sequence number of the key information in a preset key pool corresponding to the receiving party;

[0018] The encrypted data and the key serial number are sent to the recipient.

[0019] Optionally, the receiving party requests the key management center for the corresponding key information according to the encrypted data, including:

[0020] The receiving party generates second key request information for the key information based on the key serial number corresponding to the encrypted data;

[0021] The second key request information is sent to the key management center, so that the key management center returns the key information corresponding to the second key request information.

[0022] In a second aspect, the present application provides a data transmission method, applied to a key management center, comprising:

[0023] Acquire first key request information sent by the sender after acquiring the current data transmission task; wherein the first key request information includes identity information of the receiver corresponding to the current data transmission task;

[0024] The key information for the current data transmission task is returned to the sender according to the identity information of the receiver in the first key request information, so that the sender can use the key information to encrypt the data to be transmitted, and send the corresponding encrypted data to the receiver, so that the receiver can request the corresponding key information from the key management center according to the encrypted data, and decrypt the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task; and, the key management center sets a life cycle bound to the current data transmission task in the key information, so as to automatically destroy the key information after the current data transmission task is completed based on the life cycle.

[0025] In a third aspect, the present application provides a data transmission device, applied to a sender, including:

[0026] A task acquisition module is used to acquire the current data transmission task and determine the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding recipient;

[0027] A first key request module is used to send a first key request message containing the identity information to a key management center, so that the key management center returns the key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task, so that the key information is automatically destroyed based on the life cycle after the current data transmission task is completed;

[0028] A data sending module is used to encrypt the data to be transmitted using the key information, and send the corresponding encrypted data to the receiver, so that the receiver requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task.

[0029] In a fourth aspect, the present application provides a data transmission device, applied to a key management center, comprising:

[0030] A key request information acquisition module, used to acquire first key request information sent by a sender after acquiring a current data transmission task; wherein the first key request information includes identity information of a receiver corresponding to the current data transmission task;

[0031] A key information return module is used to return the key information for the current data transmission task to the sender according to the identity information of the receiver in the first key request information, so that the sender can use the key information to encrypt the data to be transmitted, and send the corresponding encrypted data to the receiver, so that the receiver can request the corresponding key information from the key management center according to the encrypted data, and decrypt the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task; and, the key management center sets a life cycle bound to the current data transmission task in the key information, so as to automatically destroy the key information after the current data transmission task is completed based on the life cycle.

[0032] In a fifth aspect, the present application provides an electronic device, including:

[0033] Memory, used to store computer programs;

[0034] A processor is used to execute the computer program to implement the data transmission method as described above.

[0035] In a sixth aspect, the present application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the data transmission method as described above.

[0036] It can be seen that in the present application, the sender first obtains the current data transmission task, and determines the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding receiver; then sends a first key request information containing the identity information to the key management center, so that the key management center returns the key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task, so that the key information is automatically destroyed after the current data transmission task is completed based on the life cycle; the key information is then used to encrypt the data to be transmitted, and the corresponding encrypted data is sent to the receiver, so that the receiver requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data to complete the current data transmission task. In this way, the key used by the sender when transmitting data in this application is the key information for the current data transmission task provided by the key management center, and the key information is bound to the current data transmission task with a life cycle; this can effectively control the life cycle of the key, and the sender will not hold the corresponding key information for a long time after the current data transmission task is completed, which can improve the security of the key; and there is no key interaction process between the sender and the receiver, which avoids additional overhead and further improves the security of the key. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0038] Figure 1 A flow chart of a data transmission method disclosed in this application;

[0039] Figure 2 A flowchart of a specific data transmission method disclosed in this application;

[0040] Figure 3 A flowchart of another specific data transmission method disclosed in this application;

[0041] Figure 4 This is a schematic diagram of the structure of a data transmission device disclosed in this application;

[0042] Figure 5 This is a schematic diagram of the structure of another data transmission device disclosed in this application;

[0043] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] See also Figure 1 As shown, an embodiment of the present invention discloses a data transmission method, which is applied to a sender, and includes:

[0046] Step S11: Acquire a current data transmission task, and determine the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding receiver.

[0047] In the present application, the data sender first determines the current data transmission task to be processed; the data transmission task corresponds to the data to be transmitted and the target receiver to be sent to, including the identity information of the receiver. In a specific embodiment, the acquisition of the current data transmission task and the determination of the data to be transmitted and the identity information of the corresponding receiver corresponding to the current data transmission task may also include: sending a registration request to the key management center so that the key management center assigns an identity to the sender according to the registration request; correspondingly, the sending of the first key request information containing the identity information to the key management center includes: sending the first key request information containing the identity information to the key management center based on its own identity. Specifically, before acquiring the current data transmission task, the sender needs to register with the key management center first, and the key management center can assign an identity to the sender; it can be understood that the sender can subsequently request relevant key information from the key management center through the identity. Specifically, the sender can send the first key request information containing the identity information of the receiver corresponding to the current data transmission task to the key management center based on its own identity, and the key management center determines whether the first key request information is credible based on the identity, and if it is credible, the corresponding key information is returned based on the first key request information.

[0048] Step S12: Send a first key request message containing the identity information to a key management center so that the key management center returns key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task so that the key information is automatically destroyed based on the life cycle after the current data transmission task is completed.

[0049] Furthermore, the sender can send a first key request message containing the identity information of the recipient corresponding to the current data transmission task to the key management center; accordingly, the key management center can bind the corresponding key to the current data transmission task based on the first key request message. The corresponding key can be destroyed through this life cycle after the relevant data transmission task is completed. The life cycle of the key can be strictly controlled to prevent the key from being held for a long time by data nodes (including the sender and the receiver), thereby improving security.

[0050] In a specific embodiment, the key management center returns the key information for the current data transmission task, which may include: the key management center selects an initial key from a preset key pool corresponding to the recipient, and based on the first key request information, adds a life cycle bound to the current data transmission task to the initial key to obtain the key information for the current data transmission task. Specifically, the key management center can determine the recipient of the current data transmission task based on the identity information in the first key request information, and select an initial key from the preset key pool corresponding to the recipient; further, in order to improve the security of the key, the key management center adds a life cycle to the initial key, and the life cycle is consistent with the life cycle of the current data transmission task; in this way, the initial key can be automatically destroyed when the current data transmission task is completed, avoiding the sender from holding the relevant key for a long time.

[0051] Step S13: Use the key information to encrypt the data to be transmitted, and send the corresponding encrypted data to the recipient, so that the recipient requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task.

[0052] In this embodiment, the sender can obtain the key information returned by the key management center, which includes the key used to encrypt the data; then use the key therein to encrypt the data to be transmitted corresponding to the current data transmission task, and obtain the corresponding encrypted data; further, send the encrypted data to the receiver corresponding to the current data transmission task. It can be understood that after receiving the encrypted data, the receiver can request the corresponding key information from the key management center based on the encrypted data, and then decrypt the received encrypted data according to the key information returned by the key management center, and obtain the corresponding decrypted data; at this time, when the receiver obtains the decrypted data, it determines that the current data transmission task is completed. In a specific embodiment, the key management center can send the key information to the receiver corresponding to the current data transmission task when returning the key information corresponding to the current data transmission task to the sender; in this way, when the receiver receives the encrypted data from the sender, it can directly use the key information sent by the key management center to decrypt the encrypted data, which reduces the interaction steps between the receiver and the key management center, and can improve the execution efficiency of the data transmission task.

[0053] In a specific embodiment, the method of encrypting the data to be transmitted by using the key information and sending the corresponding encrypted data to the receiver may include: encrypting the data to be transmitted by using the key information to obtain the encrypted data; parsing the key information to obtain the key serial number of the key information in the preset key pool corresponding to the receiver; and sending the encrypted data and the key serial number to the receiver. Specifically, the sender may encrypt the data to be transmitted corresponding to the current data transmission task by using the key information returned by the key management center to obtain the encrypted data; correspondingly, the sender may parse the key information to obtain the key serial number corresponding to the key used to encrypt the data, and the key serial number is the serial number corresponding to the key in the preset key pool set by the key management center for the receiver; the sender may send the encrypted data and the corresponding key serial number to the receiver together, so that the receiver can request the corresponding key information from the key management center according to the key serial number.

[0054] In another specific embodiment, the receiving party requests the key information corresponding to the key management center based on the encrypted data, which may include: the receiving party generates a second key request information for the key information based on the key serial number corresponding to the encrypted data; and sends the second key request information to the key management center so that the key management center returns the key information corresponding to the second key request information. Specifically, in the process of decrypting the encrypted data sent by the sender, the receiving party first generates the second key request information based on the key serial number corresponding to the encrypted data; through the second key request information, the key information used to decrypt the encrypted data can be requested from the key management center. In this way, the receiving party also interacts with the key management center to obtain the corresponding key information, and there is no need for the sender and the receiving party of the current data transmission task to exchange keys, which can improve the key security.

[0055] It can be seen that in this application, the sender first requests a key information for encrypting the data to be transmitted from the key management center based on the identity information of the receiver corresponding to the current data transmission task; and the key information returned by the key management center to the sender is bound to the life cycle of the current data transmission task; this can effectively control the life cycle of the key, and the sender and the receiver will not hold the corresponding key information for a long time after the current data transmission task is completed. The key information will be automatically destroyed based on the life cycle, which can improve the security of the key; there is no key interaction process between the sender and the receiver, which avoids additional overhead and improves the security of the key.

[0056] like Figure 2 As shown, the embodiment of the present application discloses a data transmission method, which is applied to a key management center, including:

[0057] Step S21, obtaining first key request information sent by the sender after obtaining the current data transmission task; wherein the first key request information includes the identity information of the receiver corresponding to the current data transmission task.

[0058] In this embodiment, during the process of allocating keys by the key management center, the first key request sent by the sender based on the current data transmission task is obtained; the first key request information sent by the sender contains the identity information of the data receiver corresponding to the current data transmission task. It should be pointed out that in a specific embodiment, the sender and the receiver corresponding to the current data transmission task both pre-register their identities in the key management center. When the sender and the receiver request the relevant keys from the key management center, they can complete the legitimacy verification of the key request information through the relevant identity. In other embodiments, the key management center can pre-save the identity information of multiple data nodes (the sender and the receiver corresponding to the data transmission task), and configure a preset key pool containing several keys for a single data node; subsequently, a key can be selected from the relevant preset key pool according to the identity information of the receiver corresponding to the data transmission task for a single data transmission.

[0059] Step S22: return the key information for the current data transmission task to the sender according to the identity information of the receiver in the first key request information, so that the sender uses the key information to encrypt the data to be transmitted, and sends the corresponding encrypted data to the receiver, so that the receiver requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task; and, the key management center sets a life cycle bound to the current data transmission task in the key information, so as to automatically destroy the key information after the current data transmission task is completed based on the life cycle.

[0060] In this embodiment, the key management center sets a life cycle bound to the current data transmission task in the key information that needs to be returned to the sender. According to the life cycle, the key information can be automatically destroyed after the current data transmission task is completed. This can avoid the key being held by a certain party for a long time, which can improve the security of the key. In addition, there will be differences in the keys used for different data transmission tasks, which can improve the security of the transmitted data.

[0061] In a specific embodiment, Figure 3As shown, for a single data transmission task, the sender / receiver needs to register and initialize their identity in the key management center in advance; specifically, the sender / receiver initiates a registration request to the key management center, and can use the valid certificate issued by the key management center to initiate a registration or initialization request. Accordingly, the key management center processes the registration initialization request of the sender / receiver, and performs authentication through its own integrated authentication system or a third-party authentication system. After passing the authentication, the key management center can return the corresponding identity identification to the sender / receiver. Further, when it is necessary to perform a data transmission task, the sender can request the key information corresponding to the data receiver from the key management center; and the key management center checks the sender's key request information, and returns the corresponding key information if the check passes. The sender uses the key information corresponding to the receiver's identity information returned by the key management center to encrypt the data to be transmitted corresponding to the current data transmission task, and sends the encrypted data to the corresponding receiver. It is understandable that when the receiver decrypts the data, it is also necessary to request the key information that matches the encrypted data from the key management center. The key management center checks the receiver's key request information and returns the corresponding key information if the check is passed. The receiver can then use the key information to decrypt the encrypted data to obtain the corresponding decrypted data. This completes a single data transmission task. It is understandable that when the data receiver parses the encrypted data to obtain the parsed data, it can return an information identifier to the sender to inform the sender of the completion of the current data transmission task. After receiving the information identifier, the sender can trigger the operation of destroying the relevant key information. Correspondingly, after the receiver parses and obtains the decrypted data, it can directly trigger the operation of destroying the relevant key information.

[0062] It can be seen that the key used by the sender when transmitting data in this application is the key information for the current data transmission task provided by the key management center, and the key information is bound to the current data transmission task with a life cycle; this can effectively control the life cycle of the key, and the sender and receiver will not hold the corresponding key information for a long time after the current data transmission task is completed. The key information will be automatically destroyed based on the life cycle, which can improve the security of the key; the sender only sends the encrypted data to the receiver, and there is no key interaction process, which avoids additional overhead, improves the security of the key, and solves the trust problem between the sender and receiver of end-to-end encryption.

[0063] like Figure 4 As shown, the embodiment of the present application discloses a data transmission device, which is applied to a sender, including:

[0064] The task acquisition module 11 is used to acquire the current data transmission task and determine the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding recipient;

[0065] The first key request module 12 is used to send a first key request message containing the identity information to the key management center, so that the key management center returns the key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task, so that the key information is automatically destroyed based on the life cycle after the current data transmission task is completed;

[0066] The data sending module 13 is used to encrypt the data to be transmitted using the key information, and send the corresponding encrypted data to the recipient, so that the recipient requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task.

[0067] It can be seen that the key used by the sender when transmitting data in this application is the key information for the current data transmission task provided by the key management center, and the key information is bound to the current data transmission task with a life cycle; this can effectively control the life cycle of the key, and the sender will not hold the corresponding key information for a long time after the current data transmission task is completed, which can improve the security of the key; and there is no key interaction process between the sender and the receiver, which avoids additional overhead and further improves the security of the key.

[0068] In a specific embodiment, the device may further include:

[0069] A registration module, used to send a registration request to the key management center, so that the key management center assigns an identity to the sender according to the registration request;

[0070] Accordingly, in another specific embodiment, the first key request module 12 may include:

[0071] The first key request information sending unit is used to send the first key request information containing the identity information to the key management center based on the identity identification of the unit.

[0072] In a specific embodiment, the device may include:

[0073] A key information generation module is used for the key management center to select an initial key from a preset key pool corresponding to the recipient, and based on the first key request information, add a life cycle bound to the current data transmission task to the initial key to obtain key information for the current data transmission task.

[0074] In a specific embodiment, the data sending module 13 may include:

[0075] A data encryption unit, used to encrypt the data to be transmitted using the key information to obtain encrypted data;

[0076] A key information parsing unit, used to parse the key information to obtain a key sequence number of the key information in a preset key pool corresponding to the receiving party;

[0077] A data sending unit is used to send the encrypted data and the key serial number to the receiving party.

[0078] In a specific embodiment, the device may include:

[0079] A second key request information generating module, configured for the receiving party to generate second key request information for the key information based on the key serial number corresponding to the encrypted data;

[0080] The second key request information sending module is used to send the second key request information to the key management center, so that the key management center returns the key information corresponding to the second key request information.

[0081] like Figure 5 As shown, the embodiment of the present application discloses a data transmission device, which is applied to a key management center, including:

[0082] The key request information acquisition module 21 is used to acquire the first key request information sent by the sender after acquiring the current data transmission task; wherein the first key request information includes the identity information of the receiver corresponding to the current data transmission task;

[0083] The key information return module 22 is used to return the key information for the current data transmission task to the sender according to the identity information of the receiver in the first key request information, so that the sender uses the key information to encrypt the data to be transmitted, and sends the corresponding encrypted data to the receiver, so that the receiver requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data to complete the current data transmission task; and, the key management center sets a life cycle bound to the current data transmission task in the key information, so as to automatically destroy the key information after the current data transmission task is completed based on the life cycle.

[0084] It can be seen that the key management center can configure the life cycle of the key information. The sender and the receiver will destroy the relevant key information after the current data transmission task is completed to avoid long-term holding of the key information. The key information will be automatically destroyed based on the life cycle, which can improve the security of the key. The sender only sends the encrypted data to the receiver, and there is no key interaction process, which avoids additional overhead, improves the security of the key, and solves the trust problem between the sender and the receiver of end-to-end encryption.

[0085] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0086] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data transmission method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0087] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0088] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0089] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data transmission method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0090] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed data transmission method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0091] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0092] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0093] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0094] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0095] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data transmission method, characterized in that: Applicable to the sender, including: Acquire a current data transmission task, and determine the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding recipient; Sending a first key request message including the identity information to a key management center so that the key management center returns key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task so that the key information is automatically destroyed based on the life cycle after the current data transmission task is completed; The data to be transmitted is encrypted using the key information, and the corresponding encrypted data is sent to the receiver, so that the receiver requests the corresponding key information from the key management center based on the encrypted data, and decrypts the encrypted data based on the key information to obtain the decrypted data, thereby completing the current data transmission task.

2. The data transmission method according to claim 1, characterized in that: Before obtaining the current data transmission task and determining the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding receiver, the method further includes: Sending a registration request to the key management center so that the key management center assigns an identity to the sender according to the registration request; Correspondingly, the sending of the first key request information including the identity information to the key management center includes: Based on the identity identifier of the self, first key request information including the identity information is sent to the key management center.

3. The data transmission method according to claim 1, characterized in that: The key management center returns key information for the current data transmission task, including: The key management center selects an initial key from a preset key pool corresponding to the recipient, and based on the first key request information, adds a life cycle bound to the current data transmission task to the initial key to obtain key information for the current data transmission task.

4. The data transmission method according to any one of claims 1 to 3, characterized in that: The step of encrypting the data to be transmitted by using the key information and sending the corresponding encrypted data to the receiving party includes: Encrypting the data to be transmitted using the key information to obtain encrypted data; Parsing the key information to obtain a key sequence number of the key information in a preset key pool corresponding to the receiving party; The encrypted data and the key serial number are sent to the recipient.

5. The data transmission method according to claim 4, characterized in that: The receiving party requests the key management center for the corresponding key information according to the encrypted data, including: The receiving party generates second key request information for the key information based on the key serial number corresponding to the encrypted data; The second key request information is sent to the key management center, so that the key management center returns the key information corresponding to the second key request information.

6. A data transmission method, characterized in that: Applicable to key management center, including: Acquire first key request information sent by the sender after acquiring the current data transmission task; wherein the first key request information includes identity information of the receiver corresponding to the current data transmission task; The key information for the current data transmission task is returned to the sender according to the identity information of the receiver in the first key request information, so that the sender can use the key information to encrypt the data to be transmitted, and send the corresponding encrypted data to the receiver, so that the receiver can request the corresponding key information from the key management center according to the encrypted data, and decrypt the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task; and, the key management center sets a life cycle bound to the current data transmission task in the key information, so as to automatically destroy the key information after the current data transmission task is completed based on the life cycle.

7. A data transmission device, characterized in that: Applicable to the sender, including: A task acquisition module is used to acquire the current data transmission task and determine the data to be transmitted corresponding to the current data transmission task and the identity information of the corresponding recipient; A first key request module is used to send a first key request message containing the identity information to a key management center, so that the key management center returns the key information for the current data transmission task; the key information is provided with a life cycle bound to the current data transmission task, so that the key information is automatically destroyed based on the life cycle after the current data transmission task is completed; A data sending module is used to encrypt the data to be transmitted using the key information, and send the corresponding encrypted data to the receiver, so that the receiver requests the corresponding key information from the key management center according to the encrypted data, and decrypts the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task.

8. A data transmission device, characterized in that: Applicable to key management center, including: A key request information acquisition module, used to acquire first key request information sent by a sender after acquiring a current data transmission task; wherein the first key request information includes identity information of a receiver corresponding to the current data transmission task; A key information return module is used to return the key information for the current data transmission task to the sender according to the identity information of the receiver in the first key request information, so that the sender can use the key information to encrypt the data to be transmitted, and send the corresponding encrypted data to the receiver, so that the receiver can request the corresponding key information from the key management center according to the encrypted data, and decrypt the encrypted data according to the key information to obtain the decrypted data, so as to complete the current data transmission task; and, the key management center sets a life cycle bound to the current data transmission task in the key information, so as to automatically destroy the key information after the current data transmission task is completed based on the life cycle.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the data transmission method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the data transmission method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Data transmission and storage method and device, electronic equipment and computer readable medium

    CN120018122A