Information security transmission method, system and device based on quantum key and medium

By establishing a key storage terminal in a mobile device, using quantum key distribution and exclusive key encryption technology, the application key is converted into quantum state for storage and transmission, and the problem of account password leakage and convenience in mobile devices is solved, and the problem of realizing the The absolute security and efficient and secure storage of application keys.

CN119316137APending Publication Date: 2025-01-14BEIJING ZHICHENG DINGTAI TECH DEV CO LTD

Patent Information

Application Number
CN202411685742.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-23
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing information security storage and transmission technology has the risk of account password leakage in mobile devices, and the secure transmission technology based on quantum keys is inconvenient to use when it passes a USB flash drive or TF card as a carrier, and information is easily intercepted.

Method used

By establishing a key storage terminal, using quantum keys to generate exclusive keys, encrypt the application key, and convert the encryption key into quantum state for transmission and storage, the user can resolve the quantum state secret through authentication when needed key to obtain the application key.

Benefits of technology

It realizes the absolute security of application keys, avoids the risk of password leakage, and improves the effectiveness and convenience of secure storage of APP passwords.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316137A_ABST
    Figure CN119316137A_ABST
Patent Text Reader

Abstract

The invention discloses an information security transmission method, system and device based on a quantum key and a medium, and relates to the technical field of information security storage and transmission, and the method comprises the following steps: connecting with an SIM card of a user, and converting an application key into a quantum state when the application key needs to be stored in an APP in a mobile device of the user; secret key transmission and storage are carried out by using a quantum state; when the user needs to use the application key, the identity information of the user is verified, and then the key in the quantum state is analyzed; the method is used for solving the problems that according to an existing information safety storage and transmission technology, transmitted information is easily intercepted, a safety transmission technology based on a quantum key uses a USB flash disk and a TF card as carriers, so that information of a user is easily leaked, and mobile quantum key communication is not convenient enough to use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information security storage and transmission, and specifically to a method, system, device and medium for information security transmission based on quantum keys. Background Art

[0002] Information security storage and transmission technology refers to a series of technologies and methods used to protect data from unauthorized access, theft, tampering or destruction during storage and transmission. These technologies are designed to ensure the confidentiality, integrity and availability of data to prevent data leakage, tampering or loss. Information security storage and transmission technology involves multiple security mechanisms such as encryption, access control, identity authentication and secure transmission protocols to ensure that data is fully protected during storage and transmission.

[0003] Existing information security storage and transmission technologies include many applications, and current mobile devices usually have a password saving function, which can save user account passwords of various APPs to provide users with convenient application services, allowing users to log in to applications faster, but conventional security storage and transmission technologies are easily intercepted. If a user's mobile phone is lost or hacked, there is a risk of account passwords being stolen. Quantum communication technology can well ensure the security of application keys, but existing mobile quantum key communication technologies usually use U disk or TF card as key carriers, resulting in the use of mobile quantum key communication technology is not convenient enough, and users are difficult to combine with mobile devices. For example, in the patent application with publication number CN114218555A, "Enhanced password management APP password security strength method and device, storage medium" is disclosed. This scheme encrypts, transmits and stores APP passwords through conventional encryption methods. When APP passwords are transmitted through ordinary channels, there is a risk of being stolen and easily intercepted by malicious software, resulting in the leakage of users' APP passwords. Existing information security storage and transmission technologies also have the problem that the transmitted information is easily intercepted and the security transmission technology based on quantum keys uses U disk and TF card as carriers, resulting in the leakage of user information and the inconvenience of using mobile quantum key communication. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, by establishing a key storage terminal, generating exclusive keys for the key storage terminal and the user through quantum key distribution, and then encrypting the application key through the exclusive key to obtain an encryption key, and then converting the encryption key into a quantum state, and then using the quantum state for key transmission and storage, and finally when the user needs to use the application key, verifying the user's identity information, and then parsing the quantum state key, so as to solve the problems that the existing information security storage and transmission technology still has the problem that the transmitted information is easily intercepted, and the security transmission technology based on quantum keys uses U disk and TF card as carriers, which leads to the easy leakage of user information and the inconvenience of using mobile quantum key communication.

[0005] To achieve the above objectives, in a first aspect, the present application provides a method for secure information transmission based on quantum keys, comprising the following steps: Connected to the user's SIM card, for the APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; Using quantum states for key transmission and storage; When the user needs to use the application key, the user's identity information is verified and then the quantum state key is parsed.

[0006] Furthermore, the SIM card of the user is connected to the APP in the user's mobile device, and when the application key needs to be stored, the application key is converted into a quantum state, including the following sub-steps: Establish a key storage terminal and generate exclusive keys for the key storage terminal and users through quantum key distribution; Encrypt the application key using a dedicated key to obtain an encryption key; Convert encryption keys into quantum states.

[0007] Furthermore, establishing a key storage terminal and generating a dedicated key for the key storage terminal and the user through quantum key distribution includes the following sub-steps: Establishing a key storage terminal, wherein the key storage terminal is used to store an application key of a user in a quantum state; A photon receiving sequence of the first digit is randomly generated by the key storage terminal, wherein the photon receiving sequence is composed of a linear polarization basis and a diagonal polarization basis in a random arrangement; The user sets a first digit of the photon sequence, the photon sequence consisting of a horizontal polarization basis, a vertical polarization basis, a 45° polarization basis, and a 135° polarization basis; The horizontal polarization basis and the vertical polarization basis belong to the linear polarization basis, the 45° polarization basis and the 135° polarization basis belong to the diagonal polarization basis, and a photon transmission sequence is generated based on the photon sequence set by the user; The user sends a photon sequence to the key storage terminal. After receiving the photon sequence, the key storage terminal measures the photon sequence according to the photon reception sequence to obtain a measurement result. The photon sending sequence and the photon receiving sequence are transmitted through a common channel, and the polarization bases in the photon sending sequence are numbered and marked as F from left to right. n , the polarization bases in the photon reception sequence are numbered and labeled S from left to right. n , where n is a non-zero natural number and n is the sequence number of F and S; Starting with n=1, compare F n and S n Are they the same? If they are the same, output a signal with the same polarization; if they are different, output a signal with different polarization. Re-compare n+1 and stop comparing until the maximum value of n is reached; Extract the S output signals with the same polarization according to the order of n from small to large n , the extracted number is the exclusive key.

[0008] Furthermore, encrypting the application key with the dedicated key to obtain the encryption key includes the following sub-steps: Connected to the user's SIM card, for the APP in the user's mobile device, the application key to be stored is marked as a key to be stored; Number the elements in the stored key from left to right, using the symbol P i Indicates, where i is a non-zero natural number and i is the serial number of P. According to ASCII encoding, P i Convert to binary data and get E i ; The elements in the unique key are numbered from left to right, using the symbol R h Indicates, where h is a non-zero natural number and h is the serial number of R, the maximum value of h is marked as H; From left to right, i The elements in E are numbered and represented by the symbol T(i,j), where j is a non-zero natural number and (i,j) is the serial number of T. T(i,j) represents E i The jth digit in ; Starting with i=1, T(i,j) and R are calculated according to the binary calculation rules. j%H Add, mark the last digit of the result as G(i,j), the R j%H That is, h=j%H of R h , analyze T(i,j) for all values ​​of j, then add i+1 and analyze G(i,j) again until i reaches its maximum value; The G(i,j) is the encryption key.

[0009] Furthermore, converting the encryption key into a quantum state comprises the following sub-steps: The horizontal polarization basis, vertical polarization basis, 45° polarization basis and 135° polarization basis are collectively referred to as angle polarization basis. The photon sequence is obtained and the angle polarization basis in the photon sequence is numbered from left to right. d It means, where d is a non-zero natural number and d is the serial number of U; The horizontal polarization base represents 0, the vertical polarization base represents 1, the 45° polarization base represents 1, and the 135° polarization base represents 0; For any value of i, starting with j=d=1, compare G(i,j) with U d Are they the same? If they are the same, a valid data signal is output; if they are not the same, an invalid data signal is output; If the output data is valid, U d Mark it as Q(i,d), increase j and d by 1 and compare again; if the output data is invalid, then U d Mark it as V(i,d), and re-align it at the same time d+1; The linear polarization basis and the diagonal polarization basis are collectively referred to as the observation basis. According to the order of d from small to large, U d Is it Q(i,d) or V(i,d)? If it is Q(i,d), choose the same as U d The same observation basis is marked as K(i,d). If it is V(i,d), then select the same observation basis as U d Different observation bases are marked as K(i,d); For different values ​​of i, different observation sequences are composed of K(i,d).

[0010] Furthermore, using quantum states for key transmission and storage includes the following sub-steps: The photon sequence and the observation sequence together constitute an encryption key of the quantum state; The photon sequence and the observation sequence are stored, and the transmission of the encryption key is the transmission of the photon sequence. When the encryption key needs to be decrypted, it is transmitted through the photon sequence.

[0011] Furthermore, when the user needs to use the application key, the user's identity information is verified, and then the quantum state key is parsed, including the following sub-steps: When a user needs to use an application key, the user's identity information is verified, including face recognition and fingerprint recognition; After verification, the photon sequence and observation sequence are obtained, and the observation sequence is marked as Y for any value of i.i , according to the photon receiving sequence and photon sending sequence to verify the exclusive key, by observing the sequence Y i Verify with the photon sending sequence to obtain the encryption key G(i,j); The encryption key is then parsed using a dedicated key to ultimately obtain the user's application key.

[0012] In a second aspect, the present application provides a quantum key-based information security transmission system, including a quantum key processing terminal, a quantum key storage module, and a quantum key analysis module; the quantum key storage module and the quantum key analysis module are respectively connected to the quantum key processing terminal data; The quantum key processing terminal is used to connect to the user's SIM card, and for an APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; The quantum key storage module is used to transmit and store keys using quantum states; The quantum key analysis module is used to verify the user's identity information when the user needs to use the application key, and then analyze the quantum state key.

[0013] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are performed.

[0014] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are performed.

[0015] Beneficial effects of the present invention: The present invention establishes a key storage terminal, generates a dedicated key for the key storage terminal and the user through quantum key distribution, and then encrypts the application key through the dedicated key to obtain an encryption key, and then converts the encryption key into a quantum state, and then uses the quantum state to transmit and store the key. The advantage is that the quantum channel has the characteristics of being non-eavesdropping and non-copyable. According to current technology, quantum communication is considered to be absolutely secure. The application key is encrypted by the quantum key, and then the encryption key is converted into a quantum state for storage. When the quantum state is stored, the encryption key can also be absolutely secure, and the application key will not be transmitted through an ordinary channel, which eliminates the possibility of being stolen, and improves the effectiveness and security of the secure storage of APP passwords. The present invention verifies the user's identity information when the user needs to use the application key, and then parses the quantum state key. The advantage is that the application key is encrypted by the quantum key and stored in the form of a quantum state. The correct application key can only be obtained by the recipient through observation through the correct observation sequence. The observation sequence is only in the hands of the user, and the service provider providing the quantum communication service cannot know the user's application key. The provider of the existing key security storage service is usually able to know the user's application key, which improves the security and applicability of the APP password security storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a functional block diagram of the system of the present invention; Figure 2 A schematic diagram of the principle of generating a dedicated key of the present invention; Figure 3 is a flow chart of the steps of the method of the present invention; Figure 4 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION

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

[0018] Example 1, please refer to Figure 1 As shown, the present application provides a quantum key-based information security transmission system, including a quantum key processing terminal, a quantum key storage module, and a quantum key analysis module; the quantum key storage module and the quantum key analysis module are respectively connected to the quantum key processing terminal data; The quantum key processing terminal is used to connect to the user's SIM card, and for the APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; the quantum key processing terminal includes a dedicated key generation unit, an application key encryption unit, and a quantum state conversion unit; The exclusive key generation unit is used to establish a key storage terminal and generate exclusive keys for the key storage terminal and the user through quantum key distribution; The exclusive key generation unit is configured with an exclusive key generation strategy, which includes: Establishing a key storage terminal, the key storage terminal is used to store the application key of the user in the quantum state; A photon receiving sequence of the first digit is randomly generated by the key storage terminal, and the photon receiving sequence is composed of a linear polarization basis and a diagonal polarization basis in a random arrangement; In practical applications, the key storage terminal is provided by an information storage service provider, and the first digit is set to 12. The first digit is set to ensure that there are enough exclusive keys after quantum key distribution. In quantum key distribution, the first digit is usually set to 12, and the generated photon receiving sequence is "linear polarization basis, diagonal polarization basis, linear polarization basis, diagonal polarization basis, diagonal polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, and diagonal polarization basis". The user sets the first digit of the photon sequence, which consists of a horizontal polarization basis, a vertical polarization basis, a 45° polarization basis, and a 135° polarization basis; The horizontal polarization basis and the vertical polarization basis belong to the linear polarization basis, and the 45° polarization basis and the 135° polarization basis belong to the diagonal polarization basis. Based on the photon sequence set by the user, a photon sending sequence is generated; In actual applications, the photon sequence is set by the user, and the obtained photon sequence is "horizontal polarization basis, vertical polarization basis, 45° polarization basis, 135° polarization basis, vertical polarization basis, 135° polarization basis, horizontal polarization basis, vertical polarization basis, 45° polarization basis, horizontal polarization basis, 135° polarization basis and 45° polarization basis"; based on the photon sequence, the photon sending sequence is "linear polarization basis, linear polarization basis, diagonal polarization basis, diagonal polarization basis, linear polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, diagonal polarization basis, linear polarization basis, diagonal polarization basis and diagonal polarization basis"; See also Figure 2 As shown, the user sends a photon sequence to the key storage terminal. After receiving the photon sequence, the key storage terminal measures the photon sequence according to the photon receiving sequence to obtain a measurement result. In practical applications, usually, in quantum communication, the horizontal polarization basis observed by the linear polarization basis represents 0, the vertical polarization basis represents 1, and the 45° polarization basis and 135° polarization basis observed by the linear polarization basis are 0 or 1, the 45° polarization basis observed by the diagonal polarization basis represents 1, the 135° polarization basis represents 0, and the horizontal polarization basis and the vertical polarization basis observed by the diagonal polarization basis are 0 or 1. When observing the superposition state of 0 or 1 at different times, different observation results will be obtained. Based on the above concepts, the photon sequence is measured according to the photon reception sequence, and the measurement result is "010010011011"; The photon sending sequence and the photon receiving sequence are transmitted through a common channel, and the polarization bases in the photon sending sequence are numbered and marked as F from left to right. n, the polarization bases in the photon reception sequence are numbered and labeled S from left to right. n , where n is a non-zero natural number and n is the sequence number of F and S; Starting with n=1, compare F n and S n Are they the same? If they are the same, output a signal with the same polarization; if they are different, output a signal with different polarization. Re-compare n+1 and stop comparing until the maximum value of n is reached; Extract the S output signals with the same polarization according to the order of n from small to large n , the extracted number is the exclusive key; In practical applications, the photon sending sequence and the photon receiving sequence are numbered to obtain F 1 To F 12 and S 1 To S 12 The specific sorting is based on the order from left to right in the photon sending sequence and the photon receiving sequence, which will not be listed here; starting with n=1, the comparison results in F 1 and S 1 Same, output the same polarization signal, n+1, now n=2, compare to get F 2 and S 2 If they are not the same, signals with different polarizations are output, and then n+1, and so on, until n=12 is analyzed. Among them, when n=1, 4, 6, 7, 8, 9, 10 or 12, signals with the same polarization are output, then S is extracted. 1 , S 4 , S 6 , S 7 , S 8 , S 9 , S 10 and S 12 The observed result, i.e. the 1st, 4th, 6th, 7th, 8th, 9th, 10th and 12th digits in the measurement result "010010011011", gives the unique key 00001101; The application key encryption unit is used to encrypt the application key using a dedicated key to obtain an encryption key; The application key encryption unit is configured with an application key encryption policy, which includes: Connected to the user's SIM card, for the APP in the user's mobile device, the application key to be stored is marked as a key to be stored; Number the elements in the stored key from left to right, using the symbol P i Indicates, where i is a non-zero natural number and i is the serial number of P. According to ASCII encoding, P i Convert to binary data and get Ei ; In practical applications, in this embodiment, unlike the existing mobile quantum key communication technology that uses a USB flash drive or a TF card as a key carrier, in this embodiment, a SIM card is used as a key carrier to construct a quantum SIM card, thereby realizing the convenient application of quantum communication on mobile devices; in this embodiment, it is detected that the user needs to store the login password of application A, and the application key obtained is "aB123Xy", and P is obtained by numbering. 1 To P 7 They are a, B, 1, 2, 3, X, and y, which are converted into binary data to get E. 1 To E 7 They are 01100001, 01000010, 00110001, 00110010, 00110011, 01011000 and 01111001 respectively; The elements in the unique key are numbered from left to right, using the symbol R h Indicates, where h is a non-zero natural number and h is the serial number of R, the maximum value of h is marked as H; From left to right, i The elements in E are numbered and represented by the symbol T(i,j), where j is a non-zero natural number and (i,j) is the serial number of T. T(i,j) represents E i The jth digit in ; Starting with i=1, T(i,j) and R are calculated according to the binary calculation rules. j%H Add, and mark the last digit of the result as G(i,j), R j%H That is, h=j%H of R h , analyze T(i,j) for all values ​​of j, then add i+1 and analyze G(i,j) again until i reaches its maximum value; G(i,j) is the encryption key; In actual application, the exclusive key is 00001101, and R is obtained by numbering 1 To R 8 , the maximum value of h is 8, with E 1 For example, E 1 is 01100001, and by numbering, we get T(1,1) to T(1,8) as 0, 1, 1, 0, 0, 0, 0, and 1, and so on. i The elements in are numbered; starting with i=1, T(1,1) and R 1%8 Add, % is the modulo operator, 1%8=1, so add T(1,1) and R 1%8 Adding is to add T(1,1) and R 1Add them together and the result is 0+0=0. The last digit is 0, that is, G(1,1)=0. Analyze them one by one and calculate T(1,8)+R 8 When , since it is a binary calculation, the calculation result is 1+1=10, and the last digit is 0, that is, G(1,8)=0. By analogy, all G(i,j) are calculated. G(i,j) is grouped according to i, and the encryption key is formed by sorting them in ascending order according to j. Grouping according to i, G(1,j) is 01101100, where the first digit represents G(1,1) and the last digit represents G(1,8). Similarly, G(2,j) to G(7,j) are 01001111, 00111100, 00111111, 00111111, 01010101, and 01110100 respectively. The quantum state conversion unit is used to convert the encryption key into a quantum state; The quantum state conversion unit is configured with a quantum state conversion strategy, which includes: The horizontal polarization basis, vertical polarization basis, 45° polarization basis and 135° polarization basis are collectively referred to as angle polarization basis. The photon sequence is obtained and the angle polarization basis in the photon sequence is numbered from left to right. d It means, where d is a non-zero natural number and d is the serial number of U; The horizontal polarization base represents 0, the vertical polarization base represents 1, the 45° polarization base represents 1, and the 135° polarization base represents 0; In practical applications, the photon sequence is "horizontal polarization base, vertical polarization base, 45° polarization base, 135° polarization base, vertical polarization base, 135° polarization base, horizontal polarization base, vertical polarization base, 45° polarization base, horizontal polarization base, 135° polarization base and 45° polarization base", numbered U 1 toU 12 , since the horizontal polarization basis represents 0, the vertical polarization basis represents 1, the 45° polarization basis represents 1, and the 135° polarization basis represents 0, therefore U 1 toU 12 It can also be expressed as 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, and 1; For any value of i, starting with j=d=1, compare G(i,j) with U d Are they the same? If they are the same, a valid data signal is output; if they are not the same, an invalid data signal is output; If the output data is valid, then U d Mark it as Q(i,d), increase j and d by 1 and compare again; if the output data is invalid, then U d Mark it as V(i,d), and re-align it at the same time d+1; The linear polarization basis and the diagonal polarization basis are collectively referred to as the observation basis. According to the order of d from small to large, U d Is it Q(i,d) or V(i,d)? If it is Q(i,d), choose the same as U d The same observation basis is marked as K(i,d). If it is V(i,d), then select the same observation basis as U d Different observation bases are marked as K(i,d); According to different values ​​of i, different observation sequences are composed of K(i,d); In practical applications, take i=1 as an example, start with j=d=1, and compare G(1,1) with U 1 , then G(1,1) and U 1 are all 0, output data valid signal, and U 1 Mark it as Q(1,1), increase both j and d by 1, and compare G(1,2) with U 2 , then G(1,2) and U 2 are all 1, output data valid signal, and U 2 Mark it as Q(1,2)=1, and so on. When j=d=6 is analyzed, compare G(1,6) with U 6 , then G(1,6) and U 6 If they are not the same, the data will be invalid and the U 6 Mark it as V(i,6), and compare d+1, G(1,6) with U 7 , then G(1,6) and U 7 If they are not the same, the data will be invalid and the U 7 Marked as V(1,7), and analyzed in this way, we finally get d=1, 2, 3, 4, 5, 8, 10 and 11 as Q(i,d). Since the photon sequence is “horizontal polarization basis, vertical polarization basis, 45° polarization basis, 135° polarization basis, vertical polarization basis, 135° polarization basis, horizontal polarization basis, vertical polarization basis, 45° polarization basis, horizontal polarization basis, 135° polarization basis and 45° polarization basis”, when d=1, 2, 3, 4, 5, 8, 10 and 11, the observation basis that is the same as the corresponding position in the photon sequence is selected, and when d=6, 7, 9 and 12, the observation basis that is different from the corresponding position in the photon sequence is selected, and the observation sequences K(1,1) to K(1,12) are “linear polarization basis, linear polarization basis, diagonal polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, linear polarization basis, diagonal polarization basis and linear polarization basis” respectively.

[0019] The quantum key storage module is used to transmit and store keys using quantum states; The quantum key storage module is configured with a quantum key storage strategy, which includes: The photon sequence and the observation sequence together constitute the encryption key of the quantum state; The photon sequence and the observation sequence are stored. The transmission of the encryption key is the transmission of the photon sequence. When the encryption key needs to be decrypted, it is transmitted through the photon sequence. In actual applications, the photon sequence and the observation sequence are stored. The observation sequence only exists in the user's mobile device, and the photon sequence is stored in the key storage terminal. Only by observing the correct photon sequence through the correct observation sequence can the correct encryption key be obtained, and the acquisition process cannot be monitored or intercepted, which ensures the absolute security of the encryption key. In addition, only the photon sequence corresponding to the user is saved in the key storage terminal. When the data is saved by a third party, the third party cannot know the specific content of the saved data. In the existing third-party information security storage technology, the third party can usually know all the saved content.

[0020] The quantum key analysis module is used to verify the user's identity information and then analyze the quantum key when the user needs to use the application key; The quantum key analysis module is configured with a quantum key analysis strategy, which includes: When a user needs to use an application key, the user's identity information is verified, including face recognition and fingerprint recognition; After verification, the photon sequence and observation sequence are obtained, and the observation sequence is marked as Y for any value of i. i , according to the photon receiving sequence and photon sending sequence to verify the exclusive key, by observing the sequence Y i Verify with the photon sending sequence to obtain the encryption key G(i,j); The encryption key is then parsed using a dedicated key to ultimately obtain the user's application key; In practical applications, the existing face recognition technology and fingerprint recognition technology are used to verify the identity information. After the verification is passed, the observation sequence is read from the user's mobile device, and then the photon sequence corresponding to the user is extracted from the key storage terminal. In this embodiment, taking i=1 as an example, when i=1, the observation sequence corresponding to K(1,d) is "linear polarization basis, linear polarization basis, diagonal polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, diagonal polarization basis, linear polarization basis, linear polarization basis, linear polarization basis, diagonal polarization basis and linear polarization basis", and the photon sequence is "water A plane polarization basis, a vertical polarization basis, a 45° polarization basis, a 135° polarization basis, a vertical polarization basis, a 135° polarization basis, a horizontal polarization basis, a vertical polarization basis, a 45° polarization basis, a horizontal polarization basis, a 135° polarization basis and a 45° polarization basis". Based on the rules in the exclusive key generation unit, the encryption key G(1,j) is observed to be 01101100, and so on. The encryption key G(i,j) is analyzed and obtained. Parsing the encryption key with the exclusive key is actually the inverse operation of encrypting the application key with the exclusive key. Therefore, no specific examples are given in this embodiment.

[0021] Example 2, please refer to Figure 3 As shown, the present application provides a method for secure information transmission based on quantum keys, comprising the following steps: Step S1, connected to the user's SIM card, for the APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; Step S1 includes the following sub-steps: Step S101, establishing a key storage terminal, and generating exclusive keys for the key storage terminal and the user through quantum key distribution; Step S101 includes the following sub-steps: Step S1011, establishing a key storage terminal, the key storage terminal is used to store the application key of the user in the quantum state; Step S1012, the key storage terminal randomly generates a first digit of a photon receiving sequence, where the photon receiving sequence is composed of a linear polarization basis and a diagonal polarization basis in a random arrangement; Step S1013, the user sets the first digit of the photon sequence, the photon sequence consisting of a horizontal polarization basis, a vertical polarization basis, a 45° polarization basis, and a 135° polarization basis; Step S1014: The horizontal polarization basis and the vertical polarization basis belong to the linear polarization basis, the 45° polarization basis and the 135° polarization basis belong to the diagonal polarization basis, and a photon transmission sequence is generated based on the photon sequence set by the user; Step S1015, the user sends a photon sequence to the key storage terminal, and after receiving the photon sequence, the key storage terminal measures the photon sequence according to the photon reception sequence to obtain a measurement result; Step S1016, transmitting the photon sending sequence and the photon receiving sequence through a common channel, numbering the polarization bases in the photon sending sequence, and marking them as F from left to right. n , the polarization bases in the photon reception sequence are numbered and labeled S from left to right. n , where n is a non-zero natural number and n is the sequence number of F and S; Step S1017, starting with n=1, compare F n and S n Are they the same? If they are the same, output a signal with the same polarization; if they are different, output a signal with different polarization. Re-compare n+1 and stop comparing until the maximum value of n is reached; Step S1018, extracting the S output signals with the same polarization according to the order of n from small to large n , the extracted number is the exclusive key; Step S102, encrypting the application key with a dedicated key to obtain an encryption key; Step S102 includes the following sub-steps: Step S1021, connecting to the user's SIM card, and marking the application key to be stored as a key to be stored for the APP in the user's mobile device; Step S1022: number the elements in the key to be stored from left to right, using the symbol P i Indicates, where i is a non-zero natural number and i is the serial number of P. According to ASCII encoding, P i Convert to binary data and get E i ; Step S1023: number the elements in the exclusive key from left to right, using the symbol R h Indicates, where h is a non-zero natural number and h is the serial number of R, the maximum value of h is marked as H; Step S1024, sort E from left to right i The elements in E are numbered and represented by the symbol T(i,j), where j is a non-zero natural number and (i,j) is the serial number of T. T(i,j) represents E i The jth digit in ; Step S1025, starting with i=1, T(i,j) and R are calculated according to the binary calculation rule. j%H Add, and mark the last digit of the result as G(i,j), R j%H That is, h=j%H of R h , analyze T(i,j) for all values ​​of j, then add i+1 and analyze G(i,j) again until i reaches its maximum value; Step S1026, G(i,j) is the encryption key; Step S103, converting the encryption key into a quantum state; Step S103 includes the following sub-steps: Step S1031, the horizontal polarization basis, the vertical polarization basis, the 45° polarization basis and the 135° polarization basis are collectively referred to as the angle polarization basis, a photon sequence is obtained, and the angle polarization basis in the photon sequence is numbered from left to right, and the angle polarization basis is represented by the symbol U d It means, where d is a non-zero natural number and d is the serial number of U; Step S1032, the horizontal polarization base represents 0, the vertical polarization base represents 1, the 45° polarization base represents 1, and the 135° polarization base represents 0; Step S1033: for any value of i, starting with j=d=1, compare G(i,j) with U d Are they the same? If they are the same, a valid data signal is output; if they are not the same, an invalid data signal is output; Step S1034: If the data is valid, then d Mark it as Q(i,d), increase j and d by 1 and compare again; if the output data is invalid, then U d Mark it as V(i,d), and re-align it at the same time d+1; Step S1035: The linear polarization basis and the diagonal polarization basis are collectively referred to as the observation basis, and U is determined in the order of d from small to large. d Is it Q(i,d) or V(i,d)? If it is Q(i,d), choose the same as U d The same observation basis is marked as K(i,d). If it is V(i,d), then select the same observation basis as U d Different observation bases are marked as K(i,d); Step S1036, according to different values ​​of i, different observation sequences are formed by K(i, d); Step S2, using quantum state to transmit and store key; Step S2 includes the following sub-steps: Step S201, the photon sequence and the observation sequence together constitute the encryption key of the quantum state; Step S202, storing the photon sequence and the observation sequence, the transmission of the encryption key is the transmission of the photon sequence, and when the encryption key needs to be decrypted, it is transmitted through the photon sequence; Step S3, when the user needs to use the application key, the user's identity information is verified, and then the quantum state key is parsed; Step S3 includes the following sub-steps: Step S301, when a user needs to use an application key, the user's identity information is verified, and the identity information verification includes verification by face recognition and fingerprint recognition; Step S302: after verification, obtain the photon sequence and the observation sequence, and mark the observation sequence as Y for any value of i. i , according to the photon receiving sequence and photon sending sequence to verify the exclusive key, by observing the sequence Y i Verify with the photon sending sequence to obtain the encryption key G(i,j); Step S303, the encryption key is parsed using the dedicated key to finally obtain the user's application key.

[0022] Example 3, please refer to Figure 4 As shown, Figure 4 The schematic diagram of the structure of an electronic device is illustrated, and the electronic device may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in the information security transmission method based on quantum keys are executed to achieve the following functions: connecting to the user's SIM card, for the APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; the quantum state is used for key transmission and storage; when the user needs to use the application key, the user's identity information is verified, and then the quantum state key is parsed.

[0023] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0024] Embodiment 4. The present application also provides a computer-readable storage medium. The present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method for secure information transmission based on quantum keys are executed to achieve the following functions: connecting to the user's SIM card, for the APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; the quantum state is used to transmit and store the key; when the user needs to use the application key, the user's identity information is verified, and then the quantum state key is parsed.

[0025] Through the description of the above implementation methods, the embodiments of the present invention can be provided as methods, systems or computer program products. Based on such an understanding, the above technical solutions can be essentially or partly contributed to the prior art in the form of software products, which can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and include several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0026] In the embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.

[0027] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for secure information transmission based on quantum keys, characterized in that: The steps include: Connected to the user's SIM card, for the APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; Using quantum states for key transmission and storage; When the user needs to use the application key, the user's identity information is verified and then the quantum state key is parsed.

2. The method for secure information transmission based on quantum keys according to claim 1, characterized in that: Connected to the user's SIM card, for the APP in the user's mobile device, when the application key needs to be stored, converting the application key into a quantum state includes the following sub-steps: Establish a key storage terminal and generate exclusive keys for the key storage terminal and users through quantum key distribution; Encrypt the application key using a dedicated key to obtain an encryption key; Convert encryption keys into quantum states.

3. The method for secure information transmission based on quantum key according to claim 2, characterized in that: Establishing a key storage terminal and generating exclusive keys for the key storage terminal and the user through quantum key distribution includes the following sub-steps: Establishing a key storage terminal, wherein the key storage terminal is used to store an application key of a user in a quantum state; A photon receiving sequence of the first digit is randomly generated by the key storage terminal, wherein the photon receiving sequence is composed of a linear polarization basis and a diagonal polarization basis in a random arrangement; The user sets a first digit of the photon sequence, the photon sequence consisting of a horizontal polarization basis, a vertical polarization basis, a 45° polarization basis, and a 135° polarization basis; The horizontal polarization basis and the vertical polarization basis belong to the linear polarization basis, the 45° polarization basis and the 135° polarization basis belong to the diagonal polarization basis, and a photon transmission sequence is generated based on the photon sequence set by the user; The user sends a photon sequence to the key storage terminal. After receiving the photon sequence, the key storage terminal measures the photon sequence according to the photon reception sequence to obtain a measurement result. The photon sending sequence and the photon receiving sequence are transmitted through a common channel, and the polarization bases in the photon sending sequence are numbered and marked as F from left to right. n , the polarization bases in the photon reception sequence are numbered and labeled S from left to right. n , where n is a non-zero natural number and n is the sequence number of F and S; Starting with n=1, compare F n and S n Are they the same? If they are the same, output a signal with the same polarization; if they are different, output a signal with different polarization. Re-compare n+1 and stop comparing until the maximum value of n is reached; Extract the S output signals with the same polarization according to the order of n from small to large n , the extracted number is the exclusive key.

4. The method for secure information transmission based on quantum key according to claim 3, characterized in that: Encrypting the application key with a dedicated key to obtain the encryption key includes the following sub-steps: Connected to the user's SIM card, for the APP in the user's mobile device, the application key to be stored is marked as a key to be stored; Number the elements in the stored key from left to right, using the symbol P i Indicates, where i is a non-zero natural number and i is the serial number of P. According to ASCII encoding, P i Convert to binary data and get E i ; The elements in the unique key are numbered from left to right, using the symbol R h Indicates, where h is a non-zero natural number and h is the serial number of R, the maximum value of h is marked as H; From left to right, i The elements in E are numbered and represented by the symbol T(i,j), where j is a non-zero natural number and (i,j) is the serial number of T. T(i,j) represents E i The jth digit in ; Starting with i=1, T(i,j) and R are calculated according to the binary calculation rules. j%H Add, mark the last digit of the result as G(i,j), the R j%H That is, h=j%H of R h , analyze T(i,j) for all values ​​of j, then add i+1 and analyze G(i,j) again until i reaches its maximum value; The G(i,j) is the encryption key.

5. The method for secure information transmission based on quantum key according to claim 4, characterized in that: Converting the encryption key into a quantum state consists of the following sub-steps: The horizontal polarization basis, vertical polarization basis, 45° polarization basis and 135° polarization basis are collectively referred to as angle polarization basis. The photon sequence is obtained and the angle polarization basis in the photon sequence is numbered from left to right. d It means, where d is a non-zero natural number and d is the serial number of U; The horizontal polarization base represents 0, the vertical polarization base represents 1, the 45° polarization base represents 1, and the 135° polarization base represents 0; For any value of i, starting with j=d=1, compare G(i,j) with U d Are they the same? If they are the same, a valid data signal is output; if they are not the same, an invalid data signal is output; If the output data is valid, U d Mark it as Q(i,d), increase j and d by 1 and compare again; if the output data is invalid, then U d Mark it as V(i,d), and re-align it at the same time d+1; The linear polarization basis and the diagonal polarization basis are collectively referred to as the observation basis. According to the order of d from small to large, U d Is it Q(i,d) or V(i,d)? If it is Q(i,d), choose the same as U d The same observation basis is marked as K(i,d). If it is V(i,d), then select the same observation basis as U d Different observation bases are marked as K(i,d); For different values ​​of i, different observation sequences are composed of K(i,d).

6. The method for secure information transmission based on quantum key according to claim 5, characterized in that: Using quantum states for key transmission and storage includes the following sub-steps: The photon sequence and the observation sequence together constitute an encryption key of the quantum state; The photon sequence and the observation sequence are stored, and the transmission of the encryption key is the transmission of the photon sequence. When the encryption key needs to be decrypted, it is transmitted through the photon sequence.

7. The method for secure information transmission based on quantum key according to claim 6, characterized in that: When a user needs to use an application key, the user's identity information is verified, and then the quantum state key is parsed, including the following sub-steps: When a user needs to use an application key, the user's identity information is verified, including face recognition and fingerprint recognition; After verification, the photon sequence and observation sequence are obtained, and the observation sequence is marked as Y for any value of i. i , according to the photon receiving sequence and photon sending sequence to verify the exclusive key, by observing the sequence Y i Verify with the photon sending sequence to obtain the encryption key G(i,j); The encryption key is then parsed using a dedicated key to ultimately obtain the user's application key.

8. A quantum key-based information security transmission system, used to implement the quantum key-based information security transmission method according to any one of claims 1 to 7, characterized in that: It includes a quantum key processing terminal, a quantum key storage module and a quantum key analysis module; the quantum key storage module and the quantum key analysis module are respectively connected to the quantum key processing terminal data; The quantum key processing terminal is used to connect to the user's SIM card, and for an APP in the user's mobile device, when the application key needs to be stored, the application key is converted into a quantum state; The quantum key storage module is used to transmit and store keys using quantum states; The quantum key analysis module is used to verify the user's identity information when the user needs to use the application key, and then analyze the quantum state key.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Method and device for enhancing password security strength of password management APP and storage medium

    CN114218555A

Cited By

  • Dynamic secure storage method, system and device of big data platform and medium

    CN120408671A

  • Communication encryption method based on quantum security SIM card

    CN121442321A

  • Communication encryption method based on quantum secure SIM card

    CN121442321B