CN112583604A - Information transmission method and device, electronic equipment and storage medium - Google Patents

Information transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112583604A
CN112583604A CN202011463109.0A CN202011463109A CN112583604A CN 112583604 A CN112583604 A CN 112583604A CN 202011463109 A CN202011463109 A CN 202011463109A CN 112583604 A CN112583604 A CN 112583604A
Authority
CN
China
Prior art keywords
information
quantum
service request
server
feedback
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011463109.0A
Other languages
Chinese (zh)
Other versions
CN112583604B (en
Inventor
艾斌
许剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202011463109.0A priority Critical patent/CN112583604B/en
Publication of CN112583604A publication Critical patent/CN112583604A/en
Application granted granted Critical
Publication of CN112583604B publication Critical patent/CN112583604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/16Implementing security features at a particular protocol layer
    • H04L63/166Implementing security features at a particular protocol layer at the transport layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0852Quantum cryptography

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Optical Communication System (AREA)

Abstract

The application provides an information transmission method and device, electronic equipment and a storage medium. The method comprises the following steps: when password service request information sent by a client is received, encoding the password service request information to obtain first quantum information; transmitting the first quantum information to a server cipher machine through a quantum channel; receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, the feedback information is formed by decoding the first quantum information by the server cipher machine and processing the decoded information; and decoding the second quantum information to obtain the feedback information.

Description

Information transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for transmitting information, an electronic device, and a storage medium.
Background
At present, the service environment of the server cryptographic engine is mainly realized by using ethernet communication to realize the coverage of a network, and the transmission of cryptographic service request information is carried out by establishing a Secure Sockets Layer (SSL) mode.
However, for end-to-end information transmission, SSL communication can only be performed in the original manner, which requires communication means and has low security.
In view of the above problems, no effective technical solution exists at present.
Disclosure of Invention
An object of the embodiments of the present application is to provide an information transmission method, an information transmission apparatus, an electronic device, and a storage medium, which can improve security of information transmission.
In a first aspect, an embodiment of the present application provides an information transmission method, including the following steps:
when password service request information sent by a client is received, encoding the password service request information to obtain first quantum information;
transmitting the first quantum information to a server cipher machine through a quantum channel;
receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is obtained by processing cipher service request information obtained by decoding the first quantum information by the server cipher machine;
and decoding the second quantum information to obtain the feedback information.
Optionally, in the information transmission method according to the embodiment of the present application, the encoding the cryptographic service request information to obtain first quantum information includes:
encoding the password service request information to obtain a quantum bit;
and modulating the quantum bit to obtain first quantum information taking a quantum state as a carrier.
Optionally, in the information transmission method according to the embodiment of the present application, the encoding the cryptographic service request information to obtain a qubit includes:
determining a target coding rule according to the password service request information;
and coding the password service request information according to the target coding rule.
Optionally, in the information transmission method according to the embodiment of the present application, the determining a target encoding rule according to the cryptographic service request information includes:
determining a target coding rule according to the type of the password service request information; or the like, or, alternatively,
and training the password service request information through a rule training model to obtain a target coding rule.
Optionally, in the information transmission method according to the embodiment of the present application, the password service request information carries identification information of the application server;
the transmitting the first quantum information to a server cipher machine through a quantum channel comprises;
and transmitting the first quantum information to a server cipher machine through a quantum channel corresponding to the identification information.
Second aspect an embodiment of the present application further provides an information transmission method, including:
when first quantum information sent by an application server is received, decoding the first quantum information to obtain password service request information; the first quantum information is obtained by encoding the received password service request information by the application server;
processing the password service request information to obtain feedback information;
coding the feedback information to obtain second quantum information;
and feeding back the second quantum information to the application server through a quantum channel.
Optionally, in the information transmission method according to the embodiment of the present application, the processing the password service request information to obtain feedback information includes:
and calling an information processing unit corresponding to the service type of the password service request information, and generating corresponding feedback information after processing the password service request information through the information processing unit.
Optionally, in the information transmission method according to this embodiment of the present application, the encoding processing on the feedback information to obtain second quantum information includes:
coding the feedback information to obtain a quantum bit;
and modulating the quantum bit to obtain second quantum information taking a quantum state as a carrier.
Optionally, in the information transmission method according to the embodiment of the present application, the encoding the feedback information to obtain a qubit includes:
determining a target coding rule according to the feedback information;
and coding the feedback information according to the target coding rule to obtain a quantum bit.
Optionally, in the information transmission method according to the embodiment of the present application, the target coding rule is determined according to the feedback information;
determining a target coding rule according to the type of the feedback information; or the like, or, alternatively,
and training the feedback information through a rule training model to obtain a target coding rule.
Optionally, in the information transmission method according to the embodiment of the present application, the password service request information carries identification information of the application server;
the feeding back the second quantum information to the application server through a quantum channel includes:
and feeding back the second quantum information to the application server through a quantum channel corresponding to the identification information.
In a third aspect, an embodiment of the present application further provides an information transmission apparatus, including:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for coding password service request information to obtain first quantum information when the password service request information sent by a client is received;
the transmission module is used for transmitting the first quantum information to the server cipher machine through a quantum channel;
the receiving module is used for receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is obtained by processing cipher service request information obtained by decoding the first quantum information by the server cipher machine;
and the second processing module is used for decoding the second quantum information to obtain the feedback information.
In a fourth aspect, an embodiment of the present application further provides an apparatus for transmitting information, including:
the third processing module is used for decoding the first quantum information when the first quantum information sent by the application server is received to obtain password service request information; the first quantum information is obtained by encoding the received password service request information by the application server;
the fourth processing module is used for processing the password service request information to obtain feedback information;
the fifth processing module is used for coding the feedback information to obtain second quantum information;
and the feedback module is used for feeding back the second quantum information to the application server through a quantum channel.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method as provided in the first aspect are executed.
In a sixth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps in the method as provided in the first aspect.
As can be seen from the above, in the information transmission method provided in the embodiment of the present application, when receiving the password service request information sent by the client, the password service request information is encoded to obtain the first quantum information; transmitting the first quantum information to a server cipher machine through a quantum channel; receiving second quantum information fed back by the server cipher machine through the quantum channel; decoding the second quantum information to obtain the feedback information; because the server cipher machine and the application server transmit information through the quantum channel, the information is prevented from being intercepted, copied or tampered in the information transmission process, and the safety of information transmission is improved.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application.
Fig. 2 is a flowchart of a method for transmitting information according to an embodiment of the present disclosure.
Fig. 3 is another flowchart of a method for transmitting information according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a first information transmission apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a second information transmission apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The information transmission method in this embodiment is applied to the communication system structure shown in fig. 1, the communication system includes at least one client 10, at least one application server 20 and a server cryptographic engine 30, the plurality of application servers 20 correspond to the server cryptographic engine 30, wherein an independent quantum channel is established between each application server 20 and the server cryptographic engine 30, and the client 10 sends a cryptographic service request to the application server 20.
Referring to fig. 2, fig. 2 is a flowchart of a method for transmitting information according to some embodiments of the present application. The execution subject of the information transmission method is an application server provided with a first quantum encoder/decoder. The first quantum coding/decoding device can be integrated in the application server or can be connected to the application server as a plug-in. The information transmission method comprises the following steps:
s101, when password service request information sent by a client is received, encoding the password service request information to obtain first quantum information.
And S102, transmitting the first quantum information to a server cipher machine through a quantum channel.
S103, transmitting and receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is obtained by processing cipher service request information obtained by decoding the first quantum information by the server cipher machine.
And S104, decoding the second quantum information to obtain the feedback information.
Wherein, in the step S101, the cryptographic service request information includes one of a service type of encryption and decryption, signature verification, password generation and key management. In an embodiment, the first quantum information may be obtained by performing a quantum encoding process on the cryptographic service request information, where the quantum encoding process includes quantum encoding and modulation. Wherein the quantum encoding process is implemented using a first quantum encoder/decoder. Quantum coding uses some special quantum states to represent quantum bits to achieve the goal of overcoming decoherence. The quantum coding has three forms of quantum error correcting code, quantum error avoiding code and quantum error preventing code. The purpose of the modulation is to adapt the frequency band of the qubit to the high-frequency signal transmitted by the quantum channel. Of course, the quantum encoding process may be performed only with quantum encoding and without modulation.
In step S102, a quantum channel is established between the server cryptographic engine and the application server by using the unclonable principle and the collapse principle in the transmission process. The capacity of the quantum channel is set according to the capacity of the password service request information, and the bandwidth of the quantum channel is set according to the requirement of transmission time and the capacity of the password service request information.
The server cipher machine has cipher service equipment with functions of encryption and decryption, digital signature, identity authentication, random number production and the like.
In step S103, the second quantum information is obtained by encoding feedback information by the server crypto engine, and the feedback information is obtained by decoding the first quantum information by the server crypto engine and processing the decoded information. Wherein the server cipher machine is provided with a second encoder/decoder. The encoding process and the decoding process at the server cipher machine end are both performed by the second encoder/decoder. The second encoder/decoder may be integrated within the server crypto-engine or may be connected to the server crypto-engine as a plug-in.
Wherein the feedback information comprises one of encryption information, verification result information, random password information and control information. And when the decoded information is encrypted and decrypted, the server cipher machine encrypts the first quantum information to obtain encrypted information. And when the decoded information is signature verification, the server cipher machine verifies the first quantum information to obtain verification result information. And when the decoded information is generated by a password, the server password machine generates a corresponding random password to obtain random password information. And when the decoded information is the key management, the server cipher machine generates corresponding control information.
The server cipher machine converts the feedback information into second quantum information, wherein the second quantum information is different from the first quantum information, and the specific conversion mode is as follows.
In an embodiment, the feedback information may be subjected to a quantum coding process to obtain second quantum information. Wherein the encoding rule of the feedback information is the same as the encoding rule of the cryptographic service request information.
In step S104, the feedback information is encoded to obtain the second quantum information, so that when the application server receives the second quantum information, the application server decodes the second quantum information to obtain the feedback information.
In some embodiments, the step of encoding the cryptographic service request information to obtain the first quantum information includes: s1011, encoding the password service request information to obtain a quantum bit; in one embodiment, the cryptographic service request message may be encoded according to a preset encoding rule. And S1012, modulating the quantum bit to obtain first quantum information taking a quantum state as a carrier. In one embodiment, the modulation scheme may be determined based on the quantum channel and the qubit. For example, the quantum channel and the qubit are input into a training module, and a specific modulation mode is obtained through training.
In another embodiment, a target encoding rule is determined from the cryptographic service request information; and coding the password service request information according to the target coding rule.
In a preferred embodiment, the step of determining a target encoding rule according to the cryptographic service request information comprises: determining a target coding rule according to the type of the password service request information; or, training the password service request information through a rule training model to obtain a target coding rule.
For example, a plurality of coding rules are stored in advance, and the optimal coding rule is selected from the coding rules as a target coding rule according to the type of the password service request information; or inputting the password service request information into the rule training model, and training the rule training model to obtain a target coding rule, wherein the target coding rule is the coding rule with the minimum error rate.
In some embodiments, the cryptographic service request information carries identification information of the application server; the transmitting the first quantum information to the server cipher machine through a quantum channel includes:
and transmitting the first quantum information to a server cipher machine through a quantum channel corresponding to the identification information. For example, when multiple application servers send first quantum information to the server crypto-engine, it is necessary to find a quantum channel corresponding to the application server and then send the corresponding first quantum information to the server crypto-engine through the quantum channel.
As can be seen from the above, in the information transmission method provided in the embodiment of the present application, when receiving the password service request information sent by the client, the password service request information is encoded to obtain the first quantum information; transmitting the first quantum information to a server cipher machine through a quantum channel; receiving second quantum information fed back by the server cipher machine through the quantum channel; decoding the second quantum information to obtain the feedback information; because the server cipher machine and the application server transmit information through the quantum channel, the information is prevented from being intercepted, copied or tampered in the information transmission process, and the safety of information transmission is improved.
Referring to fig. 3, fig. 3 is a flowchart of a method for transmitting information according to some embodiments of the present application. The execution main body of the information transmission method is a server cipher machine, and the information transmission method comprises the following steps:
s201, when first quantum information sent by an application server is received, decoding the first quantum information to obtain password service request information; the first quantum information is obtained by encoding the received password service request information by the application server.
S202, feedback information is obtained after the password service request information is processed.
S203, coding the feedback information to obtain second quantum information.
S204, feeding back the second quantum information to the application server through a quantum channel.
In step S201, the first quantum information is obtained by encoding, by the application server, the received cryptographic service request information; the specific encoding process is the same as step S101.
Since the first quantum information is obtained by encoding the code service request information, when the server crypto engine receives the first quantum information, the server crypto engine decodes (inversely converts) the first quantum information to obtain the code service request information. The cryptographic service request message includes one of a type of transaction of encryption and decryption, signature verification, password generation, and key management.
In this step S202, the server cryptographic engine has cryptographic service equipment with encryption and decryption, digital signature, identity authentication, random number production, and so on.
Wherein the feedback information comprises one of encryption information, verification result information, random password information and control information.
And when the password service request information is encryption and decryption, the server password machine encrypts the first quantum information to obtain encrypted information.
And when the password service request information is signature verification, the server password machine verifies the first quantum information to obtain verification result information.
And when the password service request information is generated by a password, the server password machine generates a corresponding random password to obtain random password information.
When the cryptographic service request information is key management, the server cryptographic engine generates corresponding control information.
In step S203, the server cryptographic engine performs quantum coding processing on the feedback information to obtain second quantum information, where the second quantum information is different from the first quantum information. Quantum coding uses some special quantum states to represent quantum bits to achieve the goal of overcoming decoherence. The quantum coding has three forms of quantum error correcting code, quantum error avoiding code and quantum error preventing code. The purpose of the modulation is to adapt the frequency band of the qubit to the high-frequency signal transmitted by the quantum channel.
In step S204, the quantum channel is a secure channel established between the server cryptographic engine and the application server by using the principles of unclonable and collapse during transmission. The capacity of the quantum channel is set according to the capacity of the password service request information, and the bandwidth of the quantum channel is set according to the requirement of transmission time and the capacity of the password service request information.
In some embodiments, the encoding the feedback information to obtain the second quantum information includes: s2031, coding the password service request information to obtain a quantum bit. In an embodiment, the feedback information may be encoded according to a preset encoding rule. S2032, modulating the quantum bit to obtain second quantum information with the quantum state as a carrier.
In one embodiment, the modulation scheme may be determined based on the quantum channel and the qubit. For example, the quantum channel and the qubit are input into a training module, and a specific modulation mode is obtained through training.
In another embodiment, the above method may comprise: determining a target coding rule according to the feedback information; and coding the feedback information according to the target coding rule.
In a preferred embodiment, the determining a target encoding rule according to the feedback information includes: determining a target coding rule according to the type of the feedback information; or training the feedback information through a rule training model to obtain a target coding rule. For example, a plurality of coding rules are stored in advance, and an optimal coding rule is selected from the plurality of coding rules as a target coding rule according to the type of the feedback information; or inputting the feedback information into the rule training model, and training the feedback information through the rule training model to obtain a target coding rule, wherein the target coding rule is a coding rule with the minimum bit error rate. Wherein the type of the feedback information corresponds to the type of the cryptographic service request information.
In some embodiments, the cryptographic service request information carries identification information of the application server; the feeding back the second quantum information to the application server through a quantum channel includes: and feeding back the second quantum information to the application server through a quantum channel corresponding to the identification information. For example, when first quantum information sent by a plurality of application servers is received, a quantum channel corresponding to the application server needs to be found, and then corresponding second quantum information is sent to the corresponding application server through the quantum channel.
In some embodiments, the step of forming feedback information after processing the cryptographic service request information includes: and calling an information processing unit corresponding to the service type of the password service request information, and generating corresponding feedback information after processing the password service request information through the information processing unit.
The server cipher machine is provided with information processing units corresponding to the service types of the cipher service request information, and each information processing unit processes the cipher service request information of the corresponding service type to obtain corresponding feedback information. The information processing unit may be an application program.
As can be seen from the above, in the information transmission method provided in the embodiment of the present application, when the cryptographic service request information sent by the client is received, the cryptographic service request information is encoded to obtain the first quantum information; transmitting the first quantum information to a server cipher machine through a quantum channel; receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is obtained by processing cipher service request information obtained by decoding the first quantum information by the server cipher machine; and decoding the second quantum information to obtain the feedback information.
In an embodiment, a method for transmitting information in some embodiments of the present application is applied to a communication system, and the method for transmitting information includes the following steps:
s301, when an application server receives password service request information sent by a client, the password service request information is encoded to obtain first quantum information;
s302, the application server transmits the first quantum information to a server cipher machine through a quantum channel;
s303, the server cipher machine decodes the first quantum information to obtain the cipher service request information;
s304, the server cipher machine processes the cipher service request information to obtain feedback information;
s305, the server cipher machine carries out coding processing on the feedback information to obtain second quantum information;
s306, the server cipher machine feeds the second quantum information back to the application server through a quantum channel.
S307, the application server decodes the second quantum information to obtain the feedback information.
In a specific embodiment, the client may be a U-shield client, the client sends the request message to an application server of the bank, the request message carries the key encryption information of the U-shield, the application server of the bank quantum-encodes the request message, the information after the coding processing is sent to a server cipher machine through a quantum channel to carry out corresponding cipher service, the server cipher machine carries out decoding processing on the information after the coding processing, the server cipher machine converts the processed information into quantum information through a quantum encoder and an adjuster, decodes the quantum information into a reply message through a quantum encoder which is transmitted to an application server end through a quantum channel, and the bank application server returns the reply message to the client; and the user U shield performs corresponding password service on the returned message.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present application. The method comprises the following steps: a first processing module 31, a transmission module 32, a reception module 33 and a second processing module 34.
The first processing module 31 is configured to, when receiving cryptographic service request information sent by a client, perform encoding processing on the cryptographic service request information to obtain first quantum information. Wherein the cryptographic service request message includes one of a type of transaction of encryption and decryption, signature verification, password generation, and key management. In one embodiment, the first quantum information may be obtained by performing quantum coding on the cryptographic service request information, where the quantum coding uses some special quantum states to represent quantum bits, so as to achieve the purpose of overcoming decoherence. The encoding process includes quantum encoding and modulation. The quantum coding has three forms of quantum error correcting code, quantum error avoiding code and quantum error preventing code. The purpose of the modulation is to adapt the frequency band of the qubit to the high-frequency signal transmitted by the quantum channel.
And the transmission module 32 is used for transmitting the first quantum information to the server cipher machine through a quantum channel. The quantum channel is a secure channel established between the server cipher machine and the application server by utilizing the unclonable principle and the collapse principle in the transmission process. The capacity of the quantum channel is set according to the capacity of the password service request information, and the bandwidth of the quantum channel is set according to the requirement of transmission time and the capacity of the password service request information. The server cipher machine has cipher service equipment with functions of encryption and decryption, digital signature, identity authentication, random number production and the like.
A receiving module 33, configured to receive, through the quantum channel, second quantum information fed back by the server crypto engine; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is formed by decoding the first quantum information by the server cipher machine and processing the decoded information. The feedback information comprises one of encryption information, verification result information, random password information and control information, and when the information after decoding processing is encryption and decryption, the server password machine encrypts the first quantum information to obtain the encryption information. And when the decoded information is signature verification, the server cipher machine verifies the first quantum information to obtain verification result information. And when the decoded information is generated by a password, the server password machine generates a corresponding random password to obtain random password information. And when the decoded information is the key management, the server cipher machine generates corresponding control information. The server cipher machine converts the feedback information into second quantum information, wherein the second quantum information is different from the first quantum information, and the specific conversion mode is as follows. In an embodiment, the feedback information may be subjected to a quantum coding process to obtain second quantum information. Wherein the encoding rule of the feedback information is the same as the encoding rule of the cryptographic service request information.
And the second processing module 34 is configured to decode the second quantum information to obtain the feedback information. And the feedback information is coded to obtain second quantum information, so that when the application server receives the second quantum information, the application server decodes the second quantum information to obtain the feedback information.
In some embodiments, the first processing module 31 comprises:
and an encoding unit 311, configured to encode the cryptographic service request information to obtain a qubit. In one embodiment, the cryptographic service request message may be encoded according to a preset encoding rule.
An adjusting unit 312, configured to modulate the qubit to obtain first quantum information using a quantum state as a carrier. In one embodiment, the modulation scheme may be determined based on the quantum channel and the qubit. For example, the quantum channel and the qubit are input into a training module, and a specific modulation mode is obtained through training.
In some embodiments, the encoding unit 311 is specifically configured to determine a target encoding rule according to the cryptographic service request information; and encoding the password service request information according to the target encoding rule.
In some embodiments, the encoding unit 311 is specifically configured to determine a target encoding rule according to the type of the cryptographic service request information; and/or training the password service request information through a rule training model to obtain a target coding rule. For example, a plurality of coding rules are stored in advance, and the optimal coding rule is selected from the coding rules as a target coding rule according to the type of the password service request information; or inputting the password service request information into the rule training model, and training the rule training model to obtain a target coding rule, wherein the target coding rule is the coding rule with the minimum error rate.
In some embodiments, the cryptographic service request information carries identification information of the application server;
the transmission module 32 is specifically configured to transmit the first quantum information to the server crypto engine through a quantum channel corresponding to the identification information. For example, when multiple application servers send first quantum information to the server crypto-engine, it is necessary to find a quantum channel corresponding to the application server and then send the corresponding first quantum information to the server crypto-engine through the quantum channel.
As can be seen from the above, in the information transmission method provided in the embodiment of the present application, when receiving the password service request information sent by the client, the password service request information is encoded to obtain the first quantum information; transmitting the first quantum information to a server cipher machine through a quantum channel; receiving second quantum information fed back by the server cipher machine through the quantum channel; decoding the second quantum information to obtain the feedback information; because the server cipher machine and the application server transmit information through the quantum channel, the information is prevented from being intercepted, copied or tampered in the information transmission process, and the safety of information transmission is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present application. The device includes: a third processing module 41, a fourth processing module 42, a fifth processing module 43 and a feedback module 44.
A third processing module 41, configured to, when first quantum information sent by an application server is received, perform decoding processing on the first quantum information to obtain cryptographic service request information; the first quantum information is obtained by encoding and adjusting the received password service request information by the application server. The first quantum information is obtained by encoding and adjusting the received password service request information by the application server; the specific encoding process is the same as step S101. Since the first quantum information is obtained by encoding and adjusting the cryptographic service request information, when the server cryptographic engine receives the first quantum information, the server cryptographic engine decodes (inversely converts) the first quantum information to obtain the cryptographic service request information. The cryptographic service request message includes one of a type of transaction of encryption and decryption, signature verification, password generation, and key management.
And the fourth processing module 42 is configured to process the password service request information to obtain feedback information. The server cipher machine has cipher service equipment with functions of encryption and decryption, digital signature, identity authentication, random number production and the like. Wherein the feedback information comprises one of encryption information, verification result information, random password information and control information. And when the password service request information is encryption and decryption, the server password machine encrypts the first quantum information to obtain encrypted information. And when the password service request information is signature verification, the server password machine verifies the first quantum information to obtain verification result information. And when the password service request information is generated by a password, the server password machine generates a corresponding random password to obtain random password information. When the cryptographic service request information is key management, the server cryptographic engine generates corresponding control information.
And a fifth third processing module 43, configured to perform encoding processing on the feedback information to obtain second quantum information. And the server cipher machine carries out quantum coding and demodulation on the feedback information to obtain second quantum information, wherein the second quantum information is different from the first quantum information. Quantum coding uses some special quantum states to represent quantum bits to achieve the goal of overcoming decoherence. The quantum coding has three forms of quantum error correcting code, quantum error avoiding code and quantum error preventing code. The purpose of the modulation is to adapt the frequency band of the qubit to the high-frequency signal transmitted by the quantum channel.
A feedback module 44, configured to feed back the second quantum information to the application server through a quantum channel. The quantum channel is a safe channel established between the server cipher machine and the application server by utilizing the unclonable principle and the collapse principle in the transmission process. The capacity of the quantum channel is set according to the capacity of the password service request information, and the bandwidth of the quantum channel is set according to the requirement of transmission time and the capacity of the password service request information.
In some embodiments, the fourth processing module 42 is specifically configured to invoke an information processing unit corresponding to the service type of the cryptographic service request information, and generate the corresponding feedback information after the information processing unit processes the cryptographic service request information. The server cipher machine is provided with information processing units corresponding to the service types of the cipher service request information, and each information processing unit processes the cipher service request information of the corresponding service type to obtain corresponding feedback information. The information processing unit may be an application program.
In some embodiments, the fifth processing module 43 includes:
an encoding unit 431, configured to encode the feedback information to obtain a qubit; in an embodiment, the feedback information may be encoded according to a preset encoding rule.
And a modulation unit 432, configured to modulate the qubit to obtain second quantum information using a quantum state as a carrier. In one embodiment, the modulation scheme may be determined based on the quantum channel and the qubit. For example, the quantum channel and the qubit are input into a training module, and a specific modulation mode is obtained through training.
In some embodiments, the encoding unit 431 is specifically configured to determine a target encoding rule according to the feedback information; and coding the feedback information according to the target coding rule.
In some embodiments, the encoding unit 431 is specifically configured to determine a target encoding rule according to the type of the feedback information; and/or training the feedback information through a rule training model to obtain a target coding rule. For example, a plurality of coding rules are stored in advance, and an optimal coding rule is selected from the plurality of coding rules as a target coding rule according to the type of the feedback information; or inputting the feedback information into the rule training model, and training the feedback information through the rule training model to obtain a target coding rule, wherein the target coding rule is a coding rule with the minimum bit error rate. Wherein the type of the feedback information corresponds to the type of the cryptographic service request information.
In some embodiments, the cryptographic service request information carries identification information of the application server;
the feedback module 44 is specifically configured to feed back the second quantum information to the application server through the quantum channel corresponding to the identification information. For example, when first quantum information sent by a plurality of application servers is received, a quantum channel corresponding to the application server needs to be found, and then corresponding second quantum information is sent to the corresponding application server through the quantum channel.
As can be seen from the above, in the information transmission method provided in the embodiment of the present application, when first quantum information sent by an application server is received, the first quantum information is decoded to obtain cryptographic service request information; processing the password service request information to obtain feedback information; coding the feedback information to obtain second quantum information; feeding back the second quantum information to the application server through a quantum channel; because the server cipher machine and the application server transmit information through the quantum channel, the information is prevented from being intercepted, copied or tampered in the information transmission process, and the safety of information transmission is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application, in which an electronic device 3 includes: the processor 301 and the memory 302, the processor 301 and the memory 302 being interconnected and communicating with each other via a communication bus 303 and/or other form of connection mechanism (not shown), the memory 302 storing a computer program executable by the processor 301, the processor 301 executing the computer program when the computing device is running to perform the method of any of the alternative implementations of the embodiments described above.
The embodiment of the present application provides a storage medium, and when being executed by a processor, the computer program performs the method in any optional implementation manner of the above embodiment. The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A method for transmitting information, comprising:
when password service request information sent by a client is received, encoding the password service request information to obtain first quantum information;
transmitting the first quantum information to a server cipher machine through a quantum channel;
receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is obtained by processing cipher service request information obtained by decoding the first quantum information by the server cipher machine;
and decoding the second quantum information to obtain the feedback information.
2. The method for transmitting information according to claim 1, wherein the encoding the cryptographic service request information to obtain first quantum information includes:
encoding the password service request information to obtain a quantum bit;
and modulating the quantum bit to obtain first quantum information taking a quantum state as a carrier.
3. The method of claim 2, wherein the encoding the cryptographic service request message to obtain qubits comprises:
determining a target coding rule according to the password service request information;
and coding the password service request information according to the target coding rule to obtain a quantum bit.
4. The method of claim 3, wherein the determining a target encoding rule according to the cryptographic service request message comprises:
determining a target coding rule according to the type of the password service request information; or the like, or, alternatively,
and training the password service request information through a rule training model to obtain a target coding rule.
5. The information transmission method according to claim 1, wherein the cryptographic service request information carries identification information of the application server;
the transmitting the first quantum information to a server cipher machine through a quantum channel comprises;
and transmitting the first quantum information to a server cipher machine through a quantum channel corresponding to the identification information.
6. A method for transmitting information, comprising:
when first quantum information sent by an application server is received, decoding the first quantum information to obtain password service request information; the first quantum information is obtained by encoding the received password service request information by the application server;
processing the password service request information to obtain feedback information;
coding the feedback information to obtain second quantum information;
and feeding back the second quantum information to the application server through a quantum channel.
7. The method according to claim 6, wherein the processing the cryptographic service request message to obtain feedback information comprises:
and calling an information processing unit corresponding to the service type of the password service request information, and generating corresponding feedback information after processing the password service request information through the information processing unit.
8. The information transmission method according to claim 6, wherein the encoding of the feedback information to obtain second quantum information includes:
coding the feedback information to obtain a quantum bit;
and modulating the quantum bit to obtain second quantum information taking a quantum state as a carrier.
9. The method of claim 6, wherein the encoding the feedback information to obtain qubits comprises:
determining a target coding rule according to the feedback information;
and coding the feedback information according to the target coding rule to obtain a quantum bit.
10. The method of claim 6, wherein the determining a target coding rule is based on the feedback information;
determining a target coding rule according to the type of the feedback information; or the like, or, alternatively,
and training the feedback information through a rule training model to obtain a target coding rule.
11. The information transmission method according to claim 6, wherein the cryptographic service request information carries identification information of the application server;
the feeding back the second quantum information to the application server through a quantum channel includes:
and feeding back the second quantum information to the application server through a quantum channel corresponding to the identification information.
12. An apparatus for transmitting information, comprising:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for coding password service request information to obtain first quantum information when the password service request information sent by a client is received;
the transmission module is used for transmitting the first quantum information to the server cipher machine through a quantum channel;
the receiving module is used for receiving second quantum information fed back by the server cipher machine through the quantum channel; the second quantum information is obtained by encoding feedback information by the server cipher machine, and the feedback information is obtained by processing cipher service request information obtained by decoding the first quantum information by the server cipher machine;
and the second processing module is used for decoding the second quantum information to obtain the feedback information.
13. An apparatus for transmitting information, comprising:
the third processing module is used for decoding the first quantum information when the first quantum information sent by the application server is received to obtain password service request information; the first quantum information is obtained by encoding the received password service request information by the application server;
the fourth processing module is used for processing the password service request information to obtain feedback information;
the fifth processing module is used for coding the feedback information to obtain second quantum information;
and the feedback module is used for feeding back the second quantum information to the application server through a quantum channel.
14. An electronic device comprising a processor and a memory, the memory storing computer readable instructions that, when executed by the processor, perform the method of any of claims 1-11.
15. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the method according to any of claims 1-11.
CN202011463109.0A 2020-12-11 2020-12-11 Information transmission method and device, electronic equipment and storage medium Active CN112583604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011463109.0A CN112583604B (en) 2020-12-11 2020-12-11 Information transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011463109.0A CN112583604B (en) 2020-12-11 2020-12-11 Information transmission method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112583604A true CN112583604A (en) 2021-03-30
CN112583604B CN112583604B (en) 2023-01-10

Family

ID=75131731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011463109.0A Active CN112583604B (en) 2020-12-11 2020-12-11 Information transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112583604B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101427509A (en) * 2006-04-18 2009-05-06 Magiq技术公司 Key management and user authentication for quantum cryptography networks
CN101697512A (en) * 2009-11-09 2010-04-21 中国电子科技集团公司第三十研究所 Method and system for anti-interference quantum secure direct communication
CN102281136A (en) * 2011-07-28 2011-12-14 中国电力科学研究院 Quantum key distribution system for safety communication of electric vehicle intelligent charging network
CN109462471A (en) * 2018-12-28 2019-03-12 有份儿智慧科技股份有限公司 The method of information transmission encryption based on national secret algorithm in conjunction with Technique on Quantum Communication
CN110717595A (en) * 2019-09-30 2020-01-21 深圳前海微众银行股份有限公司 Quantum algorithm-based key value storage system and method
CN111525964A (en) * 2019-02-01 2020-08-11 索尼公司 Quantum communication device and method for quantum communication
CN111770088A (en) * 2020-06-29 2020-10-13 南方电网科学研究院有限责任公司 Data authentication method, device, electronic equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101427509A (en) * 2006-04-18 2009-05-06 Magiq技术公司 Key management and user authentication for quantum cryptography networks
CN101697512A (en) * 2009-11-09 2010-04-21 中国电子科技集团公司第三十研究所 Method and system for anti-interference quantum secure direct communication
CN102281136A (en) * 2011-07-28 2011-12-14 中国电力科学研究院 Quantum key distribution system for safety communication of electric vehicle intelligent charging network
CN109462471A (en) * 2018-12-28 2019-03-12 有份儿智慧科技股份有限公司 The method of information transmission encryption based on national secret algorithm in conjunction with Technique on Quantum Communication
CN111525964A (en) * 2019-02-01 2020-08-11 索尼公司 Quantum communication device and method for quantum communication
CN110717595A (en) * 2019-09-30 2020-01-21 深圳前海微众银行股份有限公司 Quantum algorithm-based key value storage system and method
CN111770088A (en) * 2020-06-29 2020-10-13 南方电网科学研究院有限责任公司 Data authentication method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112583604B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN111079128B (en) Data processing method and device, electronic equipment and storage medium
CN109194465B (en) Method for managing keys, user equipment, management device and storage medium
CN100531365C (en) IPTV authentication and authorization method, server and system
CN108075879B (en) Data encryption and decryption method, device and system
CN114614994B (en) Communication method, device, client and storage medium of API (application program interface) data
CN102594551B (en) Method for reliable statistics of privacy data on radio frequency identification (RFID) tag
CN112653556B (en) TOKEN-based micro-service security authentication method, device and storage medium
US9231927B2 (en) Information processing apparatus, data generation method, information processing method, and information processing system for updating and verifying software programs
CN112491549A (en) Data information encryption verification method, system and computer readable storage medium
CN115277094B (en) Communication method, terminal, system and storage medium based on block chain
CN114499857B (en) Method for realizing data correctness and consistency in encryption and decryption of large data quanta
CN116074039A (en) File secure transmission method and system based on HTTPS protocol
CN1649295A (en) Device and its method for end-to-end enciphering and deenciphering in clony system
Yang et al. Cryptanalysis and improvement of a controlled quantum secure direct communication with authentication protocol based on five-particle cluster state
CN107786338B (en) Shared platform in dynamic password verification
US20240001977A1 (en) Method for data processing in a computing environment with distributed computers and railway application
CN112583604B (en) Information transmission method and device, electronic equipment and storage medium
HU224845B1 (en) Method and device for guaranteeing the integrity and authenticity of a set of data
US8935527B2 (en) Secure transmission with error correcting code
CN115102768A (en) Data processing method and device and computer equipment
CN114268655A (en) socket communication method and system
CN107493262B (en) Method and device for transmitting data
CN114679312B (en) Encryption method, electronic device, and computer-readable storage medium
CN113852471B (en) Data communication method and device based on resource-limited scene
CN110969529A (en) Communication method, device and system for digital asset transaction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant