Encryption method based on exponential amplifier and improved Zigzag transformation

Through the method based on exponential amplifier and improved Zigzag transform, chaotic sequences and pseudo-random number sequences are generated, which solves the problems of insufficient key space and insufficient randomness in the existing technology, enhances the resistance to attacks, and improves the robustness of the encryption algorithm. Great sex.

CN114978465BActive Publication Date: 2024-09-10CHANGCHUN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210465490.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-10
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

Existing image encryption methods have insufficient key space and insufficient randomness, and cannot effectively resist known plaintext attacks and selected plaintext attacks, and the Zigzag transform is not very versatile.

Method used

An encryption method based on exponential amplifier and improved Zigzag transform is used to generate a chaotic sequence by calculating the hash value of the image. It combines the Logistic chaotic system and the exponential chaotic system to perform bit-level scrambling and diffusion, and uses pseudo-random number sequences to perform XOR operations. , to generate the final password image.

Benefits of technology

The key space and randomness are improved, the resistance to attacks is enhanced, and the robustness of the encryption algorithm is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114978465B
    Figure CN114978465B
Patent Text Reader

Abstract

The invention discloses an encryption method based on an exponential amplifier and an improved Zigzag transformation, and relates to the field of image encryption technology. In order to solve the problems of insufficient key space and insufficient randomness existing in the existing image encryption method, as well as the security defects of being unable to effectively resist known plaintext attacks and chosen plaintext attacks and the problem that Zigzag can only be applied to square matrices, resulting in low versatility, the invention uses a hash function of the plaintext as the initial value of a logistic chaotic system, and then uses the numerical value obtained by Logistic iteration as the initial value and control parameter of an exponential chaotic system to obtain a key related to the plaintext, and then uses an improved Zigziag transformation to perform bit-level scrambling and diffusion on the plaintext, and then uses the key to iterate the exponential chaotic system to obtain a pseudo-random number sequence. Then, a pseudo-random XOR is performed on the scrambled and diffused image, and finally, the index order of the value iterated by the chaotic system is used to index and sort the image to obtain a final cipher map, and the method has better robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image encryption, and in particular to an encryption method based on exponential amplifier and improved Zigzag transformation. Background Art

[0002] With the rapid development of computer science and communication technology in recent years, people's daily communication methods have undergone earth-shaking changes. Multimedia communication has gradually become an important means for people to exchange information in their daily lives. Digital information includes images, audio and text. Among them, images contain the largest amount of information. Therefore, protecting digital images has attracted widespread attention from researchers, and research has been conducted to maintain the security of these data and protect them from unauthorized users. The most common image encryption methods are diffusion and scrambling. The image cryptographic system of this mechanism usually includes two stages: the scrambling stage mainly scrambles the information order of the image in sequence, moves pixel a to the position of pixel b, moves pixel b to the position of pixel c, etc., so that the relationship between plaintext, key and ciphertext cannot be obtained by statistical analysis of the ciphertext image; the diffusion stage allows any pixel of the plaintext to affect the value of multiple bits in the cipher image. In the scrambling and diffusion encryption system, the generation of keys and control parameters is one of the decisive factors for the security and complexity of the algorithm.

[0003] A good encryption algorithm should be sensitive to the key, and the key space should be large enough to resist brute force attacks. It should also be able to resist chosen plaintext attacks, differential attacks, and shear attacks. In recent decades, a large number of chaos-based image encryption algorithms have been proposed. These algorithms can be divided into many categories, such as block-based encryption algorithms, deoxyribonucleic acid (DNA)-based, elliptic curve (ECC)-based schemes, etc.

[0004] Zigzag transformation is a common transformation method. The elements in the matrix are scanned in a "Z" shape, and the scanned elements are stored in a one-dimensional array. Then, the one-dimensional array is reconstructed into a two-dimensional matrix in some way. The above process is called Zigzag transformation. Summary of the invention

[0005] The present invention provides an encryption method based on an exponential amplifier and an improved Zigzag transform to solve the problems of insufficient key space and insufficient randomness in existing image encryption methods, as well as the security defect of being unable to effectively resist known plaintext attacks and chosen plaintext attacks, and the problem that Zigzag can only be applied to square matrices, resulting in its low versatility.

[0006] The encryption method based on exponential amplifier and improved Zigzag transformation has the following specific steps:

[0007] The user encryption and decryption keys are set as: the hash value of the initial image, the control parameters and initial values ​​of the logistic map and exponential chaotic system, and the number of iterations; the specific implementation is as follows:

[0008] Step 1: Select a grayscale image of size M×N as the original plaintext image Image;

[0009] Step 2: Calculate the hash value K of the plaintext image Image in step 1, and perform an XOR operation on each 8-bit group of the hash value K to obtain four decimal numbers h1, h2, h3, and h4;

[0010] Step 3: Convert h1, h2, h3, and h4 generated in step 2 into the initial value x1 of the chaotic system. f , and the control parameter μ chao ; Using the initial value x1 f With the control parameter μ chao Iterate the chaotic system to generate a chaotic sequence X with a length of M×N+3 chao =(x1x2x3......x m×n+2 x m×n+3 );

[0011] Step 4: Obtain the chaotic sequence X chao The first M×N elements x1, x2, x3...x m×n-1 , x m×n Arrange the values ​​from small to large to get the index sequence index;

[0012] Step 5: Use the chaotic sequence X generated in step 3 chao The remaining three elements x m×n+1 , x m×n+2 , x m×n+3 , and h1, h2, h3, h4 generated in step 2, generate the parameters α, μ and initial value x1 of the exponential chaotic system, which can be expressed as follows:

[0013]

[0014] Among them, a2, b2, c2 are the control values ​​input by the user;

[0015] Step 6: Bring a, u, x1 generated in step 5 into the exponential chaotic system to generate an M×N chaotic sequence Chaos=(px1px2px3......px m×n-1 px m×n ), the exponential chaotic system (1D-ILTM) is expressed as follows:

[0016]

[0017] Step 7: convert the original plaintext image Image described in step 1 into a bit-level matrix IM2;

[0018] Step 8: Divide each pixel of the bit-level matrix IM2 obtained in step 7 into 8 planes according to the number of bits, namely IM 2-8 , IM 2-7 , IM 2-6 , IM 2-5 , IM 2-4 , IM 2-3 , IM 2-2 , IM 2-1 ;

[0019] Among them, IM 2-q1 , q1=1,2,3……8, represents the plane formed by the bit value of the q1th digit. Users select the IM 2-8 The matrix to the r-th bit value constitutes a total of 8-r planes; r = 8, 7...2, 1;

[0020] Step 9: Divide the selected matrix plane into blocks, where the 8th plane is not divided into blocks, and the remaining planes are divided into blocks of size 2x2. 2-G , G=8,6,4,2, then IM 2-G Data flipping within the plane;

[0021] Step 10: Perform an improved ZigZag transformation on the selected matrix, and then reassemble the transformed bit-level matrix and the unselected bit-level matrix into a bit-level matrix IM according to the bit position. m2 ;

[0022] Step 11: Convert the bit-level matrix IM m2 Convert from bit level to pixel level matrix IM x2 , the pixel-level matrix IM x2 Perform XOR operation with the chaotic sequence Chaos obtained in step 6 to obtain the matrix IM X3 ;

[0023] Use the index obtained in step 4 and IM x3 Reorder and get the array Vetor Cipher ;

[0024] The array Vetor Cipher Converted into an M×N matrix, it is the final encrypted image.

[0025] Beneficial effects of the present invention: The encryption method based on exponential amplifier and improved Zigzag transformation proposed by the present invention uses the hash function of the processed plaintext as the initial value of the logistic chaotic system, and then uses the numerical value obtained by Logistic iteration as the initial value and control parameter of the proposed exponential chaotic system to obtain the key related to the plaintext, and then uses the improved Zigziag transformation to perform bit-level scrambling and diffusion on the plaintext, and then uses the obtained key to iterate the proposed exponential chaotic system to obtain a pseudo-random number sequence. Then, the scrambled and diffused image is XORed using pseudo-random, and finally the index order of the value iterated by the Logistic chaotic system is used to index and sort the image to obtain the final cipher map. The Lypunov exponent of the proposed exponential chaotic system has a larger key space than the existing chaotic systems such as Logistic and Tent mapping. The parameters such as Lypunov exponent, bifurcation diagram and sample entropy of the chaotic system are tested to show that it has stronger randomness. In addition, the chaotic system is more sensitive to the initial value. Compared with some existing algorithms, the proposed algorithm has better robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 The encryption process flow chart of the encryption method based on exponential amplifier and improved Zigzag transformation of the present invention;

[0027] Figure 2 It is the standard Zigzag transformation principle diagram;

[0028] Figure 3 This is a diagram showing the effect of encryption using the encryption method based on exponential amplifier and improved Zigzag transformation of the present invention: Figure 3 (a) is the original image of “bridge”; Figure 3 (b) is the encrypted image of “bridge”; Figure 3 (c) is the decrypted image of “bridge”;

[0029] Figure 4 The histogram is a decryption method in the encryption method based on the exponential amplifier and the improved Zigzag transformation according to the present invention. DETAILED DESCRIPTION

[0030] Specific implementation method 1. Combination Figure 1 This embodiment describes an encryption method based on an exponential amplifier and an improved Zigzag transform. In this method, the user encryption and decryption keys are set to: a hash value of an initial image, a logistic map, control parameters and initial values ​​of the proposed exponential chaotic system, and the number of iterations.

[0031] The image encryption method based on exponential chaotic system and improved Zigzag transform is implemented by the following steps:

[0032] Step 1: Select a grayscale image of size M×N as the original plaintext image Image.

[0033] Step 2: Calculate the hash value K of the plaintext image Image described in step 1. This method uses the SHA-256 algorithm, as shown in the following formula (1):

[0034] K=Hash-256(Image) (1)

[0035] In the formula, Hash-256() is the hash value function, where K = {k1k2 k3.. ....k 255 k 256}.

[0036] Step 3: Perform XOR operation on the 256-bit hash value K obtained in step 2 in groups of 8 bits to obtain h1, h2, h3, and h4, as shown in formula (2):

[0037]

[0038] In the formula is the XOR operator, where k i , i=(1, 2, 3...256) represents the value of the i-th bit in K obtained.

[0039] Step 4: Convert h1, h2, h3, and h4 generated in step 3 into the initial value x1 of the Logistic chaotic system through calculation. f , and the control parameter μ chaos , the calculation method is shown in formula (3):

[0040]

[0041] Among them, mod() is the modulo function, floor() is the integer function, 3.89 and 0.11 are the control parameters of the corresponding chaotic system, which are controlled and input by the user.

[0042] Step 5: Use the generated x1 f With the control parameter μ chao The iterative chaotic system generates a chaotic sequence X with a length of M×N+3 chaos =(x1x2x3......x m×n+2 x m×n+3 ).

[0043] Step 6: Get the chaotic sequence X chaos The first M×N elements x1, x2, x3...x m×n-1 , x m×nArrange the values ​​in ascending order and obtain the index of the arrangement order, as shown in formula (4):

[0044] [~, index]=sort(x1x2x3......x m×n-1 x m×n ) (4)

[0045] Among them, sort() is a sorting function, and the default sorting method is from small to large. [~, index] means obtaining the sorting index of the data in the sort function and naming it index, and does not return the sorted sequence.

[0046] Step 7: Use the chaotic sequence X generated in step 5 chaos The remaining three elements x m×n+1 , x m×n+2 , x m×n+3 Together with h1, h2, h3, and h4 generated in step 3, the parameters α, μ, and the initial value x1 of the proposed exponential chaotic system are generated, as shown in formula (5):

[0047]

[0048] Among them, 10, 3.9, and 0.1 are control values ​​entered by the user.

[0049] Step 8: Use a, u, x1 generated by formula (6) to bring into the proposed exponential chaotic system to generate a chaotic sequence Chaos = (px1px2px3......px m×n-1 px m×n ), so far, the chaotic matrix Chaos used for diffusion is generated, and the proposed chaotic system (1D-ILTM) is shown in formula (6):

[0050]

[0051] Step 9: Convert the original plaintext image Image described in step 1 into a bit-level matrix IM2, as shown in formula (7):

[0052] IM2=dec2base(Image,2,8) (7)

[0053] The function dec2base(Image,2,8) converts the pixel values ​​in the image Image into eight-bit binary numbers, and IM2 is the converted matrix.

[0054] Step 10: Divide each pixel obtained in step 9 into 8 planes according to the number of bits, namely IM 2-8 , IM 2-7 , IM2-6 , IM 2-5 , IM 2-4 , IM 2-3 , IM 2-2 , IM 2-1 , where IM 2-q1 , q1=(1,2,3......8) represents the plane formed by the bit value of the q1th digit. Users can select the plane from IM by analyzing their own security needs. 2-8 The matrix is ​​divided into 8-r+1 planes, which are composed of r=(8, 7...2, 1) bits. In the example, the encryption is performed from IM 2-8 Encryption to IM 2-5 There are 4 planes in total.

[0055] Step 11: Divide the selected matrix plane into blocks, where the 8th bit plane is not divided into blocks, and the remaining selected matrix planes are divided into blocks of size 2x2. In this example, IM 2-7 ,IM 2-6 , IM 2-5 The three planes are divided into 2x2 blocks. If the selected matrix plane contains IM 2-G , G=(8,6,4,2), then IM 2-G The data in the plane is flipped. In this example, IM 2-8 , IM 2-6 The data of the two planes are flipped as shown in formula (8):

[0056]

[0057] Among them, flip() means flipping the data.

[0058] Step 12: Select the matrix Perform an improved ZigZag transformation. The improved ZigZag transformation function Impz() method is as follows:

[0059] First, take the larger value of the number of rows M and the number of columns N of the read image Image, as shown in formula (9):

[0060] Max=max(M,N) (9)

[0061] The function of the max() function is to take the larger value among the parameters.

[0062] Generate index sequence index z =(1,2,3...M 2 -1,M 2 ), as shown in formula (10)

[0063] index z1 =[1:Max2 ] (10)

[0064] Where [1:Max 2 ] function is to generate a value from 1 to Max 2 sequence of integers.

[0065] For the generated index index z1 Perform a Z-shaped transformation, as shown in formula (11):

[0066] index z2 =zigzag(index z1 ) (11)

[0067] Among them, the function of zigzag() is to perform zigzag transformation on the data. The specific process is as follows Figure 2 shown.

[0068] The index z2 Numbers with indices less than or equal to M×N are put into a new index index z3 middle

[0069] The index z3 Reconstructed into an M×N matrix, as shown in formula (12):

[0070] index z3 = reshape(index z3 ,M,N) (12)

[0071] The reshape function reshapes the data into a matrix of M rows and N bits.

[0072] The selected matrix According to index z3 To scramble.

[0073] Step 13: The selected bit-level matrix that has been processed in step 12 and the remaining bit-level matrix that has not been processed in step 12 are reassembled into a bit-level matrix IM according to the bit positions. m2 .

[0074] Step 14: Convert the bit-level matrix IM m2 Convert from bit level to pixel level matrix IM x2 , the method is as follows:

[0075] IM x2 =bin2dec(IM m2 ) (13)

[0076] Among them, the bin2dec() function converts data from bit level to pixel level.

[0077] Step 15: Take the IM obtained in step 14 x2 Perform an XOR operation with the chaotic sequence Chaos obtained in step 5, as shown in formula (14):

[0078] IM X3 =bitxor(Chaos,IM x2 ) (14)

[0079] The bitxor() function represents the XOR operation of two sets of data.

[0080] Step 14: Use the index obtained in step 6 to convert the IM obtained in step 13 x3 Rearrange as shown in formula (15)

[0081] Vetor Cipher =IM x3 (index) (15)

[0082] Step 15: Vetor the array of Step 14 Cipher Convert to a matrix of size M×N, as shown in formula (16):

[0083] Cipher=reshape(Vetor Cipher ,M,N) (16)

[0084] The matrix Cipher generated after the conversion is the final encrypted graph.

[0085] In this implementation, the decryption process is also included:

[0086] Step 16: Use the plaintext image hash function DK as the user decryption key Obtain dh1, dh2, dh3, dh4 using the method in step 3, and calculate dx1 using the method in step 4 f , dμ chaos , obtain the chaotic sequence dX for decryption in the same way as step 8 chaos =(dx1dx2dx3......dx m×n+2 dx m×n+3 ), and obtain the index dindex for decryption using the method in step 6.

[0087] Step 17: Use the decryption index dindex and dx obtained in step 16 m×n+1 , dx m×n+2 , dx m×n+3 Use the method in step 7 to obtain the control parameters dα, dμ, dx1 of the exponential chaotic system.

[0088] Step 18: Using the parameters dα, dμ, dx1 obtained in step 17, the chaotic sequence dChaos for decryption is obtained according to the method of step 8: (dpx1dpx2dpx3...dpx m×n+2 dpx m×n+3 )

[0089] Step 19: Use the index dindex in step 16 to obtain the matrix Ac before scrambling.

[0090] Step 20: Perform an XOR operation on Ac and dChaos obtained in step 18, as shown in formula (17):

[0091] A=bitxor(dChaos,Ac) (17)

[0092] Step 21: Convert the matrix A obtained in step 18 into a bit-level matrix A2 in the manner of step 6.

[0093] Step 22: Divide into eight planes according to the number of bits (A 2-8 , A 2-7 , A 2-6 , A 2-5 , A 2-4 , A 2-3 , A 2-2 , A 2-1 ), where A 2-w , w=(8, 7...1) represents the plane composed of the w-th bit.

[0094] Step 23: A obtained in step 22 2-w , w = (8, 7 ... 1) eight planes select the matrix after step 12 according to the security level used by the encryptor, if it contains A 2-G , G = (8, 6, 4, 2), then the data of the matrix is ​​flipped, as shown in formula (18):

[0095]

[0096] Step 24: For each selected plane, generate an index, as shown in Formula 19:

[0097] index w =[1:M×N](w=8,7,6...2,1) (19)

[0098] Where index w , (w=8, 7, 6...2, 1) represents the index of the surface formed by the corresponding w-th bit.

[0099] Step 25: Transform the index of the selected plane as in step 12.

[0100] Step 26: Use the index obtained in step 25 to restore the bit-level plane corresponding to the index.

[0101] Step 27: Re-merge the bit-level planes into an eight-bit bit-level plane B.

[0102] Step 28: Convert B to a decimal pixel-level plane B1, as shown in formula (20):

[0103] B1=bin2dec(B) (20)

[0104] Among them, bin2dec() means converting the data to decimal.

[0105] Step 29: Convert B1 obtained in step 28 into a matrix G of size M×N, where G is the decrypted original image Image, as shown in formula (28):

[0106] G = reshape(B1, M, N) (28)

[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. The encryption method based on exponential amplifier and improved Zigzag transformation is characterized by: The user encryption and decryption keys are set as: the hash value of the initial image, the control parameters and initial values ​​of the logistic map and exponential chaotic system, and the number of iterations; the specific implementation is as follows: Step 1: Select a grayscale image of size M×N as the original plaintext image Image; Step 2: Calculate the hash value K of the plaintext image Image in step 1, and perform an XOR operation on each 8-bit group of the hash value K to obtain four decimal numbers h1, h2, h3, and h4; Step 3: Convert h1, h2, h3, h4 generated in step 2 into the initial value x1 of the chaotic system f , and the control parameter μ chao ; Using the initial value x1 f With the control parameter μ chao Iterate the chaotic system to generate a chaotic sequence X with a length of M×N+3 chao =(x1x2x3……x m×n+2 x m×n+3 ); Step 4: Obtain the chaotic sequence X chao The first M×N elements x1, x2, x3...x m×n-1 ,x m×n Arrange the values ​​from small to large to get the index sequence index; Step 5: Use the chaotic sequence X generated in step 3 chao The remaining three elements x m×n+1 ,x m×n+2 ,x m×n+3 , and h1, h2, h3, h4 generated in step 2, the parameters α, μ and initial value x1 of the exponential chaotic system are expressed as follows: Among them, a2, b2, c2 are the control values ​​input by the user; Step 6: Bring a,u,x1 generated in step 5 into the exponential chaotic system to generate an M×N chaotic sequence Chaos=(px1px2px3……px m×n-1 px m×n ), the exponential chaotic system is expressed as follows: Step 7: convert the original plaintext image Image described in step 1 into a bit-level matrix IM2; Step 8: Divide each pixel of the bit-level matrix IM2 obtained in step 7 into 8 planes according to the number of bits, namely IM 2-8 ,IM 2-7 ,IM 2-6 ,IM 2-5 ,IM 2-4 ,IM 2-3 ,IM 2-2 ,IM 2-1 ; Among them, IM 2-q1 ,q1=1,2,3……8, represents the plane formed by the bit value of the q1th digit. Users select the IM 2-8 The matrix to the r-th bit value constitutes a total of 8-r planes; r = 8,7...2,1; Step 9: Divide the selected matrix plane into blocks, where the 8th plane is not divided into blocks, and the remaining selected planes are divided into blocks of size 2x2. 2-G , G=8,6,4,2, then IM 2-G Data flipping within the plane; Step 10: Perform an improved ZigZag transformation on the selected matrix, and then reassemble the transformed bit-level matrix and the unselected bit-level matrix into a bit-level matrix IM according to the bit position. m2 ; The improved ZigZag transformation function Impz() method is as follows: first, take the maximum value of the number of rows M and the number of columns N of the read image Image to generate the index sequence index z =1,2,3……M 2 -1,M 2 , which is expressed as follows: index z1 =[1:Max 2 ] Where, [1:Max 2 ] function is used to generate the value from 1 to Max 2 sequence of integers; For the generated index index z1 Perform a Z-shaped transformation to obtain the transformed index index z2 , which is expressed as follows: index z2 =zigzag(index z1 ) In the formula, the zigzag() function performs a zigzag transformation on the data; the index index z2 Data less than or equal to M×N is put into index index z3 In the index z3 Reconstructed into an M×N matrix, it is expressed as follows: index z3 =reshape(index z3 ,M,N) In the formula, the reshape() function reconstructs the data into a matrix of M rows and N bits, and reshapes the selected matrix according to index z3 To scramble; Step 11: Convert the bit-level matrix IM m2 Convert the pixel-level matrix IM from bit level to decimal x2 , the pixel-level matrix IM x2 Perform XOR operation with the chaotic sequence Chaos obtained in step 6 to obtain the matrix IM X3 ; Use the index obtained in step 4 and IM x3 Reorder and get the array Vetor Cipher ; The array Vetor Cipher Converted into an M×N matrix, it is the final encrypted image.

2. The encryption method based on exponential amplifier and improved Zigzag transformation according to claim 1, characterized in that: It also includes the decryption method, the specific steps are as follows: Step A: Use the plaintext image hash function DK as the user decryption key According to the method of step 2, four decimal numbers dh1, dh2, dh3, dh4 are obtained, and dx1 is calculated according to the method of step 3. f ,dμ chao , according to step 3, obtain the chaotic sequence dX for decryption chaos =(dx1dx2dx3……dx m×n+2 dx m×n+3 ), use the method in step 4 to obtain the index dindex for decryption; Step B: Decryption index dindex and dx m×n+1 ,dx m×n+2 ,dx m×n+3 Use the method in step 5 to obtain the control parameters dα, dμ, dx1 of the exponential chaotic system; Step C: Use the parameters dα, dμ, dx1 obtained in step B to obtain the chaotic sequence dChaos for decryption according to the method of step 6: (dpx1dpx2dpx3...dpx m×n+2 dpx m×n+3 ); Use the index dindex in step A to obtain the matrix Ac before scrambling; Step D, performing an XOR operation on Ac and the chaotic sequence dChaos used for decryption to obtain a matrix A, and converting the matrix A into a bit-level matrix A2; According to the number of bits, it is divided into eight planes (A 2-8 ,A 2-7 ,A 2-6 ,A 2-5 ,A 2-4 ,A 2-3 ,A 2-2 ,A 2-1 ), where A 2-w , represents the plane composed of the w-th bit; w = 8, 7…1; Step E: A 2-w The eight planes select the bit plane matrix to be encrypted according to the security level used by the encryptor and divide it into blocks. The 8th bit plane is not divided into blocks, and the remaining selected matrix planes are divided into 2x2 blocks. If the selected matrix plane contains A 2-G If there are matrices, the matrix data is flipped and an index index is generated for each selected plane. w ;index w represents the index of the face corresponding to the w-th bit; Step F, performing an improved ZigZag transform on the index of the selected plane, restoring the bit-level plane corresponding to the index, and re-merging the bit-level plane into an eight-bit bit-level plane B; Step G: Convert the bit-level plane B into the pixel-level plane B1, and convert B1 into an M×N matrix G, which is the decrypted original image Image.

3. The encryption method based on exponential amplifier and improved Zigzag transformation according to claim 1, characterized in that: In step 11, the decimal pixel-level matrix IM x2 The formula is as follows: IN THE x2 bin2dec(IM m2 ) Wherein, the bin2dec() function converts data from bit level to pixel level.

4. The encryption method based on exponential amplifier and improved Zigzag transformation according to claim 1, characterized in that: In step 11, the matrix IM X3 The formula is as follows: IN THE X3 =bitxor(Chaos,IM x2 ) In the formula, the bitxor() function performs an XOR operation on two sets of data.