DNA color image encryption method based on four-dimensional hyper-chaotic system

By using a four-dimensional hyperchaotic system and Logistic mapping in image encryption to generate DNA encoding and perform row-and-row substitution, the problems of key length consistency and DNA sequence security are solved, and an efficient and secure 'one-picture-one-secret' encryption effect is achieved. Improved attack resistance.

CN118945277APending Publication Date: 2024-11-12SHENYANG INSTITUTE OF CHEMICAL TECHNOLOGY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410990105.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing chaotic image encryption methods have the consistency between the key length and the plaintext length, resulting in complex key allocation and management, high key transmission costs, threats in the security of DNA sequences, and insufficient anti-attack capabilities.

Method used

Using a DNA color image encryption method based on a four-dimensional hyperchaotic system, the initial value of the hyperchaotic system is associated with the original image, and the DNA encoding is generated using a Logistic one-dimensional mapping random matrix to perform row and queue replacement to improve the ability to resist attacks, realizing the one-picture A secret' efficient encryption.

Benefits of technology

It solves the problem of key length consistency, reduces the complexity of key allocation and management, improves encryption efficiency and attack resistance, enhances the security of image encryption, and breaks the limitations of traditional encryption technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945277A_ABST
    Figure CN118945277A_ABST
Patent Text Reader

Abstract

The invention relates to an image encryption method, in particular to a DNA color image encryption method based on a four-dimensional hyper-chaotic system, which comprises the following steps: firstly, constructing a novel four-dimensional hyper-chaotic system; then, performing DNA coding on a plaintext image sub-block and a sub-block of a random matrix generated through Logistic one-dimensional mapping by using a random sequence generated by the system, and performing DNA operation on the coded sub-block; then, the random sequence generated by the hyperchaotic system is utilized again to carry out DNA decoding operation on the sub-blocks after coding operation; then, row and column replacement is carried out on the decoded matrix to increase data confusion; and finally, combining all the processed layers, and generating and outputting an encrypted color image. The encryption effect of one graph and one secret is realized, so that the defense capability of the system for potential attack behaviors is greatly enhanced, and the security and reliability of the encryption process are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an information security and image processing method, in particular to a DNA color image encryption and decryption method based on a four-dimensional hyperchaotic system. Background Art

[0002] In view of the significant nonlinear dynamic characteristics of chaotic systems, their strong randomness and simplicity of mathematical models bring unique advantages to encryption technology, especially in the fields of secure communication and image encryption, showing great application potential. Although researchers have proposed a variety of chaotic image encryption methods in recent years, each method is accompanied by specific limitations.

[0003] For example, although the one-time pad encryption system has the highest theoretical security, its practical application is limited by many aspects:

[0004] The key length must be consistent with the plaintext length, which makes key distribution and management complicated; when encrypting a large number of images, the key transmission cost is high, and the key storage and management are also challenging.

[0005] In traditional DNA-based image encryption technology, the key is usually presented in the form of a specific DNA sequence. The security risks in the generation, storage, transmission and use of these keys cannot be ignored. For example, the duplication, tampering or loss of the key may directly lead to a serious threat to the security of the encrypted data. Summary of the invention

[0006] The purpose of the present invention is to propose a DNA color image encryption method based on a four-dimensional hyperchaotic system. This method effectively solves the key security problem by closely linking the initial value of the hyperchaotic system with the original image, and realizes the "one Figure 1 In addition, by permuting the rows and columns of the matrix after DNA decoding, the present invention further improves the anti-attack capability of the encryption system, solves the potential security risks caused by the similarity of DNA sequences, and provides a new, efficient and secure encryption scheme for the field of image encryption.

[0007] The present invention adopts the following technical solutions:

[0008] The present invention provides a DNA color image encryption method based on a four-dimensional hyperchaotic system, comprising the following steps:

[0009] Step 1: Construct a new four-dimensional hyperchaotic system;

[0010] Step 2: Use the novel four-dimensional hyperchaotic system to generate random sequences to perform DNA encoding operations on the plaintext image and the sub-blocks of the Logistic one-dimensional mapping random matrix;

[0011] Step 3: Generate random sequences using a novel four-dimensional hyperchaotic system to perform DNA decoding on the calculated sub-blocks;

[0012] Step 4: permute the rows and columns of the matrix after DNA decoding;

[0013] Step 5: Merge all processed layers and output the ciphertext image;

[0014] Step 6: The decryption step is the reverse process of the encryption step.

[0015] Furthermore, step 1 specifically includes:

[0016] By adding state variables and changing nonlinear terms to the T system with a wide range of parameter selection, a new four-dimensional hyperchaotic system with multiple phenomena such as attractor coexistence is proposed. Its mathematical model is expressed as:

[0017]

[0018] Among them, x, y, z, w are state variables, and a, b, d, k, g are parameters of the new system. When the parameters a=2.2, b=0.6, d=50, k=1, g=1.6, and the initial value of the system is (x0, y0, z0, w0)=(1,1,1,1), the system is in a hyperchaotic state.

[0019] Furthermore, step 2 specifically includes:

[0020] The color image is divided into three two-dimensional matrices of R, G, and B, and the two-dimensional matrices are divided into blocks, denoted as P1, P2, and P3.

[0021]

[0022] Fill the missing parts of P1, P2, and P3 with 0, and redefine the matrix size after filling to M×N. Satisfy the following formula:

[0023]

[0024] Where t is the block size.

[0025] Set the system parameters μ and initial values ​​x, x1 and x2 of the Logistic map to obtain the pseudo-random sequence {Q i}, {S i}、{T i}.

[0026] Here, μ=3.9999, x, x1 and x2 are given by the following formula.

[0027]

[0028] Among them, sum(P1(:)), sum(P2(:)) and sum(P3(:)) represent the sum of data at all positions of the R channel, G channel and B channel of the encrypted image respectively, x is the grayscale average of P1 and P2, x1 is the grayscale average of P1 and P3, and x2 is the grayscale average of P2 and P2, which are components of the encryption key.

[0029] Set the initial value of the new four-dimensional hyperchaotic system and obtain the pseudo-random sequence {X i}, {Y i}、{Z i}、{W i}. The initial values ​​x0, y0, z0, and w0 are calculated using the following formula.

[0030]

[0031] After setting the initial conditions and system parameters, the present invention uses the Runge-Kutta method built into Matlab, specifically the ode45 function, to calculate the dynamic behavior of the newly proposed novel four-dimensional hyperchaotic system:

[0032]

[0033] Among them, x, y, z, w are state variables, and a, b, d, k, g are parameters of the new system. When the parameters a = 2.2, b = 0.6, d = 50, k = 1, g = 1.6, we get four sequences {X i}, {Y i}、{Z i}、{W i}.

[0034] The pseudo-random sequence {Q i} According to the following formula, it is converted into an M×N matrix A with a range of 0-255, where A will perform DNA operations with P1, P2, and P3 respectively. Where Q is a pseudo-random sequence {Q i} to a matrix in the range 0-255.

[0035]

[0036] Take P1 as an example. Each of its data values ​​is in the range of 0 to 255, so each data can be represented by an 8-bit binary number. Therefore, the whole P1 and 10000001 are ANDed, that is, P1 and 129 are ANDed, to get the values ​​of the first and eighth bit planes. That is, the four initial values ​​are determined by the average values ​​of the 1st and 8th bit planes of P1, the 2nd and 7th bit planes of P2, the 3rd and 6th bit planes of P3, and the 4th and 5th bit planes of P1. In this way, for different images to be encrypted, the four initial values ​​will be different, so these four values ​​are also used as keys in the algorithm.

[0037] The image encoding rules are specified. The sub-blocks at the same position of P1, P2, and P3 use the same DNA encoding method, which is represented by {X i}. Each sub-block of the A matrix is ​​determined by {Y i}Determines the DNA encoding method.

[0038]

[0039] According to the above formula, {X i} and {Y i The range of} is 1-8, corresponding to the 8 encoding methods of DNA.

[0040] The operation rules between each sub-block are specified. P1, P2, P3 and the corresponding block of A use the same operation rule, as shown in {Z i}. Then the current sub-block and the previous sub-block in the calculated matrix are operated on each other, still determined by {Z i}Determine the operation rules.

[0041] Z = mod(round(Z × 10 4 ),4) (9)

[0042] After the above formula calculation, {Z i The range of} is 0-3, where 0 corresponds to DNA addition operation; 1 corresponds to DNA subtraction operation; 2 corresponds to DNA XOR operation; and 3 corresponds to DNA XOR operation.

[0043] Furthermore, step 3 specifically includes:

[0044] Determine the decoding rules for each sub-block. i}The corresponding operation rules are decoded.

[0045] W = mod (round (W × 10 4 ),8)+1 (10)

[0046] Sequence {W i} determines the DNA decoding rules of the sub-block after the operation. DNA decoding is the inverse process of encoding, and there are also 8 decoding methods, namely, decoding A, G, C, and T into specific values.

[0047] Furthermore, step 4 specifically includes:

[0048] Perform row and column permutation. i}、{T i} Arrange in descending order to obtain the position sequence U before sorting i and V i . And use these two sequences to permute the rows and columns of the matrices of the three channels.

[0049]

[0050] U i , V i The sequence value and its corresponding index are the exchange coordinates of rows and columns. The matrices of the three channels after DNA decoding are permuted in rows and columns to obtain a better scrambling effect. This step can further improve the ability of the ciphertext image to resist cropping attacks.

[0051] Furthermore, step 5 specifically includes:

[0052] The three two-dimensional matrices that have undergone row and column permutation are merged into a three-dimensional matrix and the ciphertext image is output.

[0053] Furthermore, step 6 specifically includes:

[0054] The ciphertext image is first transformed into rows and columns, and then the DNA blocks are encoded, calculated and decoded. Finally, the padding 0s are removed, the three two-dimensional matrices are merged into a three-dimensional matrix, and the decrypted image is output.

[0055] Advantages and positive effects of this method:

[0056] In the above technical solution, the initial value of the chaotic system is related to the original image, achieving the goal of "one Figure 1 The random sequence generated by Logistic mapping iteration is used to permute the rows and columns of the matrix after DNA decoding, which solves the security problem caused by the similarity of DNA sequences. An encryption method with short encryption time, good encryption effect and strong anti-attack ability is realized.

[0057] The implementation of the present invention provides a more reliable option for applying hyperchaotic systems to engineering fields such as image encryption. To overcome the above challenges, the present invention proposes an innovative DNA color image encryption method, which relies on a four-dimensional hyperchaotic system. The initial value of the hyperchaotic system and the system parameters of the Logistic mapping, the initial value and the original plaintext image are combined as the key, which solves the problem that the key length of the one-time encryption system must be consistent with the plaintext length. While shortening the key length, it reduces the complexity of key distribution and management, improves image encryption efficiency, and reduces time costs. It solves the problem of key security and realizes the "one-time encryption" Figure 1 In addition, by permuting the rows and columns of the matrix after DNA decoding, this method effectively solves the potential security risks caused by the similarity of DNA sequences and significantly improves the system's anti-attack ability. This innovative method breaks the limitations of traditional image encryption technology in terms of low encryption efficiency, long encryption time and key security. By permuting the rows and columns of the decoded matrix, the encryption degree of the plaintext image is enhanced. The present invention applies the chaotic system to the color image encryption algorithm, breaking the limitations of the applicability of the traditional black-and-white image encryption technology and bringing new breakthroughs to the field of image encryption. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 Design a DNA color image encryption flow chart for the present invention;

[0059] FIG. 2( a ) is an xy phase diagram of a four-dimensional hyperchaotic system of the present invention;

[0060] FIG2( b ) is an xz phase diagram of the four-dimensional hyperchaotic system of the present invention;

[0061] Figure 3 It is the Lyapunov index diagram of the four-dimensional hyperchaotic system of the present invention;

[0062] FIG4( a ) is a color image original text applied by the present invention;

[0063] FIG4( b ) is the encrypted color image ciphertext of the present invention;

[0064] FIG4( c ) is a color image after decryption according to the present invention;

[0065] FIG5(a) is a histogram of three RGB channels of the original image of the present invention;

[0066] FIG5( b ) is a histogram of three channels of the ciphertext RGB of the present invention;

[0067] FIG6( a ) is a ciphertext image after cropping according to the present invention;

[0068] FIG6( b ) is a decrypted image after cropping according to the present invention;

[0069] FIG. 7( a ) is a horizontal adjacent element correlation diagram of plaintext and ciphertext of three RGB channels of the present invention;

[0070] FIG. 7( b ) is a vertical adjacent element correlation diagram of the plaintext and ciphertext of the three RGB channels of the present invention;

[0071] FIG. 7( c ) is a diagonal adjacent element correlation diagram of the plaintext and ciphertext of the three RGB channels of the present invention. DETAILED DESCRIPTION

[0072] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0073] A DNA color image encryption method based on a four-dimensional hyperchaotic system is characterized by:

[0074] By adding state variables and changing nonlinear terms to the T system with a wide range of parameter selection, a new four-dimensional hyperchaotic system with multiple phenomena such as attractor coexistence is proposed. Its mathematical model is expressed as:

[0075]

[0076] Where x, y, z, w are state variables, and a, b, d, k, g are parameters of the new system. When the parameters a = 2.2, b = 0.6, d = 50, k = 1, g = 1.6, and the initial value of the system is (x0, y0, z0, w0) = (1, 1, 1, 1), the system is in a chaotic state. Figure 2 (a) (b) is the xy phase diagram and xz phase diagram of the four-dimensional hyperchaotic system of the present invention;

[0077] By calculating the system Lyapunov exponent, it can be seen that the system has two positive Lyapunov exponents. Figure 3 This is the Lyapunov index diagram of the novel four-dimensional hyperchaotic system of the present invention. It shows that the system is in a hyperchaotic state, making the random sequence it generates even more unpredictable, indicating that the algorithm of the present invention has more advantages.

[0078] The color image is divided into three two-dimensional matrices of R, G, and B, and the two-dimensional matrices are divided into blocks, denoted as P1, P2, and P3.

[0079]

[0080] Fill the missing parts of P1, P2, and P3 with 0, and redefine the matrix size after filling to M×N. Satisfy the following formula:

[0081]

[0082] Where t is the block size.

[0083] Set the system parameters μ and initial values ​​x, x1, x2 of the Logistic map to obtain the pseudo-random sequence {Q i}, {S i}、{T i Here μ=3.9999, and the sum of x, x1 and x2 is given by the following formula.

[0084]

[0085] Among them, sum(P1(:)), sum(P2(:)) and sum(P3(:)) represent the sum of data at all positions of the R channel, G channel and B channel of the encrypted image respectively, x is the grayscale average of P1 and P2, x1 is the grayscale average of P1 and P3, and x2 is the grayscale average of P2 and P2, which are components of the encryption key.

[0086] Set the initial value of the new four-dimensional hyperchaotic system and obtain the pseudo-random sequence {X i}, {Y i}、{Z i}、{W i}. The initial values ​​x0, y0, z0, and w0 are calculated using the following formula.

[0087]

[0088] After setting the initial conditions and system parameters, the present invention uses the Runge-Kutta method built into Matlab, specifically the ode45 function, to calculate the dynamic behavior of the newly proposed novel four-dimensional hyperchaotic system:

[0089]

[0090] Among them, x, y, z, w are state variables, and a, b, d, k, g are parameters of the new system. When the parameters a = 2.2, b = 0.6, d = 50, k = 1, g = 1.6, we get four sequences {X i}, {Y i}、{Z i}、{W i}.

[0091] The pseudo-random sequence {Q i} According to the following formula, it is converted into an M×N matrix A with a range of 0-255, where A will perform DNA operations with P1, P2, and P3 respectively. Where Q is a pseudo-random sequence {Q i} to a matrix in the range 0-255.

[0092]

[0093] Take P1 as an example. Each of its data values ​​is in the range of 0 to 255, so each data can be represented by an 8-bit binary number. Therefore, the whole P1 and 10000001 are ANDed, that is, P1 and 129 are ANDed, to get the values ​​of the first and eighth bit planes. That is, the four initial values ​​are determined by the average values ​​of the 1st and 8th bit planes of P1, the 2nd and 7th bit planes of P2, the 3rd and 6th bit planes of P3, and the 4th and 5th bit planes of P1. In this way, for different images to be encrypted, the four initial values ​​will be different, so these four values ​​are also used as keys in the algorithm.

[0094] The image encoding rules are specified. The sub-blocks at the same position of P1, P2, and P3 use the same DNA encoding method, which is represented by {X i}. Each sub-block of the A matrix is ​​determined by {Y i}Determines the DNA encoding method.

[0095]

[0096] According to the above formula, {X i} and {Y i The range of} is 1-8, corresponding to the 8 encoding methods of DNA.

[0097] The operation rules between each sub-block are specified. P1, P2, P3 and the corresponding block of A use the same operation rule, as shown in {Z i}. Then the current sub-block and the previous sub-block in the calculated matrix are operated on each other, still determined by {Z i}Determine the operation rules.

[0098] Z = mod(round(Z × 10 4 ),4) (9)

[0099] After the above formula calculation, {Z i The range of} is 0-3, where 0 corresponds to DNA addition operation; 1 corresponds to DNA subtraction operation; 2 corresponds to DNA XOR operation; and 3 corresponds to DNA XOR operation.

[0100] Determine the decoding rules for each sub-block. i}The corresponding operation rules are decoded.

[0101] W = mod (round (W × 10 4 ),8)+1 (10)

[0102] Sequence {W i} determines the DNA decoding rules of the sub-block after the operation. DNA decoding is the inverse process of encoding, and there are also 8 decoding methods, namely, decoding A, G, C, and T into specific values.

[0103] Perform row and column permutation. i}、{T i} Arrange in descending order to obtain the position sequence U before sorting i and V i . And use these two sequences to permute the rows and columns of the matrices of the three channels.

[0104]

[0105] U i , V i The sequence value and its corresponding index are the exchange coordinates of rows and columns. The matrices of the three channels after DNA decoding are permuted in rows and columns to obtain a better scrambling effect. This step can further improve the ability of the ciphertext image to resist cropping attacks.

[0106] The three two-dimensional matrices that have undergone row and column permutation are merged into a three-dimensional matrix and the ciphertext image is output.

[0107] A color image with a size of 512×512×3 was selected, and the algorithm simulation was run in matlab2019a. Since the key K of this algorithm is related to the color image to be encrypted, the keys of different color images are also different. The present invention selects the classic color image Lake, and the key is selected as: K={3.9999, 0.5006, 0.4978, 0.4842, 0.4272, 0.5144, 0.4874, 0.4505}. The plaintext image is encrypted through the above steps. Figure 4(a) and Figure 4(b) are the plaintext image before encryption and the ciphertext image after encryption, respectively.

[0108] The ciphertext image is first transformed into rows and columns, and then the DNA blocks are encoded, calculated and decoded. Finally, the padding 0 is removed, the three two-dimensional matrices are merged into a three-dimensional matrix, and the decrypted image is output. Figure 4(c) is a color image after decryption of the present invention.

[0109] By analyzing the histogram and the correlation of adjacent elements and the cropping attack analysis of the DNA color image encryption method based on the four-dimensional hyperchaotic system of the present invention, it can be seen that the encrypted image histogram has uniform distribution in each channel, indicating that the encryption effect of the algorithm is good. Figure (5) is a comparison of the histograms of the three channels R, G, and B of the test image. The correlation coefficients between adjacent elements in different directions of the encrypted ciphertext image are small, which means that the encryption effect is good and the security is high. Figure (7) is a graph of the correlation of adjacent elements in the horizontal, vertical, and diagonal directions of the plaintext image and the ciphertext image of the three channels RGB.

[0110] When the encryption algorithm is attacked by cropping, it is required that the information contained in the decrypted image disappears as little as possible, and the impact of cropping on the overall image is minimized. Crop the upper right corner of the ciphertext image, assign 255 to the cropped area, and the decrypted image. It can be seen that the ciphertext image is partially cropped and destroyed. Figure 6 (a) is the cropped ciphertext image. However, this algorithm spreads the impact of the cropped part to the entire image, minimizing the impact of cropping on the local area. Figure 6 (b) is the decrypted image after cropping of the present invention. This shows that this algorithm has strong anti-cropping attack performance and is suitable for encryption of images containing detailed information.

Claims

1. A DNA color image encryption method based on a four-dimensional hyperchaotic system. It is characterized in that The method comprises the following steps: Step 1: Construct a new type of four-dimensional hyperchaotic system; the new type of four-dimensional hyperchaotic system is a new type of four-dimensional hyperchaotic system that contains multiple phenomena such as attractor coexistence, offset boost, amplitude control, and transient chaos, which is proposed by modifying the T system by adding state variables and changing nonlinear terms; Step 2: Generate a random sequence using a novel four-dimensional hyperchaotic system, perform DNA encoding on the plaintext image sub-blocks and the sub-blocks of the Logistic one-dimensional mapping random matrix, and perform DNA operations on the encoded sub-blocks; Step 3: Generate a random sequence using a novel four-dimensional hyperchaotic system, and perform DNA decoding on the calculated sub-blocks to obtain the matrices of the three channels of R, G, and B; Step 4: permute the rows and columns of the matrix after DNA decoding; Step 5: Merge the three layers of R, G, and B to output the ciphertext image; Step 6: The decryption step is the reverse process of the encryption step.

2. According to claim 1, a DNA color image encryption method based on a four-dimensional hyperchaotic system, It is characterized in that The specific process of step 1 includes: transforming the T system by adding state variables and changing nonlinear terms, and proposing a new four-dimensional hyperchaotic system containing multiple phenomena such as attractor coexistence, offset boost, amplitude control, and transient chaos; its mathematical model is expressed as: Among them, x, y, z, w are state variables, a, b, d, k, g are parameters of the new system; when the parameters a = 2.2, b = 0.6, d = 50, k = 1, g = 1.6, the system initial value is (x 0 ,y 0 ,w 0 ,z 0 )=(1,1,1,1), the system is in a hyperchaotic state; compared with chaotic systems, hyperchaotic systems are more complex and difficult to predict, and the generated random sequences are stronger in randomness and more difficult to analyze and predict; in image encryption applications, hyperchaotic systems can provide a larger key space, enhance system security, and provide higher confidentiality and anti-attack capabilities.

3. According to the DNA color image encryption method based on four-dimensional hyperchaotic system in claim 1, It is characterized in that Step 2 The specific process includes: dividing the color image into three independent two-dimensional matrices of R (red), G (green), and B (blue), respectively denoted as P 1 , P 2 , P 3 ; Then, the three two-dimensional matrices are divided into blocks respectively; in the process of block division, if there are incomplete sub-blocks (i.e. missing parts), they are filled with 0 to ensure that the size of each sub-block is uniform; the matrix size after filling is redefined as M×N, where M and N must be integers greater than or equal to the plaintext image size M, N and are related to the value of the block size t, and the following conditions must be met: Set the system parameters μ and initial values ​​x, x of the Logistic map 1 and x 2 , get the pseudo-random sequence {Q i }、{S i }、{T i }; Chaotic sequence, as a product of chaotic phenomenon, inherits the initial value sensitivity of chaos; when there is a slight difference in the initial value, the generated chaotic sequence will show significant difference; therefore, the pseudo-random sequence {Q i }、{S i }、{T i } is the initial value x, x 1 and x 2 The pseudo-random sequence generated by the Logistic mapping is: 1 and x 2 Given according to the following formula; Set the initial value of the new four-dimensional hyperchaotic system and obtain the pseudo-random sequence {X i }, {Y i }、{Z i }、{W i }; where {X i }, {Y i }、{Z i }、{W i } is the initial value x 0 ,y 0 、z 0 、w 0 The pseudo-random sequence generated by the new four-dimensional hyperchaotic system; the initial value x 0 ,y 0 、z 0 、w 0 Calculated by the following formula; The pseudo-random sequence {Q i } is converted to an M×N matrix A in the range of 0-255 according to the following formula, where A will be respectively 1 , P 2 , P 3 Perform DNA calculations; where Q is a pseudo-random sequence {Q i }Convert to a matrix in the range of 0-255; Specifies image coding rules; 1 , P 2 , P 3 The sub-blocks at the same position use the same DNA encoding method, represented by {X i }; each sub-block of the A matrix is ​​determined by {Y i }Determines the DNA coding method; According to the above formula, {X i } and {Y i } ranges from 1 to 8, corresponding to the 8 encoding methods of DNA; Specifies the operation rules between each sub-block; 1 , P 2 , P 3 The same operation rules are used between the corresponding blocks of A, and {Z i }; then the current sub-block and the previous sub-block in the calculated matrix are operated on each other, still determined by {Z i }Determine the operation rules; Z=mod(round(Z×10 4 ),4)(7) After the above formula calculation, {Z i The range of} is 0-3, where 0 corresponds to DNA addition operation; 1 corresponds to DNA subtraction operation; 2 corresponds to DNA XOR operation; and 3 corresponds to DNA XOR operation.

4. According to claim 1, a DNA color image encryption method based on a four-dimensional hyperchaotic system, It is characterized in that The specific contents of step 3 are: specifying the decoding rules for each sub-block; decoding the sub-blocks after the final operation according to {W i }Decode the corresponding operation rules; W=mod(round(W×10 4 ),8)+1(8)。 5. According to claim 1, a DNA color image encryption method based on a four-dimensional hyperchaotic system, It is characterized in that The method performs row-column permutation on the matrix after DNA decoding. The specific content of step 4 is: performing row-column permutation; replacing the pseudo-random sequence {S i }、{T i } Arrange in descending order to obtain the position sequence U before sorting i and V i ; And use these two sequences to permute the rows and columns of the matrices of the three channels; 6. According to claim 1, a DNA color image encryption method based on a four-dimensional hyperchaotic system, It is characterized in that The decryption step is the reverse process of the encryption step, which first transforms the ciphertext image into rows and columns, and then divides the DNA into blocks for DNA encoding, calculation and decoding; the three two-dimensional matrices are merged into a three-dimensional matrix, and the decrypted image is output.

Citation Information

Cited By

  • Chaotic system model construction method based on state variables and uncertain variables

    CN119783836A

  • Image encryption method and system based on DNA dynamic coding and biological hyperchaos coupling

    CN120017769A