Image hiding and restoration method based on memristor multi-scroll hyperchaotic system

Through the image hiding method based on the memristive multi-scroll hyperchaotic system, combined with the improved AES encryption algorithm, the image is divided into blocks and fractal image embedding, which solves the problem of image encryption information being recognized and attacked during the transmission process in the existing technology. , achieving high-security image encryption and recovery.

CN117061679BActive Publication Date: 2024-09-17SHANDONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310986446.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2024-09-17
Estimated Expiration
2043-08-07

AI Technical Summary

Technical Problem

Existing image encryption technology is easily identified by attackers during transmission and storage, increasing the security threat to important information, and it is not difficult to decipher ciphertext information.

Method used

An image hiding method based on the memristive multi-scroll hyperchaotic system is adopted. By designing the memristive multi-scroll hyperchaotic system, pseudo-randomness and chaotic sequences that are sensitive to initial conditions are generated. Combined with the improved AES encryption algorithm, the image is analyzed. Block and fractal image embedding improves key space and encryption speed, and uses reversible information hiding technology to reduce the probability of being attacked.

Benefits of technology

It significantly improves the security and deciphering difficulty of encrypted information, reduces the probability of discovery and attack of encrypted information during transmission, enhances the key space, and improves the security of the encryption algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061679B
    Figure CN117061679B
Patent Text Reader

Abstract

The present invention belongs to the technical field of digital image hiding and restoration, and specifically discloses an image hiding and restoration method based on a memristor multi-scroll hyperchaotic system. Among them, the present invention designs a memristor multi-scroll hyperchaotic system, and designs an improved AES encryption algorithm based on the AES encryption algorithm and in combination with a random sequence extracted from the memristor multi-scroll hyperchaotic system, thereby realizing the encryption operation of the digital image; the present invention combines the proposed improved AES encryption algorithm with the reversible information hiding technology, and designs an image information hiding and restoration method based on the memristor multi-scroll hyperchaotic system, embeds the encrypted key information into the generated carrier image, obtains the hidden encrypted image, and at the same time, according to the reversibility of the technology, performs a restoration operation on the hidden image to obtain the original image. The present invention can reduce the probability of ciphertext information being discovered, and greatly improves the security of image encryption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of digital image hiding and restoration, and in particular relates to an image hiding and restoration method based on a memristor multi-scroll hyperchaotic system. Background Art

[0002] Due to the huge amount of image data and strong correlation, it is difficult to apply the information encryption system based on traditional cryptography theory in the field of image encryption. The chaotic sequence generated by the chaotic system has the characteristics of being extremely sensitive to initial conditions. Therefore, after combining the chaotic system with the encryption algorithm, the characteristics of the chaotic system being extremely sensitive to initial conditions can be used to increase the key space of the chaotic encryption system; the pseudo-random characteristics of the chaotic system can be used to increase the difficulty of deciphering ciphertext information and improve the security of the image encryption algorithm.

[0003] However, the ciphertext information processed by the encryption algorithm has obvious features such as garbled characters and mosaics. This will clearly inform attackers which ciphertext information is encrypted during transmission and storage, increasing the probability of malicious attacks by attackers and seriously threatening the security of important information. Therefore, it is also very important to reduce the probability of ciphertext information being discovered. Summary of the invention

[0004] One of the purposes of the present invention is to propose an image hiding method based on a memristor multi-scroll hyperchaotic system. The method utilizes the characteristics of the memristor multi-scroll hyperchaotic system, such as pseudo-randomness, sensitivity to initial conditions, and long-term unpredictability of motion trajectory, to expand the key space of the encryption system and improve the encryption quality. In addition, the present invention only encrypts key information of the image, further improving the encryption speed. At the same time, the present invention utilizes reversible information hiding technology to further reduce the probability of encrypted information processed by the encryption system being discovered during transmission, and reduces the probability of encrypted information being attacked during transmission, thereby improving the security of encrypted information during transmission.

[0005] In order to achieve the above object, the present invention adopts the following technical scheme:

[0006] The image hiding method based on the memristor multi-scroll hyperchaotic system comprises the following steps:

[0007] Step I.1. Design a memristor multi-scroll hyperchaotic system and obtain parameter values ​​and initial conditions of the memristor multi-scroll hyperchaotic system; iterate the hyperchaotic system N0 times to eliminate transient effects, where N0 is a positive integer;

[0008] Step I.2. Decompose the color plaintext image A of size X*Y*3 into three RGB channel components of size X*Y, and divide the three channel components into blocks of size 3*3; sort the pixel values ​​in each block, and select the median of the sorted pixel values ​​as the reference pixel value P of this block. ref1 , and subtract the reference pixel value from the pixel values ​​at other positions in each block to obtain the pixel difference d between the remaining pixels and the reference pixel k1 ;

[0009] Step I.3. Generate a fractal image corresponding to the RGB channel components, embedding the pixel difference d of the image obtained in step I.2 k1 ;

[0010] Step I.4. Reassemble the reference pixel values ​​of the RGB channels of the color plaintext image A in step I.2 into a color image B; encrypt the assembled color image B using the improved AES encryption algorithm to obtain an encrypted image B′;

[0011] And perform RGB channel separation on the encrypted image B′ to obtain the RGB channel components of the encrypted image B′ respectively;

[0012] Step I.5. Convert the RGB channel components of the encrypted image B′ obtained in step I.4 into binary, and divide the fractal image corresponding to the RGB channel components generated in step I.3 into blocks of 3*3 in size; embed the binary high-bit data corresponding to the RGB channel components of the encrypted image B′ into the fractal image obtained in step I.3;

[0013] Step I.6. Combine the encrypted images corresponding to the embedded RGB channel components obtained in step I.5 to obtain the encrypted image C; thus, the image hiding process of the color plaintext image A is realized.

[0014] In addition, the present invention also proposes an image restoration method based on a memristor multi-scroll hyperchaotic system corresponding to the image hiding method based on a memristor multi-scroll hyperchaotic system, which adopts the following technical solutions:

[0015] The image restoration method based on the memristor multi-scroll hyperchaotic system comprises the following steps:

[0016] Step II.1. Read the encrypted image C;

[0017] Step II.2. Decompose the secret image C into secret images corresponding to the RGB channel components, and divide the generated fractal images corresponding to the RGB channel components into blocks, each block being 3*3 in size;

[0018] Using the same key as the data sender and the chaotic sequence Z(k) generated by the designed memristor multi-scroll hyperchaotic system, the embedded image pixel binary data is extracted from the encrypted image corresponding to the RGB channel components, and the fractal image corresponding to the RGB channel components before the data is embedded is restored.

[0019] Step II.3. Convert the pixel binary data extracted in step II.2 into decimal, and regenerate a new color image with the converted RGB channel component pixel values, and use the decryption algorithm corresponding to the AES encryption algorithm to decrypt the newly generated color image to obtain a decrypted color image, and then perform an RGB separation operation on the decrypted color image to obtain the reference pixels of the decrypted RGB channel components;

[0020] Step II.4. by generating a fractal image, extracting pixel difference data of the image corresponding to the RGB channel components of the image embedded in the image hiding process;

[0021] Step II.5. Process the pixel difference data of the image corresponding to the reference pixel of the RGB channel component obtained in step II.3 and the RGB channel component obtained in step II.4 to obtain the RGB component of the color plaintext image A, and then merge the RGB component into the final extracted image, and determine whether the extracted image has rows and columns with all zero pixels. If so, remove the pixel values ​​of the rows and columns;

[0022] Step II.6. Get the extracted plaintext image.

[0023] The present invention has the following advantages:

[0024] As described above, the present invention relates to an image hiding and recovery method based on a memristor multi-scroll hyperchaotic system, wherein the memristor multi-scroll hyperchaotic system designed by the present invention can generate an attractor with a controllable number of scrolls, making the key sequence more complex and greatly improving the difficulty of decryption. Therefore, the proposed improved AES encryption algorithm not only has the advantages of the AES algorithm and can resist various cracking attacks by attackers, but also increases the key space of the encryption algorithm by introducing a hyperchaotic system, so that the security of the proposed improved AES encryption algorithm is further enhanced. At the same time, the proposed image information hiding algorithm of the memristor multi-scroll hyperchaotic system can further reduce the probability of the encrypted information processed by the encryption system being discovered during the transmission process, and the probability of the encrypted information being attacked during the transmission process, so that the security of the encrypted information during the transmission process is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 Flow chart of an image hiding method based on a memristor multi-scroll hyperchaotic system in an embodiment of the present invention.

[0026] Figure 2 Flow chart of an image restoration method based on a memristor multi-scroll hyperchaotic system in an embodiment of the present invention.

[0027] Figure 3 4 is a flow chart for calculating the first reference pixel and the first difference of a plaintext image in an embodiment of the present invention.

[0028] Figure 4 The following is an encryption flow chart corresponding to the improved AES encryption algorithm in an embodiment of the present invention.

[0029] Figure 5 The figure is a flow chart of the formation and splicing of a secret image in an embodiment of the present invention.

[0030] Figure 6 4 is a flow chart of calculating the second reference pixel and the second difference of the encrypted image in an embodiment of the present invention.

[0031] Figure 7 This is a decryption flow chart corresponding to the improved AES encryption algorithm in an embodiment of the present invention.

[0032] Figure 8 The figure is a flow chart of forming and stitching a plaintext image in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0034] like Figure 1 As shown, this embodiment describes an image hiding method based on a memristor multi-scroll hyperchaotic system, and the image hiding method based on a memristor multi-scroll hyperchaotic system comprises the following steps:

[0035] Step I.1. Design a memristor multi-scroll hyperchaotic system and obtain the parameter values ​​and initial conditions of the memristor multi-scroll hyperchaotic system; iterate the system N0 times, where N0 is a positive integer, to skip the transition state of the hyperchaotic system and eliminate transient effects.

[0036] The equation of the memristor multi-scroll hyperchaotic system is:

[0037]

[0038] Where W(w)=-0.5+w 2 , x, y, z and w are the state variables of the system. a, b, c, d, e and g are the control parameters of the system. When a = 3, b = g = 1 and c = d = e = 0.5, the system exhibits a hyperchaotic state.

[0039] f(y) is a nonlinear function used to control the number of vortices of the attractor. Its expression is as follows:

[0040]

[0041] Where M and N are positive integers used to control the number of vortices of the attractor, and sgn(·) is the modified sign function:

[0042]

[0043] The initial conditions of the four state variables of the memristor multi-scroll hyperchaotic system and the eight control parameters of the system, namely a, b, c, d, e, g, M and N, are used as the initial keys. The chaotic sequence generated by the initial keys can be applied to the improved AES encryption algorithm and image hiding method.

[0044] The specific process of generating chaotic sequence by the memristor multi-scroll hyperchaotic system is as follows: first, the hyperchaotic system is iterated 1000 times to eliminate transient effects. MATLAB is used to extract data from the chaotic sequence of a state variable of the memristor multi-scroll hyperchaotic system to obtain the memristor chaotic sequence Z(k), thereby providing a key in the AES encryption algorithm and determining the position of the pixel binary high bit embedding of the image encrypted by the improved AES encryption algorithm.

[0045] Step I.2. Decompose the color plaintext image A of size X*Y*3 into three RGB channels of size X*Y, and divide the three channel components into blocks of size 3*3 respectively.

[0046] It should be noted that before dividing the image into blocks, it is first determined whether the image can be divided into 3*3 image blocks. If not, a zero padding operation is performed, and then the image is divided into blocks. If it can be divided, the block operation is directly performed.

[0047] Specifically, the block division of the color plaintext image A includes RGB channel separation of the plaintext image blocks and plaintext image block division.

[0048] First, an RGB channel separation operation is performed on the color plaintext image A, and the color plaintext image A with a size of X*Y is decomposed into an R channel component R1, a G channel component G1, and a B channel component B1 of X*Y.

[0049] Then, the RGB channel components R1, G1, and B1 of the color plaintext image A are divided into blocks according to the row block flag index_row and the column block flag index_col, as follows:

[0050] When index_row=0 and index_col=0, the channel components R1, G1, and B1 of size X*Y are divided into blocks of 3*3 pixels, and the obtained The RGB channel components R1_divide, G1_divide, and B1_divide corresponding to the plaintext image blocks.

[0051] When index_row=0 and index_col>0, first expand the channel components R1, G1, B1 of X*Y to X*(Y+(3-index_col)) to ensure that they can be completely divided into image blocks of size 3*3 after expansion. At the same time, fill all the elements 0 in the expanded positions to obtain R1_exp_col, G1_exp_col, B1_exp_col, and then divide the channel components R1_exp_col, G1_exp_col, B1_exp_col of size X*(Y+(3-index_col)) into blocks of 3*3 pixels to obtain The RGB channel components R1_divide, G1_divide, and B1_divide corresponding to the plaintext image blocks.

[0052] When index_row>0 and index_col=0, first expand the channel components R1, G1, B1 of X*Y to (X+(3-index_row))*Y to ensure that they can be completely divided into image blocks of size 3*3 after expansion, and fill all the expanded positions with elements 0 to obtain R1_exp_row, G1_exp_row, B1_exp_row, and then divide the channel components R1_exp_row, G1_exp_row, B1_exp_row of size (X+(3-index_row))*Y into blocks of 3*3 pixels to obtain The RGB channel components R1_divide, G1_divide, and B1_divide corresponding to the plaintext image blocks.

[0053] The calculation formulas for the row block flag index_row and column block flag index_col are as follows:

[0054] Wherein, X represents the number of pixel rows of the plaintext color image A, Y represents the number of pixel columns of the plaintext color image A, and mod(·) represents the remainder of dividing two numbers.

[0055] Sort the pixel values ​​in each block, select the median of the sorted pixel values ​​as the reference pixel value of this block, and subtract the reference pixel value from the pixel values ​​at other positions in each block to obtain the pixel difference d between the remaining pixels and the reference pixel. k1 .

[0056] like Figure 3As shown, each image block in the RGB channel components R1_divide, G1_divide, and B1_divide obtained by the block operation of the color plaintext image A is calculated respectively to obtain the first reference pixel P corresponding to each image block of the RGB channel components R1_divide, G1_divide, and B1_divide. ref1_R , P ref1_G , P ref1_B and the first difference d k1_R ,d k1_G ,d k1_B .

[0057] For the R channel component R1_divide of the color plaintext image A after block processing, first sort the pixel values ​​of each image block of R1_divide, sort the pixel values ​​in ascending order from left to right, and select the middle value of the pixel of each image block as the first reference pixel P of the R channel component R1_divide. ref1_R Then, according to the selected R1_divide, the first reference pixel P of each image block ref1_R , calculate the remaining pixels in the block and the first reference pixel P ref1_R The first difference d is obtained k1_R .

[0058] For the G channel component G1_divide of the color plaintext image A after block processing, first sort the pixel values ​​of each image block of G1_divide, sort the pixel values ​​in ascending order from left to right, and select the middle value of the pixels of each image block as the first reference pixel P of the G channel component G1_divide. ref1_G Then, according to the selected G1_divide, the first reference pixel P of each image block ref1_G , calculate the remaining pixels in the block and the first reference pixel P ref1_G The first difference d is obtained k1_G .

[0059] For the B channel component B1_divide of the color plaintext image A after block processing, first sort the pixel values ​​of each image block of B1_divide, sort the pixel values ​​in ascending order from left to right, and select the middle value of the pixel of each image block as the first reference pixel P of the B channel component B1_divide. ref1_B Then, according to the selected B1_divide, the first reference pixel P of each image block ref1_B , calculate the remaining pixels in the block and the first reference pixel P ref1_B The first difference d is obtained k1_B .

[0060] Step I.3. Generate a fractal image corresponding to the RGB channel components, embedding the pixel difference d of the image obtained in step I.2 k1 .

[0061] First, the number of iterations of the fractal image is calculated according to the escape time algorithm; then the pixel difference d obtained in step I.2 is k1 And the number of iterations of the fractal image are processed to obtain the pixel rendering values ​​of the fractal image corresponding to the RGB channel components respectively.

[0062] Specifically, according to the escape time algorithm, corresponding fractal images A_R1, A_G1, A_B1 are generated for the RGB channel components R1_divide, G1_divide, and B1_divide corresponding to the plaintext image block in step I.2, respectively. The size of the fractal image is the same as the image resolution corresponding to each channel component of the color plaintext image A. In the generation process, the difference is embedded by changing the image value, for example, the component R1_divide is embedded in the first difference d k1_R , component G1_divide embeds the first difference d k1_G , component B1_divide embeds the first difference d k1_B , so that the pixel rendering value of the fractal image generated by each channel component can be obtained:

[0063] pt=k+d k1 .

[0064] Among them, pt is the pixel rendering value of the fractal image, k is the number of iterations, and d k1 is the pixel difference of the image corresponding to the RGB channel components; when the escape condition is met, k is equal to k1, otherwise k is equal to k2, where k1 is the number of iterations to reach the escape boundary and k2 is the maximum number of iterations.

[0065] Step I.4. Reassemble the reference pixel values ​​of the RGB channels of the color plaintext image A in step I.2 into a color image B respectively; encrypt the assembled color image B using the improved AES encryption algorithm to obtain an encrypted image B′, and perform RGB separation on the encrypted image B′ to obtain the RGB components of the encrypted image B′ respectively.

[0066] The first reference pixel P ref1_R , P ref1_G , P ref1_B Regenerate a color image B. Figure 4 As shown, the improved AES encryption algorithm is used to encrypt the color image B. The specific process is as follows:

[0067] Step I.4.1. After eliminating transient effects, the hyperchaotic system iterates X_P*Y_P times to generate the key sequences SS(k) and S(k) required for this round. SS(k) and S(k) are two different keys.

[0068] Among them, X_P and Y_P are both natural numbers greater than 0.

[0069] Step I.4.2: Perform the first XOR operation on the color image B and SS(k) to obtain the encrypted image B1.

[0070] Step I.4.3: The hyperchaotic system iterates X_P*Y_P times to generate the key sequences SS(k) and S(k) required for this round.

[0071] Step I.4.4: Determine the circular shift flag index according to the pixel value of the pixel to the left of each pixel. The pixel at the upper left corner (0,0) of the encrypted image B1 is shifted left by default.

[0072]

[0073] Among them, pixel is the pixel value of the pixel to the left of a pixel.

[0074] Step I.4.5: Determine the number of bits of circular shift for each pixel in X_P*Y_P according to S(k). The direction of movement is determined by the circular shift flag index. If the circular shift flag index is 0, it will shift left, and if it is 1, it will shift right. The image pixel matrix is ​​shifted pixel by pixel from top to bottom and from left to right.

[0075] The image pixel matrix specifically refers to a pixel value matrix corresponding to the pixel data of the image.

[0076] Step I.4.6: The elements in the i-th row are circularly shifted i units to the left, and the elements in the j-th column are circularly shifted j units upward, where i is the number of rows in the image pixel matrix and j is the number of columns in the image pixel matrix.

[0077] Step I.4.7: Perform an XOR operation on the first row of pixels in the image pixel matrix and the pixels adjacent to its left, and perform an XOR operation on the remaining pixels and the pixels in the previous row. Perform the XOR operation on the image pixel matrix from top to bottom and from left to right.

[0078] Step I.4.8: XOR the SS(k) of this round with the image matrix.

[0079] Step I.4.9: Return to step I.4.3 for the next round of encryption, a total of R rounds of encryption, and finally obtain the encrypted image A2.

[0080] Step I.4.10: The hyperchaotic system iterates X_P*Y_P times to generate the key sequences SS(k) and S(k) required for this round.

[0081] Step I.4.11: According to the flag index calculation method in I.4.5, the circular shift flag index is obtained, and the pixel at the upper left corner (0,0) of the encrypted image A2 is shifted left by default.

[0082] Step I.4.12: Determine the number of bits of cyclic shift of each pixel in X_P*Y_P according to S(k), and the direction of shift is determined by index. The image pixel matrix is ​​shifted pixel by pixel from top to bottom and from left to right.

[0083] Step I.4.13: The elements in the i-th row are circularly shifted i units to the left, and the elements in the j-th column are circularly shifted j units upward.

[0084] Step I.4.14: Perform an XOR operation on the SS(k) of this round and the image pixel value matrix to obtain the encrypted image B′, and the encryption is completed.

[0085] Step I.5. Convert the RGB channel components of the encrypted image B′ obtained in step I.4 into binary, and divide the fractal image corresponding to the RGB channel components generated in step I.3 into blocks of 3*3 in size; then embed the binary high-bit data corresponding to the RGB channel components of the encrypted image B′ into the fractal image obtained in step I.3 respectively.

[0086] The specific steps of step I.5 are:

[0087] Step I.5.1. Data conversion operation of encrypted image.

[0088] Perform R, G, B separation on the encrypted image B′ to obtain RGB channel components R2_divide, G2_divide, B2_divide, and convert them into 8-bit binary data according to the pixel value of each RGB channel component, that is, obtain R2_binary, G2_binary, B2_binary. This binary data can be used to embed the following fractal image.

[0089] Step I.5.2: Block operation of the fractal image and calculation of the second reference pixel and the second difference.

[0090] like Figure 5 As shown, the fractal images A_R1, A_G1, and A_B1 are divided into blocks, each block having a size of 3*3, and the RGB channel components A_R1_divide, A_G1_divide, and A_B1_divide of the fractal image blocks are obtained.

[0091] For the channel component A_R1_divide, first sort the pixel values ​​of each image block of A_R1_divide, arrange the pixel values ​​in ascending order from left to right, and select the maximum pixel value p max and the minimum pixel value p min , determine the second reference pixel P according to the parity of the chaotic sequence Z(k) ref2_R is the p of the image block max Or p min , and then calculate the remaining pixels and the second reference pixel P ref2_R The difference between k2_R .

[0092] For the channel component A_G1_divide, first sort the pixel values ​​of each image block of A_G1_divide, arrange the pixel values ​​in ascending order from left to right, and select the maximum pixel value p max and the minimum pixel value p min , determine the second reference pixel P according to the parity of the chaotic sequence Z(k) ref2_G is the p of the image block max Or p min , and then calculate the remaining pixels and the second reference pixel P ref2_G The difference between k2_G .

[0093] For the channel component A_B1_divide, first sort the pixel values ​​of each image block of A_B1_divide, arrange the pixel values ​​in ascending order from left to right, and select the maximum pixel value p max and the minimum pixel value p min , determine the second reference pixel P according to the parity of the chaotic sequence Z(k) ref2_B is the p of the image block max Or p min , and then calculate the remaining pixels and the second reference pixel P ref2_B The difference between k2_B .

[0094]

[0095] Z(k) is the chaotic sequence generated by the memristor multi-scroll hyperchaotic system in step I.1, and is mapped to the interval [0,9], which are all integers. ref2 The pixel binary high bit embedding position of B′ can be determined.

[0096] Step I.5.3. Reversible embedding operation of encrypted information.

[0097] The embedding operation performed is to embed the second difference and the pixel binary high bits of the encrypted image B′ into the fractal image generated in step I.3, and the embedding method is based on the second reference pixel P ref2 to be sure.

[0098] For the fractal image of the R channel component, when performing the embedding operation, first determine P ref2_R is the maximum pixel value p of the block max Or the minimum pixel value p min When P ref2_R is the maximum pixel value p of the block max , that is, the pixel rendering value after embedding is equal to the pixel rendering value before embedding data plus the second difference d k2_R and the sum of the high bits of the pixels in the encrypted image B′; when P ref2_R is the minimum pixel value p of the block min , that is, the pixel rendering value after embedding is equal to the pixel rendering value before embedding data minus the second difference d k2_R The sum of the high binary bits of the pixels of the encrypted image B′; after the R channel is embedded, the component R3_divide is generated.

[0099] For the fractal image of the G channel component, when performing the embedding operation, first determine P ref2_G is the maximum pixel value p of the block max Or the minimum pixel value p min When P ref2_G is the maximum pixel value p of the block max , that is, the pixel rendering value after embedding is equal to the pixel rendering value before embedding data plus the second difference d k2_G and the sum of the high bits of the pixels in the encrypted image B′; when P ref2_G is the minimum pixel value p of the block min , that is, the pixel rendering value after embedding is equal to the pixel rendering value before embedding data minus the second difference d k2 G The sum of the high binary bits of the pixels of the encrypted image B′; after the G channel is embedded, the component G3_divide is generated.

[0100] For the fractal image of the B channel component, when performing the embedding operation, first determine P ref2_B is the maximum pixel value p of the block max Or the minimum pixel value p min When P ref2_B is the maximum pixel value p of the block max , that is, the pixel rendering value after embedding is equal to the pixel rendering value before embedding data plus the second difference d k2_B and the sum of the high bits of the pixels in the encrypted image B′; when P ref2_B is the minimum pixel value p of the blockmin , that is, the pixel rendering value after embedding is equal to the pixel rendering value before embedding data minus the second difference d k2_B The sum of the high binary bits of the pixels of the encrypted image B′; after the B channel is embedded, the component B3_divide is generated.

[0101]

[0102] Where E(i,j) is the pixel rendering value after embedding data, and I(i,j) is the pixel rendering value before embedding data; d k2 represents the difference between the pixel value of the fractal image generated in step I.3 and the reference pixel obtained after its block division, and w is the binary data corresponding to the RGB components of the fractal image B′ after the encryption processing in step I.4. ref2 represents the reference pixel, p min Represents the minimum pixel value after ascending sorting, p max Indicates the maximum pixel value after ascending sorting.

[0103] Step I.6. Combine the encrypted images corresponding to the RGB components of the encrypted image B′ obtained in step I.5 to obtain the encrypted image C; specifically, combine the embedded component R3_divide to generate the image C_R, the component G3_divide to generate the image C_G, and the component B3_divide to generate the image B_R, and combine the final images C_R, C_G, and C_B into one image, that is, the image is the encrypted image. At this point, the image hiding process of the color image A is realized.

[0104] Based on the above-mentioned image hiding method based on the memristor multi-scroll hyperchaotic system, this embodiment describes a corresponding image restoration method based on the memristor multi-scroll hyperchaotic system. Figure 2 shown.

[0105] The image restoration method based on the memristor multi-scroll hyperchaotic system comprises the following steps:

[0106] Step II.1. Read the encrypted image C.

[0107] Step II.2. Decompose the encrypted image C into encrypted images corresponding to the RGB channel components, and divide the generated fractal images corresponding to the RGB channel components into blocks, each block being 3*3 in size.

[0108] Specifically, read the secret image C, separate the secret image C, and obtain images C_R, C_G, and C_B corresponding to the R, G, and B channel components of the hidden information. Divide the images C_R, C_G, and C_B into blocks, each of which is 3*3 in size. The specific steps of the block division are the same as the plaintext image block division operation mentioned above.

[0109] By using the key of the phase diagram with the data sender and the chaotic sequence Z(k) generated by the designed memristor multi-scroll hyperchaotic system, the binary reference pixel data are extracted from the secret image corresponding to the RGB channel components, and the fractal images corresponding to the RGB channel components before the data are embedded are restored.

[0110] Accept the initial conditions of the four state variables and eight system parameters of the memristor multi-scroll hyperchaotic system as the initial key, generate the chaotic sequence Z(k), and map the generated chaotic sequence to the interval [0,9] to determine the embedding position of the binary high bit of the pixels in the images C_R, C_G and C_B. Sort the pixel values ​​of each block of the images C_R, C_G and C_B respectively, and select the reference pixel P ref2_R , P ref2_G , P ref2_B , according to the parity of the chaotic sequence Z(k), the reference pixel P is determined ref2 is the maximum pixel value p max Or the minimum pixel value p min , the selection principle is the same as above.

[0111] like Figure 6 As shown, the extraction process of image pixel binary data w is:

[0112]

[0113] Where w is the binary data of the image pixel to be extracted, and the binary data R2_binary, G2_binary, and B2_binary of the pixel values ​​of the RGB channel components of the encrypted image B′ are obtained. E(i,j) is the pixel value of the encrypted image corresponding to the RGB channel component, P ref2 is the reference pixel of each block of the encrypted image; abs(·) means returning the absolute value of a number.

[0114] The fractal image restoration process before the RGB channel components are embedded in the data is:

[0115]

[0116] Among them, I(i,j) is the pixel value of the fractal image to be extracted, E(i,j) is the pixel value of the dense image corresponding to the RGB channel component, and p ref2 represents the reference pixel, p min Represents the minimum pixel value after ascending sorting, p max Represents the maximum pixel value after ascending sorting, represents the floor function; the selection conditions of the reference pixel are as follows:

[0117]

[0118] Among them, Z(k) is the chaotic sequence generated by the memristor multi-scroll hyperchaotic system in step I.1. It is generated using the same key as the data sender, and the generated chaotic sequence is mapped to the interval [0,9] to determine the embedding position of the high binary bit of the reference pixel in the encrypted image corresponding to the RGB channel component.

[0119] Step II.3. Convert the binary reference pixel data extracted in step II.2 into decimal, and regenerate a new color image with the converted RGB channel component pixel values, and use the decryption algorithm corresponding to the AES encryption algorithm to decrypt the newly generated color image to obtain the decrypted color image, and then perform RGB separation operation on the decrypted color image to obtain the reference pixels of the decrypted RGB channel components.

[0120] Convert the binary data R2_binary, G2_binary, B2_binary of the pixel values ​​of the RGB channel components of the image B′ into decimal, obtain the RGB channel components R2_divide, G2_divide, B2_divide, and then regenerate a new color image B′. Figure 7 As shown in the figure, the image B′ is decrypted using the improved AES decryption algorithm based on the memristor multi-scroll hyperchaotic system.

[0121] To decrypt, the specific process is as follows:

[0122] Step II.3.1. After eliminating transient effects, the hyperchaotic system iterates X_P*Y_P*(R+1) times to generate (R+1) groups of key sequences SS(k) and S(k), where SS(k) and S(k) are two different keys.

[0123] Step II.3.2. Perform an XOR operation on the key sequence SS(k) and the image block.

[0124] Step II.3.3. Perform inverse row and column shift operations on the pixels in the image block. The elements in the jth column of the image pixel matrix are circularly shifted downward by j units, and the elements in the ith row are circularly shifted right by i units. Unlike the encryption end, the column shift is performed first, and then the row shift is performed (i is the number of rows in the image pixel matrix, and j is the number of columns in the image pixel matrix).

[0125] Step II.3.4. Determine the circular shift flag index according to the pixel value of the pixel to the left of each pixel. The pixel at the upper left corner (0,0) of the shifted image is shifted to the left by default.

[0126]

[0127] Among them, pixel is the pixel value of the previous pixel.

[0128] Step II.3.5. Determine the number of bits of circular shift for each pixel in the pixel block according to the key sequence S(k). The direction of shift is determined by index, where 0 indicates right shift and 1 indicates left shift.

[0129] Step II.3.6. Perform an XOR operation on the key sequence SS(k) and the image block.

[0130] Step II.3.7. The pixels in the first row of the image pixel matrix perform an XOR operation with the previous pixel in the row, and the pixels in the remaining rows perform an XOR operation with the pixels in the previous row. The pixel at the upper left corner (0,0) of the image pixel matrix does not perform an XOR operation. Unlike the encryption end, the operation sequence of the decryption end is from bottom to top and from right to left.

[0131] Step II.3.8. Perform inverse row and column shift operations on the pixels in the image block, with the elements in the j-th column circularly shifted downward by j units and the elements in the i-th row circularly shifted right by i units.

[0132] The order of operations is the same as step II.3.4, first performing the column shift and then the row shift.

[0133] Step II.3.9. According to the flag index calculation method in step II.3.5, the circular shift flag index is obtained. Different from the encryption end, the pixel at position (0,0) after the shift operation in step II.3.8 is shifted right by default.

[0134] Step II.3.10. Determine the number of bits of cyclic shift for each pixel in the image block according to the key sequence S(k), and the direction of movement is determined by the index.

[0135] Step II.3.11. Return to step II.3.6 for the next round of decryption, performing a total of R rounds.

[0136] Step II.3.12. Perform a final XOR operation on the image block and the key sequence SS(k).

[0137] Step II.3.13. Obtain the plaintext image B.

[0138] Step II.4. Extract the pixel difference data of the image corresponding to the RGB channel components of the image embedded in the image hiding process by generating a fractal image. First, the number of iterations of the fractal image corresponding to the RGB channel components is calculated according to the escape time algorithm, and the pixel difference data of the image corresponding to the embedded RGB channel components is extracted by processing the number of iterations of the fractal image and the fractal image of the RGB channel components restored in step II.2.

[0139] Specifically, an image B is obtained, an R, G, and B separation operation is performed on the image B to obtain R, G, and B channel components, and a first reference pixel P corresponding to each component is obtained from the R, G, and B channel components. ref1_R , P ref1_G , P ref1_B According to the escape time algorithm, the fractal images corresponding to the R, G, and B channel components are generated respectively, and the resolution of the fractal images is the same as that of C_R, C_G, and C_B. In the generation process, the first difference d corresponding to the R, G, and B channel components is extracted by comparing the image value with the pixel value of the extracted fractal image. k1_R , d k1_G , d k1_B , the extraction process is as follows:

[0140] d k1 =pt-k.

[0141] Among them, d k1 is the pixel difference of the image corresponding to the RGB channel component, pt is the pixel rendering value of the fractal image corresponding to the restored RGB channel component, and k is the number of iterations. When the escape condition is met, k is equal to k1, otherwise k is equal to k2. Among them, k1 is the number of iterations to reach the escape boundary, and k2 is the maximum number of iterations.

[0142] Step II.5. Process the pixel difference data of the image corresponding to the reference pixel of the RGB component obtained in step II.3 and the RGB channel component obtained in step II.4 to obtain the RGB component of the color plaintext image A, and then merge the RGB components into the final extracted image, and determine whether the extracted image has rows and columns with all zero pixels. If so, delete the rows and columns.

[0143] like Figure 8 As shown, the first reference pixel P extracted according to the above operation ref1_R , P ref1_G , P ref1_B and the first difference d k1_R , d k1_G , d k1_B , get the RGB channel components R1_divide, G1_divide, B1_divide, and get the images A_R′, A_G′, A_B′ corresponding to the RGB channel components. Check whether there are rows or columns with all zero pixel values ​​in the images A_R′, A_G′, A_B′. If so, remove the pixel values ​​of the rows or columns to get the R, G, B channel components A_R, A_G, A_B of the color plaintext image A, and stitch the generated R, G, B channel components A_R, A_G, A_B of the color plaintext image A into one image. At this time, the color plaintext image A is restored.

[0144] Step II.6. Get the extracted plaintext image.

[0145] Of course, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiments. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field under the guidance of this specification fall within the essential scope of this specification and should be protected by the present invention.

Claims

1. An image hiding method based on a memristor multi-scroll hyperchaotic system, characterized in that: The steps include: Step I.

1. Design a memristor multi-scroll hyperchaotic system and obtain parameter values ​​and initial conditions of the memristor multi-scroll hyperchaotic system; iterate the hyperchaotic system N0 times to eliminate transient effects, where N0 is a positive integer; Step I.

2. Decompose the color plaintext image A of size X*Y*3 into three RGB channel components of size X*Y, and divide the three channel components into blocks of size 3*3; sort the pixel values ​​in each block, and select the median of the sorted pixel values ​​as the reference pixel p of this block. ref1 , and subtract the reference pixel value from the pixel values ​​at other positions in each block to obtain the pixel difference d between the remaining pixels and the reference pixel k1 ; Step I.

3. Generate a fractal image corresponding to the RGB channel components, embedding the pixel difference d of the image obtained in step I.2 k1 ; Step I.

4. Reassemble the reference pixel values ​​of the RGB channels of the color plaintext image A in step I.2 into a color image B; encrypt the assembled color image B using the improved AES encryption algorithm to obtain an encrypted image B′; And perform RGB channel separation on the encrypted image B′ to obtain the RGB channel components of the encrypted image B′ respectively; Step I.

5. Convert the RGB channel components of the encrypted image B′ obtained in step I.4 into binary, and divide the fractal image corresponding to the RGB channel components generated in step I.3 into blocks of 3*3 in size; embed the binary high-bit data corresponding to the RGB channel components of the encrypted image B′ into step I.3 to obtain the fractal image; Step I.

6. Combine the encrypted images corresponding to the embedded RGB channel components obtained in step I.5 to obtain the encrypted image C. Thus, the image hiding process of the color plaintext image A is realized. In step I.1, the equation of the memristor multi-scroll hyperchaotic system is: Where W(w)=-0.5+w 2 , x, y, z and w are the state variables of the system; a, b, c, d, e and g are the control parameters of the system. When a=3, b=g=1 and c=d=e=0.5, the system behaves in a hyperchaotic state; f(y) is a nonlinear function used to control the number of vortices of the attractor. Its expression is as follows: Where M and N are positive integers used to control the number of vortices of the attractor, and sgn(·) is the modified sign function: The initial conditions of the four state variables of the memristor multi-scroll hyperchaotic system and the eight control parameters of the system, a, b, c, d, e, g, M and N, are used as the initial keys. The chaotic sequence generated by the initial keys can be applied to the improved AES encryption algorithm and image hiding method. In step I.5, the embedding process is as follows: Where E(i,j) is the pixel rendering value after embedding data, and I(i,j) is the pixel rendering value before embedding data; d k2 represents the pixel difference between the pixel value of the fractal image generated in step I.3 and the reference pixel obtained after its block division, and w is the binary data corresponding to the RGB channel components of the encrypted image B′ after the encryption processing in step I.4; Among them, p ref2 represents the reference pixel, p min Indicates the minimum pixel value after ascending sorting, p max Represents the maximum pixel value after ascending sorting; reference pixel p ref2 The selection basis is: Z(k) is the chaotic sequence generated by the memristor multi-scroll hyperchaotic system in step I.1, and is mapped to the interval [0,9], which are all integers. ref2 Determine the embedding position of the pixel high-order binary data of the encrypted image B′.

2. The image hiding method based on the memristor multi-scroll hyperchaotic system according to claim 1 is characterized in that: The specific process of generating chaotic sequence in the memristor multi-scroll hyperchaotic system is as follows: Firstly, the hyperchaotic system is iterated for multiple times, and then data is extracted from the chaotic sequence of a certain state variable of the memristor multi-scroll hyperchaotic system to obtain the memristor chaotic sequence Z(k).

3. The image hiding method based on the memristor multi-scroll hyperchaotic system according to claim 1 is characterized in that: The step I.3 is specifically as follows: First, the number of iterations of the fractal image is calculated according to the escape time algorithm; then the pixel difference d obtained in step I.2 is k1 and the number of iterations of the fractal image to obtain the pixel rendering value of the fractal image corresponding to the RGB channel components; The specific processing process is as follows: pt = k + d k1 ; Among them, pt is the pixel rendering value of the fractal image, k is the number of iterations to generate the fractal image, and d k1 represents the pixel difference obtained in step I.2; when the escape condition is met, k is equal to k1, otherwise k is equal to k2, where k1 is the number of iterations to reach the escape boundary and k2 is the maximum number of iterations.

4. The image hiding method based on the memristor multi-scroll hyperchaotic system according to claim 1 is characterized in that: In step I.4, the process of encrypting the composite color image B using the improved AES encryption algorithm is as follows: Step I.4.

1. After eliminating transient effects, the hyperchaotic system iterates X_P*Y_P times to generate the key sequences SS(k) and S(k) required for this round. SS(k) and S(k) are two different keys respectively. Step I.4.

2. Perform the first XOR operation on the color image B and SS(k) to obtain the encrypted image B1; Step I.4.

3. The hyperchaotic system iterates X_P*Y_P times to generate the key sequences SS(k) and S(k) required for this round; Step I.4.

4. Determine the circular shift flag index according to the pixel value of the pixel to the left of each pixel in the encrypted image B1. The pixel at the upper left corner (0,0) of the encrypted image B1 is shifted to the left by default. Step I.4.

5. Determine the number of bits of circular shift of each pixel in X_P*Y_P iterations according to S(k). The direction of movement is determined by the circular shift flag index. If the circular shift flag index is 0, it will shift left. If the circular shift flag index is 1, it will shift right. The image pixel matrix is ​​performed pixel by pixel from top to bottom and from left to right. Step I.4.

6. The elements in the i-th row are circularly moved i units to the left, and the elements in the j-th column are circularly moved j units upward, where i is the number of rows of the image pixel matrix and j is the number of columns of the image pixel matrix; Step I.4.

7. The pixels in the first row of the image pixel matrix perform an XOR operation with the pixels adjacent to its left, and the remaining pixels perform an XOR operation with the pixels in the previous row; the image pixel matrix is ​​processed pixel by pixel from top to bottom and from left to right; Step I.4.

8. Perform an XOR operation on the SS(k) of this round and the image pixel matrix; Step I.4.

9. Return to step I.4.3 to perform the next round of encryption, a total of R rounds of encryption, and finally obtain the encrypted image A2; Step I.4.

10. The hyperchaotic system iterates X_P*Y_P times to generate the key sequences SS(k) and S(k) required for this round; Step I.4.

11. According to the flag index calculation method in I.4.5, the circular shift flag index is obtained, and the pixel at the upper left corner (0,0) of the encrypted image A2 is shifted to the left by default; Step I.4.

12. Determine the number of bits of cyclic shift of each pixel in X_P*Y_P according to S(k), and the direction of shift is determined by index; the image pixel matrix is ​​shifted pixel by pixel from top to bottom and from left to right; Step I.4.

13. The elements in the i-th row are circularly shifted i units to the left, and the elements in the j-th column are circularly shifted j units upward; Step I.4.

14. Perform an XOR operation on the SS(k) of this round and the image pixel value matrix to obtain the encrypted image B′, and the encryption is completed.

5. An image restoration method based on a memristor multi-scroll hyperchaotic system, for restoring a secret image hidden by the image hiding method based on a memristor multi-scroll hyperchaotic system as claimed in any one of claims 1 to 4; characterized in that: The image restoration method based on the memristor multi-scroll hyperchaotic system comprises the following steps: Step II.

1. Read the encrypted image C; Step II.

2. Decompose the secret image C into secret images corresponding to the RGB channel components, and divide the generated fractal images corresponding to the RGB channel components into blocks, each block being 3*3 in size; Using the same key as the data sender and the chaotic sequence Z(k) generated by the designed memristor multi-scroll hyperchaotic system, the embedded image pixel binary data is extracted from the fractal image corresponding to the RGB channel components, and the fractal image corresponding to the RGB channel components before the data is embedded is restored. Step II.

3. Convert the pixel binary data extracted in step II.2 into decimal, and regenerate a new color image with the converted RGB channel component pixel values, and use the decryption algorithm corresponding to the AES encryption algorithm to decrypt the newly generated color image to obtain the decrypted color image, and then perform RGB channel separation operation on the decrypted color image to obtain the decrypted RGB channel component, which is the reference pixel p of the color plaintext image A. ref1 ; Step II.

4. By generating a fractal image, extract the pixel difference data d corresponding to the image RGB channel components embedded in the image hiding process k1 ; Step II.

5. The reference pixel p of the RGB channel components obtained in step II.3 is ref1 The pixel difference data d of the image corresponding to the RGB channel components obtained in step II.4 k1 Processing is performed to obtain the RGB components of the color plaintext image A, and then the RGB components are merged into the final extracted image, and it is determined whether the extracted image has rows and columns with all zero pixels. If so, the pixel values ​​of the rows and columns are removed; Step II.

6. Obtain the extracted plaintext image; In step II.2, the extraction process of pixel binary data w is: Among them, w is the binary data of the image pixel to be extracted, E(i,j) is the pixel value of the encrypted image corresponding to the RGB channel component, and p ref2 is the reference pixel of each block of the encrypted image; abs(·) means returning the absolute value of a number; The fractal image restoration process before the RGB channel components are embedded in the data is: Among them, I(i,j) is the pixel value of the fractal image to be restored, E(i,j) is the pixel value of the encrypted image corresponding to the RGB channel component, and p min Indicates the minimum pixel value after ascending sorting, p max Represents the maximum pixel value after ascending sorting, represents the floor function; Reference pixel p ref2 The selection conditions are as follows: Among them, Z(k) is the chaotic sequence generated by the memristor multi-scroll hyperchaotic system in step I.1, which is generated using the same key as the data sender. The generated chaotic sequence is mapped to the interval [0,9] to determine the embedding position of the high binary bit of the reference pixel in the encrypted image corresponding to the RGB channel components.

6. The image restoration method based on the memristor multi-scroll hyperchaotic system according to claim 5, characterized in that: In step II.3, the image B′ is decrypted based on the improved AES decryption algorithm of the memristor multi-scroll hyperchaotic system. The specific process is as follows: Step II.3.

1. After eliminating transient effects, the hyperchaotic system iterates X_P*Y_P*(R+1) times to generate (R+1) groups of key sequences SS(k) and S(k), where SS(k) and S(k) are two different keys; Step II.3.

2. Perform an XOR operation on the key sequence SS(k) and the image block; Step II.3.

3. Perform an inverse row-column shift operation on the pixels in the image block. The elements in the j-th column of the image pixel matrix are circularly shifted downward by j units, and the elements in the i-th row are circularly shifted right by i units. The column shift is performed first, and then the row shift is performed; Wherein, i is the number of rows of the image pixel matrix, and j is the number of columns of the image pixel matrix; Step II.3.

4. Determine the circular shift flag index according to the pixel value of the pixel to the left of each pixel. The pixel at the upper left corner (0,0) of the shifted image is shifted to the left by default. Step II.3.

5. Determine the number of bits of cyclic shift of each pixel in the pixel block according to the key sequence S(k), and the direction of shift is determined by index, where 0 indicates right shift and 1 indicates left shift; Step II.3.

6. Perform an XOR operation on the key sequence SS(k) and the image block; Step II.3.

7. Perform an XOR operation on the pixels in the first row of the image pixel matrix and the pixels adjacent to its left, and perform an XOR operation on the pixels in the remaining rows and the pixels in the previous row, wherein the pixel at the upper left corner (0,0) of the image pixel matrix does not perform an XOR operation; proceed in order from bottom to top and from right to left; Step II.3.

8. Perform inverse row and column shift operations on the pixels in the image block, with the elements in the j-th column cyclically shifted downward by j units and the elements in the i-th row cyclically shifted right by i units; perform the column shift first and then the row shift; Step II.3.

9. According to the calculation method of the flag index in step II.3.5, the circular shift flag index is obtained. The pixel at the position (0,0) of the image after the shift operation in step II.3.8 is shifted right by default; Step II.3.

10. Determine the number of bits of cyclic shift of each pixel in the image block according to the key sequence S(k), and the direction of shift is determined by index; Step II.3.

11. Return to step II.3.6 to perform the next round of decryption, and perform R rounds in total, where R is a natural number greater than 0; Step II.3.

12. Perform the last XOR operation on the image block and the key sequence SS(k); Step II.3.

13. Obtain the plaintext image B.

7. The image restoration method based on the memristor multi-scroll hyperchaotic system according to claim 5, characterized in that: The step II.4 is specifically as follows: First, the number of iterations of the fractal image corresponding to the RGB channel components is calculated according to the escape time algorithm. By processing the number of iterations of the fractal image and the fractal image of the RGB channel components restored in step II.2, the pixel difference data d of the image corresponding to the embedded RGB channel components is extracted. k1 , the extraction process is as follows: d k1 =pt-k; Among them, d k1 is the pixel difference of the image corresponding to the RGB channel components, pt is the pixel rendering value of the fractal image corresponding to the restored RGB channel components, and k is the number of iterations; when the escape condition is met, k is equal to k1, otherwise k is equal to k2, where k1 is the number of iterations to reach the escape boundary, and k2 is the maximum number of iterations.

Citation Information

Patent Citations

  • Image encryption method based on multi-scroll chaotic system

    CN110929279A

  • Color image encryption method based on memristor hyper-chaotic system

    CN111756518A

  • Color image encryption method based on four-dimensional memristor hyperchaotic system

    CN114529440A

  • Chaotic map-based digital chaotic encryption method

    WO2018153317A1