Quantum Image Encryption Algorithm Based on Chaotic Systems and Dynamic DNA Encoding
By combining chaotic systems and DNA dynamic coding in a quantum image encryption algorithm, the problem of insufficient key stream randomness is solved, achieving efficient image encryption, enhancing the ability to resist statistical analysis attacks, and improving encryption security.
Patent Information
- Application Number
- CN202610562431.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-27
- Publication Date
- 2026-05-26
AI Technical Summary
Existing chaotic system image encryption technologies based on classical computing frameworks have limited key stream randomness when processing massive amounts of image data, making them vulnerable to statistical analysis attacks and failing to effectively utilize the parallel processing advantages of quantum computing.
A quantum image encryption algorithm based on chaotic systems and DNA dynamic coding is adopted. Through the collaborative work of the quantum image coding module, the chaotic sequence generation module, the DNA dynamic coding and operation module, and the central control module, a dynamic key stream is generated and quantum scrambling, DNA coding and operation are performed to enhance encryption security.
It achieves high randomness of the key stream and dynamic correlation with plaintext image content, enhances the ability to resist security threats, and improves the nonlinear complexity and security of the encryption process.
Smart Images

Figure CN122093512A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chaotic systems theory technology, specifically to a quantum image encryption algorithm based on chaotic systems and DNA dynamic encoding. Background Technology
[0002] With the rapid development of computer networks and multimedia, the security of image information has received increasing attention, leading to the emergence of various encryption technologies such as DES and RSA. However, most encryption technologies are designed for text encryption, which is not suitable for images with large data volumes. Chaos-based encryption technology has the advantages of simple implementation, fast encryption speed, and high security, and has increasingly demonstrated its advantages in the field of encryption.
[0003] Currently, in the field of digital image encryption, although encryption technology based on chaotic systems is widely used due to its simplicity, speed and high security, existing technologies are mostly based on classical computing frameworks. When dealing with the encryption of massive image data, they usually fail to effectively integrate the parallel processing advantages of quantum computing to improve scrambling and diffusion efficiency. Moreover, the chaotic system they rely on may be relatively simple, and the generated key stream has limited randomness, making it vulnerable to statistical analysis attacks.
[0004] Therefore, a quantum image encryption algorithm based on chaotic systems and DNA dynamic coding is proposed to solve the above problems. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a quantum image encryption algorithm based on chaotic systems and DNA dynamic coding, which solves the problem mentioned in the background technology that the generated key stream has limited randomness and is susceptible to statistical analysis attacks.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a quantum image encryption algorithm based on chaotic systems and DNA dynamic coding, the algorithm comprising a quantum image coding module, a chaotic sequence generation module, a DNA dynamic coding and computation module, and a central control module; The quantum image encoding module is used to convert classical digital images into quantum image representations and perform preliminary scrambling and diffusion operations based on qubits to generate quantum image data to be encrypted. The chaotic sequence generation module is used to drive multiple coupled chaotic systems to generate pseudo-random sequences based on the externally input initial key and control parameters, providing a dynamic key stream and random control factors for the image encryption process; The DNA dynamic encoding and operation module is used to dynamically generate DNA encoding rules and operation rules according to the chaotic sequence, encode quantum image data into DNA base sequences, and perform DNA algebra operations and structural substitutions based on dynamic rules to achieve confusion and diffusion of image information. The central control module is used to coordinate and schedule the collaborative work of various modules in the system. It controls the injection timing of the key stream and the switching of encoding operation rules according to the preset encryption process. It also integrates an image encryption effect evaluation unit to perform quantitative analysis of the security indicators of the encrypted quantum image. The algorithm also integrates a key management unit, which is used to securely store and associate all initial keys, control parameters, and dynamic rule sequences used in the encryption process, and supports authorized decryption of encrypted images.
[0007] Preferably, the quantum image encoding module includes a quantization preprocessing unit and a scrambling and diffusion mapping unit; The quantum preprocessing unit is used to convert classical grayscale and color images of size M×N and pixel value depth of L bits into quantum images using quantum bit representation. The scrambling and diffusion mapping unit is used to apply quantum gate operations based on chaotic sequence control to the quantum image state to realize quantum scrambling of pixel positions and initial diffusion of pixel values. The scrambling operation is implemented through a controlled switching gate network, and the control parameters of the switching gate are determined by the first key stream sequence provided by the chaotic sequence generation module.
[0008] Preferably, the quantization preprocessing unit employs enhanced quantum phase representation to encode pixel values as phase information of quantum states; The preliminary diffusion operation performed by the scrambling and diffusion mapping unit is defined as applying a rotating gate controlled by a chaotic sequence to the pixel value qubit. The rotation angle is dynamically calculated from the value of the chaotic sequence, thereby changing the superposition amplitude of the pixel value quantum state.
[0009] Preferably, the chaotic sequence generation module includes a multi-chaotic system coupling unit, a sequence post-processing unit, and a dynamic perturbation unit; The multi-chaotic system coupling unit operates three different chaotic systems in parallel, including a one-dimensional Logistic-Tent composite chaotic map, a two-dimensional improved Logistic-Sine map, and a three-dimensional Chen hyperchaotic system; The sequence post-processing unit is used to perform quantization, XOR, and modulo addition operations on the original real-valued sequence generated by the chaotic system to generate a uniformly distributed integer key stream. The dynamic perturbation unit periodically perturbs the initial state and parameters of the chaotic system based on the image hash value and an external random seed, thereby enhancing the randomness of the key stream and its ability to resist known-plaintext attacks.
[0010] Preferably, the sequence post-processing unit uses a quantization method to convert the original real-value sequence generated by the chaotic system into an integer key stream with a predetermined bit width; The perturbation strategy of the dynamic perturbation unit is as follows: after generating a key stream element of a certain length, the hash value of the current intermediate state of the image is extracted, and the control parameters of the specified chaotic system are updated accordingly, so that the key stream is dynamically related to the plaintext image content.
[0011] Preferably, the DNA dynamic coding and computation module includes a dynamic coding rule generation unit, a dynamic computation rule execution unit, and a reverse coding unit; The dynamic coding rule generation unit dynamically selects the current coding rule from a variety of standard DNA coding rules based on the first key stream provided by the chaotic sequence generation module. The dynamic operation rule execution unit dynamically selects the current operation rule from a variety of DNA algebra operation rules based on the second key stream provided by the chaotic sequence generation module, and uses it to perform algebra operations on the encoded DNA sequence. After completing the dynamic calculation, the reverse encoding unit reverses the calculated DNA base sequence back to binary data according to the decoding rules dynamically determined by the third key stream provided by the chaotic sequence generation module.
[0012] Preferably, the execution flow of the DNA dynamic coding and computation module includes the following steps: Step 1: Group the binary image data stream, which has been preprocessed by the quantum image encoding module, into groups of a fixed number of bits; Step 2: For each set of data, the dynamic encoding rule generation unit converts the set of data into the corresponding DNA bases according to the rules determined by the current key stream elements; Step 3: For the DNA base sequence generated in Step 2, the dynamic operation rule execution unit performs base-by-base algebraic operations on a DNA template sequence of equal length generated from a chaotic sequence, according to the operation rules determined by the current key stream elements. Step 4: Using the reverse coding unit, the DNA base sequence obtained after the operation in Step 3 is converted back into binary data according to the decoding rules determined by the current keystream elements.
[0013] Preferably, the central control module includes a key stream scheduling unit, an encryption process control unit, and an effect evaluation unit; The key stream scheduling unit is responsible for managing the multiple key streams generated by the chaotic sequence generation module and distributing them to the quantum image encoding module and the DNA dynamic encoding and computation module on demand and in time. The encryption process control unit defines and executes a multi-round encryption process including quantum scrambling, initial diffusion, DNA dynamic encoding, DNA dynamic operation, DNA reverse encoding, and secondary quantum diffusion, and controls the timing of switching between different key streams and operation rules in each round; After encryption is completed, the effect evaluation unit performs a security quantization analysis on the output ciphertext quantum image.
[0014] Preferably, in the multi-round encryption process executed by the encryption process control unit, the initial parameters of the chaotic system, the DNA encoding rule mapping table, and the DNA operation rule sequence table used in each round are different and are generated by the master key through a key expansion algorithm; The performance evaluation unit performs security quantification analysis on encrypted images based on metrics including adjacent pixel correlation, information entropy, pixel value distribution uniformity, key sensitivity, and resistance to differential attacks.
[0015] Preferably, the key management unit uses an attribute-based encryption mechanism to encapsulate all dynamic key elements generated during the encryption process; The encapsulated objects include: the initial key seed, parameters of each chaotic system, the generated key stream sequences, the dynamic encoding rule sequence, and the dynamic operation rule sequence; Only when the attributes of the decryptor meet the preset conditions can the package be decrypted and all the dynamic elements required for the encryption process be restored, thus correctly executing the decryption process.
[0016] Compared with existing technologies, this invention provides a quantum image encryption algorithm based on chaotic systems and DNA dynamic coding, which has the following advantages: 1. In this invention, classical images are converted into quantum images by using enhanced quantum phase representation, and quantum gate operations controlled by chaotic sequences are used to achieve quantum scrambling of pixel positions and preliminary diffusion of pixel values. This enables the system to efficiently perform preliminary confusion and perturbation of image information directly at the quantum level, laying a secure preprocessing foundation for subsequent encryption.
[0017] 2. In this invention, by using a parallel multi-chaotic system to generate a dynamic key stream and introducing a dynamic perturbation mechanism based on image hash values, the generated key stream becomes more random and dynamically correlated with the plaintext image content, thereby enhancing the ability to resist security threats.
[0018] 3. In this invention, by dynamically driving the selection and switching of DNA encoding rules and operation rules through chaotic sequences, and by performing dynamic algebraic operations on the DNA sequence encoded from image data and the DNA template sequence generated by chaos, the image information achieves deep-level confusion and diffusion in the DNA computing domain, which is dynamically bound to the key stream, thereby enhancing the nonlinear complexity and security of the encryption process. Attached Figure Description
[0019] Figure 1 This is a system architecture diagram of the quantum image encryption algorithm based on chaotic systems and dynamic DNA encoding of the present invention. Figure 2This is a flowchart illustrating the execution of the DNA dynamic coding and computation module in this invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] For specific implementation examples, please refer to: Figures 1-2 A quantum image encryption algorithm based on chaotic systems and DNA dynamic coding is proposed. The algorithm includes a quantum image coding module, a chaotic sequence generation module, a DNA dynamic coding and operation module, and a central control module. The quantum image encoding module is used to convert classical digital images into quantum image representations and perform preliminary scrambling and diffusion operations based on qubits to generate quantum image data to be encrypted. The chaotic sequence generation module is used to drive multiple coupled chaotic systems to generate pseudo-random sequences based on the initial key and control parameters input from the outside, providing a dynamic key stream and random control factors for the image encryption process; The DNA dynamic encoding and operation module is used to dynamically generate DNA encoding rules and operation rules based on chaotic sequences, encode quantum image data into DNA base sequences, and perform DNA algebra operations and structural substitutions based on dynamic rules to achieve confusion and diffusion of image information. The central control module is used to coordinate and schedule the collaborative work of various modules in the system. It controls the timing of key stream injection and the switching of encoding operation rules according to the preset encryption process, and integrates an image encryption effect evaluation unit to perform quantitative analysis of security indicators on the encrypted quantum image. The algorithm also integrates a key management unit, which is used to securely store and associate all initial keys, control parameters, and dynamic rule sequences used in the encryption process, and supports authorized decryption of encrypted images.
[0022] The quantum image encoding module includes a quantization preprocessing unit and a scrambling and diffusion mapping unit; The quantization preprocessing unit is used to convert classical grayscale and color images of size M×N and pixel value depth L bits into quantum images using qubit representation. The quantum state representation is as follows: ; in Represents the overall quantum state of a quantum image. This represents the ground state of the i-th pixel. This represents the quantum state that encodes the grayscale value or color component of the i-th pixel. Let n represent the tensor product, and n represent the number of qubits required for the pixel position index. , where M and N are the height and width of the image, respectively; The scrambling and diffusion mapping unit is used to apply quantum gate operations based on chaotic sequence control to the quantum image state, realizing quantum scrambling of pixel positions and initial diffusion of pixel values. The scrambling operation is implemented through a controlled switching gate network, and the control parameters of the switching gates are determined by the first key stream sequence provided by the chaotic sequence generation module.
[0023] The quantization preprocessing unit employs enhanced quantum phase representation to encode pixel values as phase information of quantum states, represented as follows: ; in: This represents an enhanced quantum picture state using phase encoding; It is a normalization function that normalizes the pixel value of the i-th pixel. Mapped to the interval [0,1); This represents the phase factor, where i is the imaginary unit; The initial diffusion operation performed by the scrambling and diffusion mapping unit is defined as applying a rotating gate controlled by a chaotic sequence to the pixel value qubit, the rotation angle of which is dynamically calculated from the value of the chaotic sequence, thereby changing the superposition amplitude of the pixel value quantum state; Rotation angle: ; in For rotation angle, It is the i-th value of sequence S2.
[0024] The chaotic sequence generation module includes a multi-chaotic system coupling unit, a sequence post-processing unit, and a dynamic perturbation unit; The multi-chaotic system coupling unit operates in parallel on three different chaotic systems, including a one-dimensional Logistic-Tent composite chaotic map, a two-dimensional improved Logistic-Sine map, and a three-dimensional Chen hyperchaotic system, with the following mathematical models: One-dimensional Logistic-Tent composite chaotic system: ; Where X n and X n+1 These represent the current and next state values of the chaotic system, respectively. ,r and For the control parameters of the chaotic system; Two-dimensional improved Logistic-Sine mapping: ; Where y n z n and y n+1 z n+1 Let these represent the current and next state values of the two-dimensional chaotic system, respectively. , and For the control parameters of the chaotic system; Three-dimensional Chen hyperchaotic system: ; Where u, v, and w represent the three state variables of the hyperchaotic system. Let u, v, and w represent the first derivatives of the state variables u, v, and w with respect to time, and a, b, c, and d be the control parameters of the hyperchaotic system. The sequence post-processing unit is used to perform quantization, XOR, and modulo addition operations on the original real-valued sequence generated by the chaotic system to generate a uniformly distributed integer key stream; XOR operation: To disrupt the statistical properties between different chaotic sequences and enhance randomness, quantized integer sequences from one-dimensional, two-dimensional, and three-dimensional systems are XORed bitwise. ; in These represent the quantized i-th integer key elements generated from three parallel chaotic systems. This indicates a bitwise XOR operation. It is the intermediate key stream element obtained after XORing.
[0025] Modulo addition operation: To obfuscate the code and ensure the output remains within a specified range, the current XOR result is added modulo 256 to the previously generated final keystream element. ; KS i KS represents the i-th 8-bit keystream element generated in the final generation. i-1 This represents the previous final keystream element. This operation ensures that any change to any bit in the keystream will affect all subsequent outputs, thus enhancing diffusion. The dynamic perturbation unit periodically perturbs the initial state and parameters of the chaotic system based on the image hash value and an external random seed, thereby enhancing the randomness of the key stream and its ability to resist known-plaintext attacks.
[0026] The sequence post-processing unit uses a quantization method to convert the original real-value sequence generated by the chaotic system into an integer key stream with a predetermined bit width; The quantification formula is: ; Where x i The real value generated by the chaotic iteration. These are the elements of the quantized 8-bit integer key stream. The perturbation strategy of the dynamic perturbation unit is as follows: after generating a key stream element of a certain length, extract the hash value of the current intermediate state of the image and use it to update the control parameters of the specified chaotic system, so that the key stream is dynamically related to the plaintext image content. Dynamic perturbation strategy formula: ; Where μ new This represents the updated control parameters of a one-dimensional chaotic system after a disturbance. H represents the control parameters of the one-dimensional chaotic system before the disturbance, and H represents the hash value calculated from the intermediate state of the current image.
[0027] The DNA dynamic coding and computation module includes a dynamic coding rule generation unit, a dynamic computation rule execution unit, and a reverse coding unit; The dynamic coding rule generation unit dynamically selects the current coding rule from multiple standard DNA coding rules based on the first key stream provided by the chaotic sequence generation module. The selection rule is determined by the following formula: ; Where R t This represents the number of the DNA coding rule selected at time t, ranging from 0 to 7. Represents the chaotic key stream S code The value at time t; The dynamic operation rule execution unit dynamically selects the current operation rule from a variety of DNA algebra operation rules based on the second key stream provided by the chaotic sequence generation module. This rule is used to perform algebraic operations on the encoded DNA sequence. The rule selection formula is as follows: ; OP t This indicates the number of the DNA algebra operation rule selected at time t, i.e., 0 to 7. Represents the chaotic key stream S op The value at time t; After completing the dynamic computation, the reverse encoding unit converts the computational DNA base sequence back into binary data according to the decoding rules dynamically determined by the third key stream provided by the chaotic sequence generation module.
[0028] The execution flow of the DNA dynamic coding and computation module includes the following steps: Step 1: Group the binary image data stream, which has been preprocessed by the quantum image encoding module, into groups of a fixed number of bits; Step 2: For each set of data, the dynamic encoding rule generation unit converts the set of data into the corresponding DNA bases according to the rules determined by the current key stream elements; Step 3: For the DNA base sequence generated in Step 2, the dynamic operation rule execution unit performs base-by-base algebraic operations on a DNA template sequence of equal length generated from a chaotic sequence, according to the operation rules determined by the current key stream elements. Step 4: Using the reverse coding unit, the DNA base sequence obtained after the operation in Step 3 is converted back into binary data according to the decoding rules determined by the current keystream elements.
[0029] The central control module includes a key stream scheduling unit, an encryption process control unit, and an effectiveness evaluation unit; The key stream scheduling unit is responsible for managing the multiple key streams generated by the chaotic sequence generation module and distributing them to the quantum image encoding module and the DNA dynamic encoding and computation module on demand and in time. The encryption process control unit defines and executes a multi-round encryption process, including quantum scrambling, initial diffusion, DNA dynamic encoding, DNA dynamic computation, DNA reverse encoding, and secondary quantum diffusion, and controls the timing of switching between different key streams and computation rules in each round; After encryption is completed, the effect evaluation unit performs a security quantization analysis on the output ciphertext quantum image.
[0030] In the multi-round encryption process executed by the encryption process control unit, the initial parameters of the chaotic system, the DNA encoding rule mapping table, and the DNA operation rule sequence table used in each round are different and are generated by the master key through the key expansion algorithm. The performance evaluation unit performs security quantification analysis on encrypted images based on metrics including adjacent pixel correlation, information entropy, pixel value distribution uniformity, key sensitivity, and resistance to differential attacks. The formula for the correlation between adjacent pixels is: ; Where r xy To represent the correlation coefficients between adjacent pixel pairs in the horizontal, vertical, and diagonal directions of the encrypted image, x i and y i It is a pair of adjacent pixel values in the encrypted image. and This is the mean, where N is the total number of pixel pairs, and the ideal value is close to 0. The formula for calculating information entropy is: ; Where H(s) represents the information entropy of the ciphertext image, s i P(s) represents the pixel with pixel value i.i ) represents pixel value s i The probability of it appearing in the image is ideally infinitely close to 8. Pixel value distribution uniformity: The chi-square test is typically used to quantify how close the pixel value distribution of a encrypted image is to a uniform distribution. The calculation formula is as follows: ; Where X 2 It is the chi-square statistic, O i E represents the number of pixels with pixel value i that were actually observed in the encrypted image. i This represents the expected number of pixels with pixel value i under a perfectly uniform distribution; the lower the value, the more uniform the pixel value distribution. Key sensitivity: measures how sensitive an encryption algorithm is to minute changes in the key, specifically implemented through encryption set sensitivity and decryption set sensitivity tests. Encryption sensitivity: Encrypt plaintext image P with the original key K to obtain ciphertext C1, make a small change to the least significant bit of key K to obtain K', and encrypt the same plaintext P with K' to obtain ciphertext C2; Evaluation metrics: Calculate the pixel count change rate and uniform average change intensity between C1 and C2; Formula for the rate of change in the number of pixels: ; Where NPCR is the pixel change rate, W and H are the width and height of the image, and D(i,j) is the difference discriminant value at the image coordinate position (i,j); Unified average change intensity formula: ; UACI stands for Uniform Average Change Intensity; NPCR measures the proportion of differences in corresponding pixel values between two ciphertext images, with an ideal value close to 99.61%; UACI measures the average change intensity of pixel values, with an ideal value of approximately 33.46%; the higher these two values are, the stronger the key sensitivity. Resistance to differential attacks: This measures the extent to which a small change in plaintext leads to a large change in ciphertext, and is also evaluated using NPCR and UACI metrics.
[0031] The key management unit uses an attribute-based encryption mechanism to encapsulate all dynamic key elements generated during the encryption process; The encapsulated objects include: the initial key seed, parameters of each chaotic system, the generated key stream sequences, the dynamic encoding rule sequence, and the dynamic operation rule sequence; The encapsulation process uses functions of the following form: ; Where K package E represents the encrypted key after encapsulation.ABE This represents an attribute-based encryption algorithm, where Attr represents the set of attributes that the decryptor must satisfy, and K... master R represents the master key used in the encryption process, S1 and S2 represent the chaotic key stream sequences generated during the encryption process, and R represents the key stream sequence generated during the encryption process. t , This refers to the dynamic DNA coding rule sequence, operation rule sequence, etc., used in the encryption process; Only when the attributes of the decryptor meet the preset conditions can the package be decrypted and all the dynamic elements required for the encryption process be restored, thus correctly executing the decryption process.
[0032] The operation steps of the quantum image encryption algorithm based on chaotic systems and DNA dynamic coding are as follows: Step 1: Quantum Image Encoding The quantum image encoding module converts a classical grayscale or color image of size M×N with a pixel depth of L bits into a quantum image representation using enhanced quantum phase representation. Subsequently, a controlled-swapping gate network, controlled by a first keystream sequence provided by a chaotic sequence generation module, performs quantum scrambling operations on the pixel positions of the quantum image state. A rotation gate controlled by the chaotic sequence then performs a preliminary diffusion operation on the pixel value qubits, altering the superposition amplitude of their quantum states to generate the quantum image data to be encrypted.
[0033] Step 2: Generation of Dynamic Chaotic Sequences The chaotic sequence generation module drives multiple coupled chaotic systems in parallel, including a one-dimensional Logistic-Tent composite chaotic map, a two-dimensional improved Logistic-Sine map, and a three-dimensional Chen hyperchaotic system, based on an externally input initial key and control parameters. The generated original real-valued sequences are quantized, XORed, and modulo-added post-processed to generate a uniformly distributed integer keystream. During this process, a dynamic perturbation unit periodically extracts the hash values of intermediate image states to perturb the states or parameters of the chaotic systems, dynamically correlated between the keystream and the plaintext image content, thus enhancing randomness.
[0034] Step 3: DNA Dynamic Coding and Calculation First, the DNA dynamic encoding and computation module groups the preprocessed binary image data stream and, based on the first keystream provided by the chaotic sequence generation module, dynamically selects DNA encoding rules to convert each group of data into corresponding DNA bases. Next, based on the second keystream, it dynamically selects DNA algebraic operation rules and performs base-by-base algebraic operations on the aforementioned DNA base sequence and an equal-length DNA template sequence generated from the chaotic sequence. After the operation is complete, the DNA base sequence is converted back into binary data according to the decoding rules dynamically determined by the third keystream.
[0035] Step Four: Centralized Control and Multi-Round Encryption The encryption process control unit of the central control module defines and executes multiple rounds of encryption. The keystream scheduling unit is responsible for distributing multiple keystreams generated by the chaotic sequence generation module to various modules on demand and in a timely manner. Each round of encryption sequentially executes quantum scrambling, initial diffusion, DNA dynamic encoding, DNA dynamic computation, DNA reverse encoding, and secondary quantum diffusion operations, and controls the timing of switching between different keystreams and computation rules. The initial parameters of the chaotic system, the DNA encoding rule mapping table, and the DNA computation rule sequence table used in each round are all generated by the master key through a key expansion algorithm, and each round is different.
[0036] Step 5: Security Assessment and Key Management After encryption, the effectiveness evaluation unit performs a security quantification analysis on the output ciphertext quantum image, with indicators including adjacent pixel correlation, information entropy, pixel value distribution uniformity, key sensitivity, and resistance to differential attacks. Simultaneously, the key management unit employs an attribute-based encryption mechanism to encapsulate and securely store all initial key seeds, chaotic system parameters, generated key stream sequences, and dynamic encoding and operation rule sequences generated during the encryption process. Only when the decryptor's attributes meet preset conditions can all dynamic elements be decapsulated and restored, thus correctly executing the authorization and decryption process.
[0037] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0038] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A quantum image encryption algorithm based on chaotic systems and DNA dynamic coding, characterized by: The algorithm includes a quantum image encoding module, a chaotic sequence generation module, a DNA dynamic encoding and computation module, and a central control module. The quantum image encoding module is used to convert classical digital images into quantum image representations and perform preliminary scrambling and diffusion operations based on qubits to generate quantum image data to be encrypted. The chaotic sequence generation module is used to drive multiple coupled chaotic systems to generate pseudo-random sequences based on the externally input initial key and control parameters, providing a dynamic key stream and random control factors for the image encryption process; The DNA dynamic encoding and operation module is used to dynamically generate DNA encoding rules and operation rules according to the chaotic sequence, encode quantum image data into DNA base sequences, and perform DNA algebra operations and structural substitutions based on dynamic rules to achieve confusion and diffusion of image information. The central control module is used to coordinate and schedule the collaborative work of various modules in the system. It controls the injection timing of the key stream and the switching of encoding operation rules according to the preset encryption process. It also integrates an image encryption effect evaluation unit to perform quantitative analysis of the security indicators of the encrypted quantum image. The algorithm also integrates a key management unit, which is used to securely store and associate all initial keys, control parameters, and dynamic rule sequences used in the encryption process, and supports authorized decryption of encrypted images.
2. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 1, characterized in that: The quantum image encoding module includes a quantization preprocessing unit and a scrambling and diffusion mapping unit; The quantum preprocessing unit is used to convert classical grayscale and color images of size M×N and pixel value depth of L bits into quantum images using quantum bit representation. The scrambling and diffusion mapping unit is used to apply quantum gate operations based on chaotic sequence control to the quantum image state to realize quantum scrambling of pixel positions and initial diffusion of pixel values. The scrambling operation is implemented through a controlled switching gate network, and the control parameters of the switching gate are determined by the first key stream sequence provided by the chaotic sequence generation module.
3. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 2, characterized in that: The quantization preprocessing unit employs enhanced quantum phase representation to encode pixel values as phase information of quantum states; The preliminary diffusion operation performed by the scrambling and diffusion mapping unit is defined as applying a rotating gate controlled by a chaotic sequence to the pixel value qubit. The rotation angle is dynamically calculated from the value of the chaotic sequence, thereby changing the superposition amplitude of the pixel value quantum state.
4. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 1, characterized in that: The chaotic sequence generation module includes a multi-chaotic system coupling unit, a sequence post-processing unit, and a dynamic perturbation unit; The multi-chaotic system coupling unit operates three different chaotic systems in parallel, including a one-dimensional Logistic-Tent composite chaotic map, a two-dimensional improved Logistic-Sine map, and a three-dimensional Chen hyperchaotic system; The sequence post-processing unit is used to perform quantization, XOR, and modulo addition operations on the original real-valued sequence generated by the chaotic system to generate a uniformly distributed integer key stream. The dynamic perturbation unit periodically perturbs the initial state and parameters of the chaotic system based on the image hash value and an external random seed, thereby enhancing the randomness of the key stream and its ability to resist known-plaintext attacks.
5. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 4, characterized in that: The sequence post-processing unit uses a quantization method to convert the original real-value sequence generated by the chaotic system into an integer key stream with a predetermined bit width. The perturbation strategy of the dynamic perturbation unit is as follows: after generating a key stream element of a certain length, the hash value of the current intermediate state of the image is extracted, and the control parameters of the specified chaotic system are updated accordingly, so that the key stream is dynamically related to the plaintext image content.
6. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 1, characterized in that: The DNA dynamic coding and computation module includes a dynamic coding rule generation unit, a dynamic computation rule execution unit, and a reverse coding unit; The dynamic coding rule generation unit dynamically selects the current coding rule from a variety of standard DNA coding rules based on the first key stream provided by the chaotic sequence generation module. The dynamic operation rule execution unit dynamically selects the current operation rule from a variety of DNA algebra operation rules based on the second key stream provided by the chaotic sequence generation module, and uses it to perform algebra operations on the encoded DNA sequence. After completing the dynamic calculation, the reverse encoding unit reverses the calculated DNA base sequence back to binary data according to the decoding rules dynamically determined by the third key stream provided by the chaotic sequence generation module.
7. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 6, characterized in that: The execution flow of the DNA dynamic coding and computation module includes the following steps: Step 1: Group the binary image data stream, which has been preprocessed by the quantum image encoding module, into groups of a fixed number of bits; Step 2: For each set of data, the dynamic encoding rule generation unit converts the set of data into the corresponding DNA bases according to the rules determined by the current key stream elements; Step 3: For the DNA base sequence generated in Step 2, the dynamic operation rule execution unit performs base-by-base algebraic operations on a DNA template sequence of equal length generated from a chaotic sequence, according to the operation rules determined by the current key stream elements. Step 4: Using the reverse coding unit, the DNA base sequence obtained after the operation in Step 3 is converted back into binary data according to the decoding rules determined by the current keystream elements.
8. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 1, characterized in that: The central control module includes a key stream scheduling unit, an encryption process control unit, and an effect evaluation unit. The key stream scheduling unit is responsible for managing the multiple key streams generated by the chaotic sequence generation module and distributing them to the quantum image encoding module and the DNA dynamic encoding and computation module on demand and in time. The encryption process control unit defines and executes a multi-round encryption process including quantum scrambling, initial diffusion, DNA dynamic encoding, DNA dynamic operation, DNA reverse encoding, and secondary quantum diffusion, and controls the timing of switching between different key streams and operation rules in each round; After encryption is completed, the effect evaluation unit performs a security quantization analysis on the output ciphertext quantum image.
9. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 8, characterized in that: In the multi-round encryption process executed by the encryption process control unit, the initial parameters of the chaotic system, the DNA encoding rule mapping table, and the DNA operation rule sequence table used in each round are different and are generated by the master key through the key expansion algorithm. The performance evaluation unit performs security quantification analysis on encrypted images based on metrics including adjacent pixel correlation, information entropy, pixel value distribution uniformity, key sensitivity, and resistance to differential attacks.
10. The quantum image encryption algorithm based on chaotic systems and DNA dynamic coding according to claim 1, characterized in that: The key management unit uses an attribute-based encryption mechanism to encapsulate all dynamic key elements generated during the encryption process; The encapsulated objects include: the initial key seed, parameters of each chaotic system, the generated key stream sequences, the dynamic encoding rule sequence, and the dynamic operation rule sequence; Only when the attributes of the decryptor meet the preset conditions can the package be decrypted and all the dynamic elements required for the encryption process be restored, thus correctly executing the decryption process.
Citation Information
Patent Citations
Quantum image encryption algorithm based on chaotic system and DNA dynamic coding
CN107992948A
Image encryption method based on quantum chaos and chaos complex power system
CN111106927A
Color image encryption method based on dynamic DNA coding and quantum random walk
CN117792629A