Communication method, communication device, computer readable storage medium and electronic equipment

The quantum key is received and stored through the charging interface of the terminal device, real-time update and efficient charging of the quantum key are achieved, solving the problem of low charging and charging efficiency of the quantum key in the prior art, and improving communication security.

CN119254428APending Publication Date: 2025-01-03CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411365303.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the prior art, the charging efficiency of quantum keys is low, making it difficult to achieve real-time updates, which limits communication security.

Method used

The quantum key is received and stored through the charging interface of the terminal device, and written using a secure storage area, and does not support reading, real-time update of the quantum key and efficient charging, and transmission of communication data based on the quantum key.

Benefits of technology

It improves the charging efficiency and convenience of quantum keys, ensures the freshness of keys, enhances communication security, avoids the need for additional hardware interfaces, and saves equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254428A_ABST
    Figure CN119254428A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and provides a communication method, a communication device, a computer readable storage medium and electronic equipment. The method comprises the following steps: receiving and storing a quantum key sent by quantum key charging equipment through a charging interface; and transmitting communication data based on the quantum key. According to the scheme, real-time rapid charging of the quantum key can be realized through the charging interface, and the communication safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a communication method, a communication device, a computer-readable storage medium, and an electronic device. Background Art

[0002] With the development of mobile terminals, the scale of end-to-end secure mobile communication services with high security requirements is also increasing, which puts forward higher security requirements for terminal access.

[0003] Quantum keys have high security, making them increasingly popular in the field of communications. During the use of quantum keys, quantum keys can be charged into quantum key storage devices through quantum key charging machines. However, in related technologies, the charging efficiency of quantum keys is low, making it difficult to achieve real-time updates of quantum keys.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a communication method, a communication device, a computer-readable storage medium and an electronic device, thereby improving the injection efficiency of quantum keys and improving communication security at least to a certain extent.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to a first aspect of the present disclosure, a communication method is provided, which is applied to a terminal device, and the method includes: receiving and storing a quantum key sent by a quantum key charging device through a charging interface; and transmitting communication data based on the quantum key.

[0008] Optionally, a secure storage area is configured in the terminal device, and the receiving and storing of the quantum key sent by the quantum key charging device through the charging interface includes: the secure storage area receives and stores the quantum key sent by the quantum key charging device through the charging interface, wherein the secure storage area supports writing data but not reading data.

[0009] Optionally, the quantum key includes a quantum key generated by a quantum key distribution network in the same security domain as the quantum key injection device and sent to the quantum key injection device.

[0010] Optionally, after receiving the quantum key sent by the quantum key charging device through the charging interface, the method further includes: synchronizing the key identifier of the received quantum key to the communication platform so that the communication platform stores the key identifier of the terminal device.

[0011] Optionally, the transmission of communication data based on the quantum key includes: receiving an encrypted communication key sent by the communication platform, the encrypted communication key being obtained by the communication platform after encrypting the communication key according to a target quantum key, the target quantum key including any quantum key among the quantum keys corresponding to the terminal device; determining the target quantum key from the stored quantum keys, decrypting the encrypted communication key according to the target quantum key to obtain the communication key; encrypting communication data based on the communication key to obtain encrypted communication data; and transmitting the encrypted communication data.

[0012] Optionally, the quantum key is configured with a key identifier; determining the target quantum key from the stored quantum key comprises: receiving the target key identifier sent by the communication platform, and determining the target quantum key from the stored quantum key according to the target key identifier; or determining the target quantum key from the stored quantum key according to the target key identifier sent to the communication platform.

[0013] Optionally, the method further includes: after obtaining the communication key, deleting the target quantum key from the terminal device.

[0014] According to a second aspect of the present disclosure, a communication device is provided, which is applied to a terminal device, and the device includes: a quantum key injection module, configured to receive a quantum key sent by a quantum key injection device through a charging interface; and a communication data transmission module, configured to transmit communication data based on the quantum key.

[0015] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the communication method as described in the first aspect of the above embodiment is implemented.

[0016] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the communication method as described in the first aspect of the above embodiment.

[0017] It can be seen from the above technical solutions that the communication method, communication device, and computer-readable storage medium and electronic device implementing the communication method in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:

[0018] In the technical solutions provided in some embodiments of the present disclosure, the terminal device can receive and store the quantum key sent by the quantum key charging device through the charging interface, and then transmit the communication data based on the quantum key. Compared with the related art, on the one hand, the present disclosure can charge the terminal device with quantum keys through the charging interface of the terminal device, which improves the convenience of quantum key charging. The terminal device can realize quantum key charging without adding other modules or hardware interfaces, saving equipment costs; on the other hand, the present disclosure can charge the terminal device with quantum keys at any time and in real time through the charging interface of the terminal device, which can realize the real-time update of quantum keys, improve the charging efficiency of quantum keys, make the freshness of quantum keys higher, and help improve communication security.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0021] Figure 1 A schematic diagram showing a flow chart of a communication method in an exemplary embodiment of the present disclosure;

[0022] Figure 2 An architectural diagram showing a key filling system in an exemplary embodiment of the present disclosure is shown;

[0023] Figure 3 A schematic flow chart showing a method for transmitting communication data by a terminal device based on a quantum key in an exemplary embodiment of the present disclosure;

[0024] Figure 4 A schematic diagram showing an exemplary application scenario architecture of a quantum key real-time filling system in an exemplary embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram showing the structure of a communication device in an exemplary embodiment of the present disclosure is shown;

[0026] Figure 6A schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0027] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0028] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.

[0029] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0030] First, some technical terms of the present disclosure are explained to facilitate a better understanding of the technical content of the present disclosure.

[0031] QKD (Quantum Key Distribution): Using the characteristics of quantum mechanics, both communicating parties can generate and share a random, secure key to encrypt and decrypt messages, thereby ensuring the security of communications.

[0032] One-time pad: refers to the technology of using a one-time pad for encryption and decryption in cryptography. A one-time pad is a theoretically secure encryption scheme. The basic principle of a one-time pad is to encrypt and decrypt by performing an XOR operation on the plaintext and a randomly generated key. Since the key is completely random and is only used once, it is theoretically impossible to crack a one-time pad by mathematical or statistical methods.

[0033] In the field of communications, certain security measures need to be taken to ensure the security and reliability of communication data. There are two main traditional security assurance methods: one is to ensure security through physical isolation, but it is inconvenient to use and cannot meet the application scenarios such as mobile. The other is to encrypt through the commercial secret system, but it has the risk of being cracked.

[0034] With the development of mobile terminals, the scale of end-to-end high-security mobile communication services with high security requirements is also increasing, which means that higher security requirements are put forward for terminal access. With the development of quantum computing, quantum keys are also used in the communication field to ensure the security of communication data.

[0035] However, the quantum keys in related technologies are difficult to update in real time, which prevents them from playing their maximum value in ensuring communication security and also limits their application scenarios.

[0036] In view of the above problems, the present disclosure provides a communication method, a communication device, a computer-readable storage medium and an electronic device.

[0037] Figure 1 The figure shows a flow chart of a communication method in an exemplary embodiment of the present disclosure, and the communication method can be applied to a terminal device. Figure 1 The method may include: step S110, receiving and storing the quantum key sent by the quantum key charging device through the charging interface; step S120, transmitting communication data based on the quantum key.

[0038] exist Figure 1In the technical solution provided by the illustrated embodiment, the terminal device can receive and store the quantum key sent by the quantum key charging device through the charging interface, and then transmit the communication data based on the quantum key. Compared with the related art, on the one hand, the present disclosure can charge the terminal device with quantum keys through the charging interface of the terminal device, which improves the convenience of quantum key charging. The terminal device can realize quantum key charging without adding other modules or hardware interfaces, saving equipment costs; on the other hand, the present disclosure can charge the terminal device with quantum keys at any time and in real time through the charging interface of the terminal device, which can realize the real-time update of quantum keys, improve the charging efficiency of quantum keys, make the freshness of quantum keys higher, and help improve communication security.

[0039] Next, the specific implementation method of step S110, receiving and storing the quantum key sent by the quantum key charging device through the charging interface, is described in detail.

[0040] refer to Figure 2 The implementation of step S110 is further described. For example, Figure 2 FIG. 2 shows an architecture diagram of a key filling system in an exemplary embodiment of the present disclosure. Figure 2 As shown, the system includes a quantum key distribution network 21, a quantum key injection device 22 and a terminal device 23.

[0041] For example, a quantum key charging device 22 can be deployed in certain scenarios, the quantum key charging device 22 and quantum key distribution (QKD) are in the same security domain, and the quantum key distribution network can distribute quantum keys to the quantum charging device 22. The quantum charging device 22 can charge the terminal device 23 with quantum keys through the charging interface of the terminal device 23 while charging the terminal device 23.

[0042] In an exemplary embodiment, a secure storage area is configured in the terminal device, and the secure storage area of ​​the terminal device can receive and store the quantum key sent to the terminal device by the quantum key charging device through the charging interface of the terminal device. The secure storage area supports writing data but not reading data.

[0043] For example, the terminal device has a built-in secure storage area that is writable but not readable, thereby preventing the quantum key from being copied. Data encryption and decryption based on the quantum key are all controlled within the secure storage area.

[0044] In an exemplary embodiment, the quantum key in step S110 includes a quantum key generated by a quantum key distribution network in the same security domain as the quantum key injection device and sent to the quantum key injection device.

[0045] For example, quantum keys can be generated through a quantum key distribution network, each quantum key can be configured with a key identifier, and the key identifier can distinguish different quantum keys. The quantum key distribution network can distribute the generated quantum keys configured with key identifiers to quantum key injection devices and communication platforms at the same time.

[0046] In an exemplary embodiment, the quantum key distribution network can be deployed in any scenario where secure communication is required, such as a user's home, office, or car, and this exemplary embodiment does not specifically limit this.

[0047] Exemplarily, a quantum key distribution network can achieve quantum key distribution through optical fiber or free space.

[0048] In an exemplary implementation, after the terminal device receives the quantum key sent by the quantum key charging device through the charging interface, the method also includes: the terminal device can synchronize the key identifier of the received quantum key to the communication platform so that the communication platform stores the key identifier of the terminal device.

[0049] For example, the quantum key distribution network can pre-distribute the generated quantum key configured with the key identifier to the quantum key charging device and the communication platform at the same time. Since the quantum key charging device and the quantum key distribution network are in the same security domain, the security domain of the quantum key distribution can be guaranteed. The terminal device can be connected to the quantum key charging device through the charging interface at any time. When the quantum key charging device detects that the terminal device is connected to the quantum key charging device through the charging interface, the quantum key charging device can charge the terminal device while charging the quantum key configured with the key identifier into the terminal device through the charging interface.

[0050] After receiving the quantum key configured with the key identifier injected by the quantum key injection device, the terminal device can send the terminal device identifier and the quantum cryptographic identifier of the quantum key received by the terminal device to the communication platform at the same time. The communication platform can distinguish different terminal devices by the terminal device identifier, thereby storing the key identifiers of the quantum keys injected by different terminal devices. The communication platform can determine the quantum keys corresponding to different terminal devices by storing the key identifiers corresponding to different terminal devices. This can then achieve quantum key synchronization between the communication platform and the terminal device.

[0051] Since both the terminal device and the communication platform store the quantum key configured with the key identifier filled by the terminal device, during the data exchange process between the terminal device and the communication platform, the two only need to transmit the key identifier instead of the quantum key itself, thereby further ensuring the security of the communication data.

[0052] In an exemplary embodiment, a preset number of quantum keys may be stored in the secure storage area of ​​the terminal device. When the quantum key charging device charges the terminal device with quantum keys, if the quantum keys stored in the terminal device reach the preset number, the quantum key charging device may send instruction information to the quantum key charging device, instructing the quantum key charging device to suspend the charging of quantum keys and only charge. The preset number may be determined according to demand, such as 100, 1000, 10000, etc., and this exemplary embodiment does not specifically limit this.

[0053] In an exemplary embodiment, the charging interface may include a USB (Universal Serial Bus) interface, such as a TYPE-C interface (Type-C is a USB interface standard, which is a new connector type, also known as USB Type-C).

[0054] In the present disclosure, quantum keys can be quickly and in real time charged to the terminal device through the charging interface of the terminal device, so as to realize the real-time update of quantum keys. On the one hand, quantum key charging is more convenient and the efficiency of quantum key charging is improved; on the other hand, quantum key charging can be realized without adding a new interface in the terminal device, which saves the hardware cost of the terminal device.

[0055] Of course, the quantum key can also be charged into the terminal device through a USB interface of the terminal device with other functions. For example, the quantum key can be charged into the desktop computer through the data transmission USB interface of the desktop computer. This exemplary embodiment does not specifically limit this.

[0056] In addition, a dedicated USB interface for quantum key injection may also be configured for the terminal device, which is not particularly limited in this exemplary embodiment.

[0057] Next, the specific implementation of step S120, transmitting communication data based on the quantum key, is described in detail.

[0058] For example, Figure 3 A schematic diagram showing a flow chart of a method for transmitting communication data based on a quantum key by a terminal device in an exemplary embodiment of the present disclosure. Figure 3 , the method may include steps S310 to S340. Wherein:

[0059] In step S310, an encrypted communication key sent by the communication platform is received.

[0060] In an exemplary embodiment, the encrypted communication key is obtained by the communication platform encrypting the communication key according to the target quantum key, and the target quantum key includes any quantum key among the quantum keys corresponding to the terminal device.

[0061] In an exemplary embodiment, the communication key may include a session key. In a broad sense, the communication key may refer to any key used for communication encryption, including but not limited to a session key, a master key, etc. Among them, the session key (session key) is also called a data encryption key or a working key. It is an encryption and decryption key randomly generated to ensure a secure communication session between a user and other computers or between two computers. It can be obtained through negotiation between communication users. It is generally generated dynamically and only when session data encryption is required.

[0062] In other words, a session key is a dynamic key specifically used for a communication session, while a communication key is a broader concept that may include multiple types of keys.

[0063] For example, after the terminal device and the communication platform establish a communication connection, the terminal device can select any quantum key from the quantum keys stored in its own secure storage area as the target quantum key used in this communication process, use the key identifier of the target quantum key as the target key identifier, and then send the target key identifier to the communication platform. The communication platform can find the corresponding quantum key based on the received target key identifier, use the quantum key as the target quantum key, and use the target quantum key to encrypt the communication encryption generated by the communication platform, thereby obtaining an encrypted communication key, and then send the encrypted communication key to the terminal device. The terminal device can receive the encrypted communication key sent by the communication platform.

[0064] After the terminal device and the communication platform establish a communication connection, the communication platform can also select any quantum key from the quantum keys of the terminal device stored in the communication platform as the target quantum key, and then use the target quantum key to encrypt the communication key generated by the communication platform for this communication to obtain an encrypted communication key. Then, the encrypted communication key and the target key identifier of the target quantum key are sent to the terminal device, and the terminal device can accept the encrypted communication key and the target key identifier sent by the communication platform.

[0065] In step S320, the target quantum key is determined from the stored quantum keys, and the encrypted communication key is decrypted according to the target quantum key to obtain the communication key.

[0066] Exemplarily, a specific implementation of step S320 may include: receiving a target key identifier sent by the communication platform, and determining the target quantum key from the stored quantum keys according to the target key identifier.

[0067] For example, as mentioned above, the communication platform can use the quantum key selected by it for encrypting the communication key of this communication process as the target quantum key, and then send the target key identifier of the target quantum key to the terminal device. The terminal device can find the quantum key corresponding to the target key identifier in the secure storage area of ​​the terminal device according to the target key identifier, thereby determining the target quantum key used to encrypt the communication key during this communication process.

[0068] Exemplarily, another specific implementation of step S320 may include: determining the target quantum key from the stored quantum keys according to the target key identifier sent to the communication platform.

[0069] For example, as mentioned above, the terminal device can send a target key identifier to the communication platform to synchronize the target quantum key used to encrypt the communication key during the communication process with the communication platform. Based on this, the terminal device can search for the quantum key corresponding to the target key identifier sent to the communication platform in its secure storage area, thereby determining the target quantum key from the quantum keys stored therein.

[0070] After determining the target quantum key, the terminal device can decrypt the received encrypted communication key according to the determined target quantum key, thereby obtaining the communication key during this communication process.

[0071] In an exemplary embodiment, after obtaining the communication key, the target quantum key is deleted from the terminal device.

[0072] For example, in the present disclosure, a one-time-one-pad communication method can be used to improve communication security, so the target quantum key that has been used can be deleted.

[0073] In step S330, the communication data is encrypted based on the communication key to obtain encrypted communication data.

[0074] In step S340, the encrypted communication data is transmitted.

[0075] For example, after decrypting and obtaining the communication key, the terminal device can encrypt the communication data according to the decrypted communication key to obtain encrypted communication data, and then transmit the encrypted communication data.

[0076] In the present disclosure, since a one-time-one-pad communication method is used, and what is transmitted between the communication platform and the terminal device is an encrypted communication key, and what is transmitted is a key identifier of a quantum key used to encrypt the communication key, rather than the quantum key itself, there is no risk of the quantum key being cracked, and communication security can be improved.

[0077] For example, Figure 4 A schematic diagram showing an exemplary application scenario architecture of a quantum key real-time filling system in an exemplary embodiment of the present disclosure. Figure 4 , the exemplary application scenario architecture may include a quantum satellite 41, an optical fiber QKD 42, a vehicle-mounted QKD 43, and a terminal device 44. Among them, the optical fiber QKD 42 and the vehicle-mounted QKD 43 can both be understood as quantum key injection devices.

[0078] For example, the quantum key distribution network composed of the quantum satellite 41 and the optical fiber QKD network can generate quantum keys and distribute the generated quantum keys to the quantum key injection devices in the same security domain as the quantum satellite 41. For example, the optical fiber QKD can distribute the quantum keys generated by the optical fiber QKD 42 through the optical fiber QKD link, and the quantum satellite can distribute the quantum keys generated by the optical fiber QKD 43 through the satellite QKD link. Then, the optical fiber QKD 42 and / or the on-board QKD 43 can inject the quantum keys generated by the quantum key distribution network into the terminal device 44 in real time through a USB interface, such as a TYPE-C interface.

[0079] Due to the real-time charging capability, the terminal device 44 can use a one-time one-pad method for secure communication.

[0080] For example, a software module for calling and using quantum keys in secure media can be pre-configured in the terminal device, so that the terminal device has the ability to use quantum keys for secure communication.

[0081] In the present disclosure, the QKD network can be used to provide quantum communication capabilities. The QKD network is a dedicated network, and the quantum satellite can provide additional quantum key service capabilities. The QKD key distribution and filling equipment can be divided into fixed QKD equipment and free space QKD equipment, which can be deployed in different scenarios as needed.

[0082] For example, while meeting the needs of terminal device usage in multiple scenarios, quantum key injection devices for security terminal devices can be deployed in places where security terminal devices often appear or arrive, such as offices, hotels, homes, official cars, etc.

[0083] In an exemplary embodiment, the terminal device 44 may include a smart phone, a tablet computer, a desktop computer, a laptop computer, a smart wearable device, etc., which is not particularly limited in this exemplary embodiment.

[0084] In an exemplary application scenario, taking the above-mentioned communication key as a session key, the above-mentioned communication platform as a call center, and the terminal device as a mobile phone as an example, the mobile phone can complete the quantum key charging in advance, and synchronize the key identifier of the charged quantum key to the call center. The quantum key charging and mobile phone charging can be completed synchronously through the customization of equipment and accessories, thereby realizing the advance charging of quantum keys. During secure communication, the call center continuously generates session keys for different terminal devices, and the length of the session key is the same as the voice communication data (one-time one-key). The call center uses the target quantum key corresponding to the target quantum key identifier synchronized with the terminal device as the encryption key of the session key, encrypts the session key, obtains the encrypted session key, and sends the encrypted session key to each mobile phone. Each mobile phone determines the target quantum key from the quantum key stored therein according to the target quantum key identifier, and then decrypts the encrypted session key through the target quantum key to obtain the session key, encrypts the voice data using the session key, obtains the encrypted voice data, transmits the encrypted voice data, and realizes secure communication with one-time one-key capability.

[0085] In the present disclosure, optical fiber QKD and quantum satellite QKD are used as examples for explanation. In practical applications, fast quantum key filling can be achieved by adjusting the usage of QKD. The filled quantum key can be used for "one-time one-password" voice calls, as well as for data encryption communications, etc. This exemplary embodiment does not make any special limitations on this.

[0086] Through the method disclosed in the present invention, keys can be charged in real time based on the USB interface. The key charging is fast and safe. It is also rechargeable and easy to use, which is suitable for high-security application scenarios. In addition, quantum keys are charged using the USB interface, which is fast and can be charged in real time. The key freshness is relatively high and has high security. At the same time, there is no need to change the existing mobile communication system, but the effect of additionally improving the security of mobile communications can be achieved. Since quantum keys can be charged in real time at any time, it supports "one-time one-key" high-security communication, increases the ability to resist quantum computing, and improves the security of the network system.

[0087] In addition, it should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0088] Furthermore, an exemplary embodiment of the present disclosure also provides a communication device. Figure 5 As shown, the communication device 500 includes the following program modules: a quantum key injection module 510, configured to receive a quantum key sent by a quantum key injection device through a charging interface; and a communication data transmission module 520, configured to transmit communication data based on the quantum key.

[0089] In an exemplary embodiment, a secure storage area is configured in the terminal device, and the quantum key injection module 510 can be specifically configured as follows: the secure storage area receives and stores the quantum key sent by the quantum key injection device through the charging interface, wherein the secure storage area supports writing data but not reading data.

[0090] In an exemplary embodiment, the quantum key includes a quantum key generated by a quantum key distribution network in the same security domain as the quantum key injection device and sent to the quantum key injection device.

[0091] In an exemplary embodiment, the device also includes a key identification synchronization module, which can be configured to: after receiving the quantum key sent by the quantum key charging device through the charging interface, synchronize the key identification of the received quantum key to the communication platform, so that the communication platform stores the key identification of the terminal device.

[0092] In an exemplary embodiment, the communication data transmission module 520 can be specifically configured to: receive an encrypted communication key sent by the communication platform, the encrypted communication key is obtained by the communication platform encrypting the communication key according to the target quantum key, and the target quantum key includes any quantum key among the quantum keys corresponding to the terminal device; determine the target quantum key from the stored quantum keys, decrypt the encrypted communication key according to the target quantum key to obtain the communication key; encrypt the communication data based on the communication key to obtain encrypted communication data; and transmit the encrypted communication data.

[0093] In an exemplary embodiment, the quantum key is configured with a key identifier; determining the target quantum key from the stored quantum key comprises: receiving a target key identifier sent by the communication platform, and determining the target quantum key from the stored quantum key according to the target key identifier; or determining the target quantum key from the stored quantum key according to the target key identifier sent to the communication platform.

[0094] In an exemplary embodiment, the apparatus may further include a deletion module, which may be configured to: delete the target quantum key from the terminal device after obtaining the communication key.

[0095] The specific details of each part of the above-mentioned device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0096] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0097] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0098] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the above communication method is implemented.

[0099] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.

[0100] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.

[0101] The code of the computer program can be written in one or more programming languages. Programming languages ​​such as C language, Java, C++, Python, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).

[0102] The computer program can be carried or transmitted through electrical, magnetic, optical, electromagnetic, infrared and other signals. The electronic device can convert the signal carrying the computer program into a digital signal, and then run the computer program. When the computer program is running on an electronic device, its code is used to enable the electronic device to execute (more specifically, the processor of the electronic device can execute) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned communication method, which includes the following steps: receiving and storing the quantum key sent by the quantum key charging device through the charging interface; transmitting communication data based on the quantum key.

[0103] By executing the above method steps through a computer program, on the one hand, the terminal device can be charged with quantum keys through the charging interface of the terminal device, which improves the convenience of quantum key charging. The terminal device can realize quantum key charging without adding other modules or hardware interfaces, saving equipment costs; on the other hand, the terminal device can be charged with quantum keys at any time and in real time through the charging interface of the terminal device, which can realize real-time update of quantum keys, improve the charging efficiency of quantum keys, make the freshness of quantum keys higher, and help improve communication security.

[0104] The exemplary embodiments of the present disclosure also provide an electronic device, such as the terminal device 110 described above. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions. In addition, the electronic device may also include a display for displaying a graphical user interface.

[0105] Reference below Figure 6 , the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Figure 6 The electronic device 600 shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0106] like Figure 6 As shown, the electronic device 600 may include: a processor 610 , a memory 620 , a bus 630 , an I / O (input / output) interface 640 , a network adapter 650 , and a display 660 .

[0107] The memory 620 may include a volatile memory, such as a RAM 621, a cache unit 622, and may also include a non-volatile memory, such as a ROM 623. The memory 620 may also include one or more program modules 624, such program modules 624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 624 may include each module in the above-mentioned device.

[0108] The processor 610 may include one or more processing units. For example, the processor 610 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.

[0109] The processor 610 can be used to execute executable instructions stored in the memory 620, such as executing the above-mentioned communication method, which includes the following steps: receiving and storing the quantum key sent by the quantum key charging device through the charging interface; and transmitting communication data based on the quantum key.

[0110] The above method is implemented by a computer program. On the one hand, the terminal device can be charged with quantum keys through the charging interface of the terminal device, which improves the convenience of quantum key charging. The terminal device can realize quantum key charging without adding other modules or hardware interfaces, saving equipment costs; on the other hand, the terminal device can be charged with quantum keys at any time and in real time through the charging interface of the terminal device, which can realize real-time update of quantum keys, improve the efficiency of quantum key charging, make the quantum key fresh, and help improve communication security. Bus 630 is used to realize the connection between different components of electronic device 600, and can include data bus, address bus and control bus.

[0111] The electronic device 600 can communicate with one or more external devices 700 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 640 .

[0112] The electronic device 600 can communicate with one or more networks through the network adapter 650. For example, the network adapter 650 can provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 650 can communicate with other modules of the electronic device 600 through the bus 630.

[0113] The electronic device 600 can display a graphical user interface, such as a voice call interface, through the display 660 .

[0114] although Figure 6 Not shown, other hardware and / or software modules may also be provided in the electronic device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0115] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0116] As can be seen from the above, the technical solution of the present disclosure can be implemented as a method, an apparatus, a system, a computer program product, a storage medium, an electronic device, etc. Those skilled in the art can understand that various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, such as being respectively referred to as a "circuit", "module" or "system".

[0117] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. Those skilled in the art will easily think of other embodiments based on the specific embodiments provided by the present disclosure. Therefore, the specific embodiments provided by the present disclosure are only exemplary, and the scope and spirit of the present disclosure are indicated by the claims, and any variations, uses or adaptive changes of the present disclosure should be covered, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure.

Claims

1. A communication method, characterized in that: Applied to a terminal device, the method comprises: Receive and store the quantum key sent by the quantum key charging device through the charging interface; Communication data is transmitted based on the quantum key.

2. The communication method according to claim 1, characterized in that: The terminal device is configured with a secure storage area, and the receiving and storing of the quantum key sent by the quantum key charging device through the charging interface includes: The secure storage area receives and stores the quantum key sent by the quantum key charging device through the charging interface, wherein the secure storage area supports writing data but not reading data.

3. The communication method according to claim 1, characterized in that: The quantum key includes a quantum key generated by a quantum key distribution network in the same security domain as the quantum key injection device and sent to the quantum key injection device.

4. The communication method according to claim 1, characterized in that: After receiving the quantum key sent by the quantum key charging device through the charging interface, the method further includes: The received key identifier of the quantum key is synchronized to the communication platform, so that the communication platform stores the key identifier of the terminal device.

5. The communication method according to claim 4, characterized in that: The transmission of communication data based on the quantum key includes: Receiving an encrypted communication key sent by the communication platform, wherein the encrypted communication key is obtained by encrypting the communication key by the communication platform according to a target quantum key, wherein the target quantum key includes any quantum key among the quantum keys corresponding to the terminal device; Determining the target quantum key from the stored quantum keys, and decrypting the encrypted communication key according to the target quantum key to obtain the communication key; Encrypting the communication data based on the communication key to obtain encrypted communication data; The encrypted communication data is transmitted.

6. The communication method according to claim 5, characterized in that: The quantum key is configured with a key identifier; and determining the target quantum key from the stored quantum key comprises: receiving a target key identifier sent by the communication platform, and determining the target quantum key from the stored quantum keys according to the target key identifier; or The target quantum key is determined from the stored quantum keys according to the target key identifier sent to the communication platform.

7. The communication method according to claim 5, characterized in that: The method further comprises: After obtaining the communication key, deleting the target quantum key from the terminal device.

8. A communication device, characterized in that: Applied to a terminal device, the device comprises: A quantum key charging module, configured to receive a quantum key sent by a quantum key charging device through a charging interface; The communication data transmission module is configured to transmit communication data based on the quantum key.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the communication method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the communication method according to any one of claims 1 to 7.