Image encryption and decryption method for heterogeneous fractional-order hyperchaotic system with adjustable synchronization time

By building a time-adjustable synchronization error system in a heterogeneous fractional-order superchaotic system, the problem of difficulty in synchronizing time adjustment in image encryption and decryption is solved, and the expansion of key space and improvement of system security is achieved. .

CN114915400BActive Publication Date: 2024-11-29JIMEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing fractional-order superchaotic system is difficult to achieve free adjustment of synchronization time during image encryption and decryption, resulting in limited key space and insufficient system security.

Method used

Using heterogeneous fractional order superchaotic system, by building a driving system and response system with delay characteristics, a time-adjustable synchronization error system is established, and a time-adjustable heterogeneous fractional order superchaotic system synchronization method is designed to realize the synchronization error system. Time adjustable synchronization.

Benefits of technology

It expands the key space, increases the complexity of the key, improves the security of the system, and can resist various attacks such as statistical attacks and differential attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114915400B_ABST
    Figure CN114915400B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for encrypting and decrypting images of heterogeneous fractional-order hyperchaotic systems with adjustable synchronization time, comprising the following steps: constructing a fractional-order hyperchaotic Lorenz system with a time-delay characteristic based on a fractional-order hyperchaotic Lorenz system, and establishing a driving system; generating an initial value of the driving system according to a plaintext image, and generating a chaotic sequence of the driving system; generating ciphertext image transmission through DNA coding, cyclic shift scrambling and diffusion methods; constructing a fractional-order hyperchaotic Liu system with a time-delay characteristic based on a fractional-order hyperchaotic Liu system, establishing a response system, and establishing a time-adjustable synchronization error system; designing a time-adjustable heterogeneous fractional-order hyperchaotic system synchronization method, and realizing time-adjustable synchronization of the synchronization error system; the receiving party obtains a ciphertext image, a key, and an adjustable time parameter, and realizes decryption of the ciphertext image according to the reverse process of encryption. The method can realize more parameter expansion of the key space, and improves the security of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of communication security, and in particular relates to a heterogeneous fractional-order hyperchaotic system image encryption and decryption method with adjustable synchronization time. Background Art

[0002] In digital image encryption and secure communication, there are three very important factors: security, anti-attack capability, and complexity, which will increase the difficulty of hackers to crack. The signals generated by fractional-order hyperchaotic systems have characteristics such as non-periodicity, ergodicity, and noise-like properties, which give them a natural advantage in the field of digital image encryption. In image encryption, encryption methods that scramble image positions and pixel values ​​using chaotic systems with higher dimensions are usually considered, or chaotic sequence discrete cosine transform, Arnold transform and other methods are used. The chaotic sequence generated by the fractional-order hyperchaotic system has richer dynamic characteristics than the integer order, and is more suitable for image encryption. For example, in the literature "Ni J, Liu L, Liu C, et al. Fractional order fixed-time nonsingular terminal sliding mode synchronization and control of fractional order chaotic systems [J]. Nonlinear Dynamics, 2017.", the authors analyzed in detail the rich chaotic behavior of the fractional-order hyperchaotic Lorenz system and proposed a new fixed-time synchronization theory. The numerical simulation results show that this theory can achieve synchronization between fractional-order hyperchaotic systems within a fixed time. However, the stability time of fixed-time synchronization is affected by system parameters and controller parameters, and is difficult to adjust freely and is fixed, which brings a lot of insecurity to image decryption. In 2020, Lin proposed a special fixed-time stability theory that can establish a direct relationship between system parameters and convergence time, and its convergence time estimate is closer to the true value. In fact, studying the complexity, rapidity and security of image encryption and decryption methods is equivalent to studying the complexity and unpredictability of chaotic systems. The adjustability of the synchronization time between two fractional-order hyperchaotic systems can also increase the complexity and rapidity of the image encryption and decryption process. Summary of the invention

[0003] The purpose of the present invention is to provide a heterogeneous fractional-order hyperchaotic system image encryption and decryption method with adjustable synchronization time, which can expand the key space, increase the complexity of the key and improve the security of the system.

[0004] To achieve the above object, the technical solution adopted by the present invention is: a method for image encryption and decryption of a heterogeneous fractional-order hyperchaotic system with adjustable synchronization time, comprising the following steps:

[0005] Step S1, based on the fractional-order hyperchaotic Lorenz system, construct a fractional-order hyperchaotic Lorenz system with a time-delay characteristic, and establish a driving system;

[0006] Step S2, inputting the plaintext image matrix into a hash function and performing an XOR operation to obtain an initial value for the driving system, wherein the initial value is the key;

[0007] Step S3, generating a chaotic sequence by driving the system;

[0008] Step S4, according to the chaotic sequence generated in step S3, a ciphertext image is generated for transmission through DNA coding, cyclic shift scrambling and diffusion methods;

[0009] Step S5: Based on the fractional-order hyperchaotic Liu system, a fractional-order hyperchaotic Liu system with a time-delay characteristic is constructed to establish a response system;

[0010] Step S6, establishing a time-adjustable synchronization error system according to the drive system and response system established in step S1 and step S5;

[0011] Step S7, designing a time-adjustable heterogeneous fractional-order hyperchaotic system synchronization method to achieve time-adjustable synchronization of the synchronization error system;

[0012] Step S8: The receiver uses the ciphertext image obtained in step S4, the key obtained in step S2, and the adjustable time parameter T in step S7. c , according to the reverse process of step S4, the ciphertext image is decrypted.

[0013] Furthermore, in step S1, the state equation of the drive system is established as:

[0014]

[0015] Among them, D α represents the α-order derivative of the driving system, 0<α<1 represents the order, x i (t), i=1,2,3,4 represents the state variables of the drive system, σ i >0, i=1,2,3,4 are self-inhibition parameters, τ>0 is the time-invariant delay term, and a, b, h, r, l, c, b are constants.

[0016] Further, in step S2, the plaintext image matrix is ​​input into the SHA-256 function to form a 64-bit hexadecimal summary string with a length of 256 bits; the 64-bit hexadecimal summary is converted into a decimal number and divided into 8 sequences: H = {H1, H2, H3, H4, H5, H6, H7, H8}; the 8 numbers are XORed to obtain 4 numbers: x = {x1, x2, x3, x4}; these four numbers are used as initial values ​​of the drive system.

[0017] Furthermore, in step S3, the initial value x={x1, x2, x3, x4} obtained in step S2 is input into the driving system to generate a set number of chaotic sequences X within a given time.

[0018] Furthermore, step S4 specifically includes the following steps:

[0019] Step S41: There are four nucleic acid bases in the DNA sequence, namely adenine (A), thymine (T), cytosine (C) and guanine (G), where A and T are complementary, and G and C are complementary; for binary numbers, 0 and 1 are complementary, so 00 and 11, 01 and 10 are also complementary; by using the four bases A, T, C, G to encode 00, 01, 10, 11, there are 24 encoding combinations, but only eight of them meet the base complementary pairing principle. According to the DNA encoding rules, the image pixels are encoded;

[0020] Step S42: The color image has three channels: R, G and B, each of size M×N. The image is converted into an M×3N matrix I m (i, j); only rows and columns are operated in the cyclic shift chaos, therefore, randomly take M+3N groups of data in the chaotic sequence X generated in step S3 to obtain the chaotic sequence: S1={X1,Y1,Z1}; perform the following operations on each sequence in S1:

[0021]

[0022] Among them, m is a number from the S1 sequence; M and N represent the size of the image, and T m , W m Represents the new sequence value obtained after calculation by the formula, sequence T = {T x ,T y ,T z}、W={W x ,W y ,W z} is the new sequence obtained after each column sequence in S1={X1,Y1,Z1} is calculated by the formula; the scrambled sequence is obtained according to the following formula:

[0023]

[0024] Among them, S r (i) is the sequence required for row cyclic shift, S c (i) is the sequence required for column cyclic shift;

[0025] The image matrix is ​​scrambled according to the following formula:

[0026]

[0027] Where i = 1, 2, ..., M; j = 1, 2, ..., 3N; I p (i,:) represents I p The values ​​of all columns in the i-th row of the matrix, I p (:,j) indicates I p The values ​​of all rows in the jth column of the matrix, I m (i,:) represents I m The values ​​of all columns in the i-th row of the matrix, I m (:,j) indicates I m The values ​​of all rows in the jth column of the matrix, the function Circshift(a,b) cyclically shifts the matrix a by b positions; finally, the scrambled matrix I is obtained p (i, j);

[0028] Step S43: diffuse all pixels of the color image; randomly extract M×N groups of data from the chaotic sequence X to obtain a sequence: S2 = {X2, Y2, Z2}; then merge the obtained sequence into a matrix S2' of size M×3N, and process S according to the following formula: d :

[0029]

[0030] The diffusion operation is performed according to the following formula:

[0031]

[0032]

[0033] Among them, I c (1,:) indicates I c The values ​​of all columns in the first row of the matrix, I c (:,1) means I c The values ​​of all rows in column 1 of the matrix, where I c (i,:) represents I c The values ​​of all columns in the i-th row of the matrix, I c (:,j) indicates I c The values ​​of all rows in the jth column of the matrix;

[0034] After diffusion, we get the matrix I c , will I c After Arnold scrambling, we get the matrix I' c , will I' c Reconstruct into M×N×3 matrix I e , matrix I e That is the obtained ciphertext image; the obtained ciphertext, the initial driving signal and the predefined time are packaged and transmitted to the receiver through the signal.

[0035] Furthermore, in step S5, the state equation of the response system is established as:

[0036]

[0037] Among them, y i (t), i=1,2,3,4 represents the state variables of the drive system, σ i >0, i=1,2,3,4 are self-inhibition parameters, τ>0 is a time-invariant delay term; a1, b1, c1, r1 are constants; u j (t), j = 1, 2, 3, 4, represents a predefined time synchronization controller.

[0038] Furthermore, the specific implementation method of step S6 is:

[0039] The predetermined time synchronization error between the drive system and the response system is e i Set to:

[0040]

[0041] Where i = 1, 2, 3, 4, Represents the output value of the response system, x i Represents the output value of the drive system. The above formula is derived to obtain the predetermined time synchronization error system e i (t):

[0042] e i (t) = y i (t)-x i (t),i=1,2,…,n (9)

[0043] Assume that E(t)=(e1(t),e2(t),…,e n (t)) T ∈R n is the state vector of the error system, and its initial value is E(0)=Y(0)-X(0); the synchronous error system is described as:

[0044]

[0045] Substituting equations (1) and (7) into equation (10), we obtain:

[0046] D α e i (t)=-σ i e i (t)+h i (e i (t))+H i (e i (t-τ))+u i (t) (11)

[0047] In the formula, h i (e i (t)) = f i (Y,t)-f i (X,t);H i (e i (t-τ))=F i (Y,t-τ)-F i (X,t-τ); f i , F i Represents a functional relationship.

[0048] Furthermore, the specific implementation method of step S7 is:

[0049] The adaptive predefined time synchronization controller function is described as follows:

[0050]

[0051] Where Tc is the adjustable predefined time; C v is a normal constant determined by other parameters; β2, λ2, q, k, μ, ω are user-defined normal constants; C v The calculation formula is as follows:

[0052]

[0053] Select the following continuous functions as Lyapunov functions:

[0054]

[0055] V2(t) represents the Lyapunov function, e(t) is the error function, Indicates e i Add the absolute value of V2(t), take the derivative of V2(t), and combine it with formula (11) in step S6 to obtain:

[0056]

[0057] Further deduction of formula (14) yields:

[0058]

[0059] in, for V2(t)=0 is obtained; the synchronization error formula (8) in step S6 is calculated at the predetermined time T c Internal synchronization.

[0060] Furthermore, in step S8, the synchronization method of step S7 is used to construct a synchronization system, generate a synchronized chaotic sequence to perform the reverse operation of step S4, and perform reverse Arnold scrambling, reverse diffusion, reverse cyclic scrambling, and DNA decoding on the ciphertext information in sequence to obtain the decrypted image.

[0061] Compared with the prior art, the present invention has the following beneficial effects: the synchronization time between the drive-response system is adjustable, which is equivalent to adding a synchronization time key, expanding its key space, and increasing the complexity of the key. At the same time, the present invention has more parameters to expand the key space, and uses chaotic sequences for cyclic shift, DNA encoding, position disorder and XOR diffusion, and SHA-256 hash function to provide a "one-time one-key" guarantee for the system, thereby improving the security of the system. In addition, the present invention has high key sensitivity and plaintext sensitivity, and can resist various attacks such as statistical attacks and differential attacks. Therefore, the present invention has good encryption effect and good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 The figure is a schematic diagram of a method flow of an embodiment of the present invention.

[0063] Figure 2 Graph 1 is a chaotic behavior curve of a driving system according to an embodiment of the present invention.

[0064] Figure 3 The encrypted and decrypted digital images in the embodiment of the present invention are shown in FIG. 1 , wherein (a) is the original digital color image, (b) is the ciphertext image, (c) is the decrypted digital image, and (d) is a comparison between the decrypted image and the original image to obtain a completely black image.

[0065] Figure 4 , which are histograms of the plaintext image in the embodiment of the present invention; wherein (a) is the histogram of the R channel of the plaintext image, (b) is the histogram of the G channel of the plaintext image, and (c) is the histogram of the B channel of the plaintext image.

[0066] Figure 5 , which are histograms of the ciphertext image in the embodiment of the present invention; wherein (a) is the histogram of the R channel of the ciphertext image, (b) is the histogram of the G channel of the ciphertext image, and (c) is the histogram of the B channel of the ciphertext image.

[0067] Figure 6 , which are the related scatter plots in the embodiment of the present invention; wherein (a) is the related scatter plot of adjacent pixels of the original image, and (b) is the related scatter plot of adjacent pixels of the encrypted image.

[0068] Figure 7 1 and 2 are the response curves of the drive-response error system in the embodiment of the present invention; wherein (a) is the response curve of e1, (b) is the response curve of e2, (c) is the response curve of e3, and (d) is the response curve of e4. DETAILED DESCRIPTION

[0069] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0070] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0071] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0072] like Figure 1 As shown, this embodiment provides a method for image encryption and decryption of a heterogeneous fractional-order hyperchaotic system with adjustable synchronization time, which is characterized by comprising the following steps:

[0073] Step S1: Based on the fractional-order hyperchaotic Lorenz system, a fractional-order hyperchaotic Lorenz system with a time-delay characteristic is constructed to establish a driving system.

[0074] Step S2: input the plaintext image matrix into a hash function and perform an XOR operation to use it as the initial value of the driving system, where the initial value is the key.

[0075] Step S3: Generate a chaotic sequence for the driving system.

[0076] Step S4: Generate a ciphertext image for transmission based on the chaotic sequence generated in step S3 through DNA coding, cyclic shift scrambling and diffusion methods.

[0077] Step S5: Based on the fractional-order hyperchaotic Liu system, a fractional-order hyperchaotic Liu system with a time-delay characteristic is constructed to establish a response system.

[0078] Step S6: Establish a time-adjustable synchronization error system based on the drive system and response system established in steps S1 and S5.

[0079] Step S7: designing a time-adjustable heterogeneous fractional-order hyperchaotic system synchronization method to achieve time-adjustable synchronization of the synchronization error system.

[0080] Step S8: The receiver obtains the ciphertext image in step S4, the key obtained in step S2, and the adjustable time parameter T in step S7. c , according to the reverse process of step S4, the ciphertext image is decrypted.

[0081] In step S1, the state equation of the drive system is established as:

[0082]

[0083] Among them, D α represents the α-order derivative of the driving system, 0<α<1 represents the order, x i (t), i=1,2,3,4 represents the state variables of the drive system, σ i >0, i=1,2,3,4 are self-inhibition parameters, τ>0 is the time-invariant delay term, and a, b, h, r, l, c, b are constants.

[0084] In step S2, the plaintext image matrix is ​​input into the SHA-256 function to form a 64-bit hexadecimal summary string with a length of 256 bits; the 64-bit hexadecimal summary is converted into a decimal number and divided into 8 sequences: H = {H1, H2, H3, H4, H5, H6, H7, H8}; the 8 numbers are XORed to obtain 4 numbers: x = {x1, x2, x3, x4}; these four numbers are used as initial values ​​of the drive system.

[0085] In step S3, the initial value x={x1, x2, x3, x4} obtained in step S2 is input into the drive system, and a set number of chaotic sequences X are generated within a given time.

[0086] Step S4 specifically includes the following steps:

[0087] Step S41: DNA encoding

[0088] There are four nucleic acid bases in DNA sequence, namely adenine (A), thymine (T), cytosine (C) and guanine (G), among which A and T are complementary, and G and C are complementary; for binary numbers, 0 and 1 are complementary, so 00 and 11, 01 and 10 are also complementary; by using four bases A, T, C, G to encode 00, 01, 10, 11, there are 24 coding combinations, but only eight of them meet the base complementary pairing principle, as shown in Table 1.

[0089] Table 1 DNA coding rules

[0090]

[0091]

[0092] According to the DNA coding rule, the image pixels can be encoded. For example, if the pixel value of a normal image is 100, it is converted into a binary sequence [01100100]. We can encode it using the DNA coding rule 1 and obtain the DNA sequence [CGCA].

[0093] Step S42: Circular shifting disorder

[0094] A color image has three channels: R, G, and B, all of size M×N. Convert the image into an M×3N matrix I m (i, j); only rows and columns are operated in the cyclic shift chaos, therefore, randomly take M+3N groups of data in the chaotic sequence X generated in step S3 to obtain the chaotic sequence: S1={X1,Y1,Z1}; perform the following operations on each sequence in S1:

[0095]

[0096] Among them, m is a number from the S1 sequence; M and N represent the size of the image, and T m , W m Represents the new sequence value obtained after calculation by the formula, sequence T = {T x ,T y ,T z}、W={W x ,W y ,W z} is the new sequence obtained after each column sequence in S1={X1,Y1,Z1} is calculated by the formula; the scrambled sequence is obtained according to the following formula:

[0097]

[0098] Among them, S r (i) is the sequence required for row cyclic shift, S c (i) is the sequence required for column cyclic shift.

[0099] In this article, we will explain whether we want to operate on matrices or sequences. For example, the sequence S r It can be expressed as a sequence S r (i); matrix I p It can be expressed as I p (i,j), the brackets here are not a calculation method but a representation method.

[0100] The image matrix is ​​scrambled according to the following formula:

[0101]

[0102] where i = 1, 2, ..., M; j = 1, 2, ..., 3N; I p (i,:) represents I p The values ​​of all columns in the i-th row of the matrix, I p (:,j) indicates I p The values ​​of all rows in the jth column of the matrix, I m (i,:) represents I m The values ​​of all columns in the i-th row of the matrix, I m (:,j) indicates I m The values ​​of all rows in the jth column of the matrix, the function Circshift(a,b) cyclically shifts the matrix a by b positions; finally, the scrambled matrix I is obtained p (i, j).

[0103] Step S43: Diffusion

[0104] The pixels of all components of the color image need to be diffused. Randomly extract M×N groups of data from the chaotic sequence X to obtain the sequence: S2 = {X2, Y2, Z2}. Then merge the obtained sequence into a matrix S2' of size M×3N, and process S according to the following formula d :

[0105]

[0106] Then the diffusion operation is performed according to the following formula:

[0107]

[0108]

[0109] Among them, I c (1,:) indicates I c The values ​​of all columns in the first row of the matrix, I c (:,1) means I c The values ​​of all rows in column 1 of the matrix, where I c (i,:) represents I c The values ​​of all columns in the i-th row of the matrix, I c (:,j) indicates I c The values ​​of all rows in the jth column of the matrix, matrix S d The same goes for (i,j).

[0110] After diffusion, we get the matrix I c , will Ic After Arnold scrambling, we get the matrix I' c , will I' c Reconstruct into M×N×3 matrix I e , matrix I e That is the obtained ciphertext image; the obtained ciphertext, the initial driving signal and the predefined time are packaged and transmitted to the receiver through the signal.

[0111] In step S5, the state equation of the response system is established as:

[0112]

[0113] Among them, y i (t), i=1,2,3,4 represents the state variables of the drive system, σ i >0, i=1,2,3,4 are self-inhibition parameters, τ>0 is a time-invariant delay term; a1, b1, c1, r1 are constants; u j (t), j = 1, 2, 3, 4, represents a predefined time synchronization controller.

[0114] The specific implementation method of step S6 is:

[0115] The predetermined time synchronization error between the drive system and the response system is e i Set to:

[0116]

[0117] Where i = 1, 2, 3, 4, Represents the output value of the response system, x i Represents the output value of the drive system. The above formula is derived to obtain the predetermined time synchronization error system e i (t):

[0118] e i (t) = y i (t)-x i (t),i=1,2,…,n (9)

[0119] Assume that E(t)=(e1(t),e2(t),…,e n (t)) T ∈R n is the state vector of the error system, and its initial value is E(0)=Y(0)-X(0); the synchronous error system is described as:

[0120]

[0121] Substituting equations (1) and (7) into equation (10), we obtain:

[0122] D α e i (t)=-σ i e i (t)+h i (e i (t))+H i (e i (t-τ))+u i (t) (11)

[0123] In the formula, h i (e i (t)) = f i (Y,t)-f i (X,t);H i (e i (t-τ)) = F i (Y,t-τ)-F i (X,t-τ); f i , F i Represents a functional relationship.

[0124] The specific implementation method of step S7 is:

[0125] The adaptive predefined time synchronization controller function is described as follows:

[0126]

[0127] Where Tc is the adjustable predefined time; C v is a normal constant determined by other parameters; β2, λ2, q, k, μ, ω are user-defined normal constants; C v The calculation formula is as follows:

[0128]

[0129] Select the following continuous functions as Lyapunov functions:

[0130]

[0131] V2(t) represents the Lyapunov function, e(t) is the error function, Indicates e i Add the absolute value of V2(t), take the derivative of V2(t), and combine it with formula (11) in step S6 to obtain:

[0132]

[0133] Further deduction of formula (14) yields:

[0134]

[0135] in, for V2(t)=0 is obtained; the synchronization error formula (8) in step S6 is calculated at the predetermined time T c Internal synchronization.

[0136] In step S8, the synchronization method of step S7 is used to construct a synchronization system, generate a synchronized chaotic sequence, and perform the reverse operation of step S2-step S4, and perform reverse Arnold scrambling, reverse diffusion, and reverse cyclic scrambling on the ciphertext information in sequence; DNA decoding can obtain the decrypted image. Among them, the DNA decoding process is as follows: DNA decoding is the opposite of DNA encoding. By decoding the DNA sequence, the pixel value can be restored. If the DNA sequence is [CGCA], it is decoded to [01100100] according to rule 1 in table 1 of step S41, which is 100 in decimal. If it is decoded by rule 2 in table 1 of step S41, it will be translated into [10011000], which represents the decimal number 152. In view of this feature, ordinary image pixels can be encoded by rule R1 and then decoded by rule R2, thereby modifying the image pixel value and hiding the original image information.

[0137] In order to more intuitively illustrate the effectiveness and feasibility of the heterogeneous fractional-order hyperchaotic system image encryption and decryption method with adjustable synchronization time proposed by the present invention, this embodiment uses MATLAB software to conduct a computer simulation experiment on this method.

[0138] The state equation of the drive system is:

[0139]

[0140] The driving system is a 4-dimensional fractional-order hyperchaotic system, and the chaotic behavior curve is as follows: Figure 2 As shown. The state equation of the response system is:

[0141]

[0142] Among them, the response system is a 4-dimensional fractional-order hyperchaotic system. When the parameter is σ i =0.1(i=1,2,3,4),τ=0.8,a=10,b=40,c=2.5,l=10,h=4,r=2.5,a1=10,b1=28,c1=8 / 3,r1=1,order α=0.9. The error of the drive-response system is set as:

[0143]

[0144] Get the predetermined time synchronization error system:

[0145] D α ei (t)=-σ i e i (t)+h i (e i (t))+H i (e i (t-τ))+u i (t) (19) The active controller is designed as:

[0146]

[0147] Among them, α = 0.9, i = 1, 2, 3, 4, σ i =0.1, k = 5.2, μ = 12.9, ω = 11. We choose L = 0.2. At this time, the predetermined synchronization time of the drive-response system is: T C =1. The above results are applied to digital image encryption, and the test image is Lena (256×256). In this chapter, we simulate the synchronization of a predetermined time fractional-order hyperchaotic system and evaluate the encryption effect.

[0148] Encryption effect analysis: We select the classic Lena image for simulation experiments. We first execute the encryption algorithm given in step S4 to encrypt Figure 3 (a) is a digital color image. After the plaintext image is encrypted, it is formed as shown in Figure 3 (b) shows the ciphertext image. The ciphertext image is noisy and the original image information cannot be identified.

[0149] Histogram analysis: The histogram of a digital image is the frequency statistics of grayscale. Histogram analysis reflects the statistical characteristics of an image. Intruders can attack encrypted images through histogram analysis. The histogram of a random image with uniform grayscale distribution should be smooth and uniform, so a good encryption strategy should make the grayscale distribution uniform. Figure 4 The histogram of the plaintext image is shown in Figure 1, where (a) is the histogram of the R channel of the plaintext image, (b) is the histogram of the G channel of the plaintext image, and (c) is the histogram of the B channel of the plaintext image. It can be seen intuitively that the histogram of the plaintext image fluctuates significantly, while the histogram of the ciphertext is as follows: Figure 5 As shown in the figure, (a) is the histogram of the R channel of the ciphertext image, (b) is the histogram of the G channel of the ciphertext image, and (c) is the histogram of the B channel of the ciphertext image. It can be seen that the distribution is uniform and stable, and the grayscale value is close to uniform distribution, which effectively hides the plaintext information and makes it difficult for attackers to crack the ciphertext image through statistical analysis.

[0150] Correlation analysis: Calculate the correlation coefficient of two data sets X and Y with a length of n according to the formula.

[0151]

[0152]

[0153]

[0154] In the experiment, 8000 pairs of adjacent pixels are randomly selected in the horizontal, vertical and diagonal directions of the plaintext image and the ciphertext image, and the correlation coefficients of their pixel values ​​are calculated. Figure 6 It can be seen intuitively that the correlation of the plaintext image is shown in (a), the scattered points are concentrated on a straight line, and have obvious linear correlation, while the correlation of the ciphertext image is shown in (b), the scattered points are evenly distributed, and there is no obvious aggregation. The present invention can reduce the correlation of adjacent pixels to a very low level and has good encryption performance.

[0155] Information entropy analysis: Information entropy is a reflection of the degree of chaos in a system. The higher the information entropy, the more chaotic the system. The information entropy of an image with a grayscale of L is:

[0156]

[0157] Where P(s i ) is the pixel belonging to gray level s i probability.

[0158] Table 2 Information entropy of plaintext images and ciphertext images

[0159]

[0160] The theoretical maximum value of the information entropy of a 256-grayscale image is 8. Table 2 calculates the information entropy of each component of the plaintext image and the ciphertext image. It can be seen that the information entropy of the plaintext image is very low, while the information entropy of the ciphertext image is very high, close to 8. The present invention can improve the complexity of digital images and increase the difficulty of cracking.

[0161] Plaintext sensitivity analysis: The performance of encryption methods against differential attacks is usually tested by the number of pixels change rate (NPCR) and the unified average change intensity (UACI). The NPCR and UACI values ​​of the red, green, and blue components of a digital color image can be calculated using the following formula:

[0162]

[0163]

[0164] The present invention uses the SHA-256 hash function to generate an initial key sequence associated with the plaintext, which is highly sensitive to the input image data. Randomly changing a pixel value of the input image causes a significant change in the key, and the generated chaotic sequence also changes significantly. The NPCR and UACI (%) of the two encrypted digital images are shown in Table 3.

[0165] Table 3 NPCR and UACI (%) between two ciphertext images after plaintext changes

[0166] index R G B NPCR 99.5422 99.6124 99.6613 UACI 33.4426 33.5336 33.5158

[0167] The theoretical values ​​of NPCR and UACI are 99.6094% and 33.4635% respectively. The encryption method of the present invention is very close to the theoretical value, which proves that the method has good performance in resisting differential attacks.

[0168] Key sensitivity analysis: The NPCR and UACI (%) of the two encrypted digital images are shown in Table 4.

[0169] Table 4 NPCR and UACI (%) between two ciphertext images after key change

[0170]

[0171]

[0172] It can be seen from Table 4 that the experimental values ​​of NPCR and UACI are very close to the theoretical values, which proves that the present invention has good key sensitivity. i (i=1,2,3,4),τ,a,b,c,l,h,r and encrypted image information, and then decrypted through the response system (17), the active controller (20), the receiving key and the encrypted image, the synchronization result of the drive-response system is as follows Figure 7 As shown, (a) is the response curve of e1, (b) is the response curve of e2, (c) is the response curve of e3, and (d) is the response curve of e4. The image recovered after decryption is shown in Figure 3 (c) shows that it looks no different from the original image. For accuracy, we compare the decrypted image with the original image and get a completely black image, as shown in Figure 3 (d) This shows that the decrypted image is completely consistent with the plaintext image, proving that the encryption / decryption method proposed in the present invention is effective and can achieve lossless encryption and decryption.

[0173] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. A method for image encryption and decryption of heterogeneous fractional-order hyperchaotic systems with adjustable synchronization time, characterized in that: The following steps are involved: Step S1, based on the fractional-order hyperchaotic Lorenz system, construct a fractional-order hyperchaotic Lorenz system with a time-delay characteristic and establish a driving system; Step S2, inputting the plaintext image matrix into a hash function and performing an XOR operation to obtain an initial value for the driving system, wherein the initial value is the key; Step S3, generating a chaotic sequence by driving the system; Step S4, according to the chaotic sequence generated in step S3, a ciphertext image is generated for transmission through DNA encoding, cyclic shift scrambling and diffusion methods; Step S5: Based on the fractional-order hyperchaotic Liu system, a fractional-order hyperchaotic Liu system with a time-delay characteristic is constructed to establish a response system; Step S6, establishing a time-adjustable synchronization error system according to the drive system and response system established in step S1 and step S5; Step S7, designing a time-adjustable heterogeneous fractional-order hyperchaotic system synchronization method to achieve time-adjustable synchronization of the synchronization error system; Step S8: The receiver uses the ciphertext image obtained in step S4, the key obtained in step S2, and the adjustable time parameter T in step S7. c , according to the reverse process of step S4, the ciphertext image is decrypted; In step S1, the state equation of the drive system is established as: Among them, D α represents the α-order derivative of the driving system, 0<α<1 represents the order, x i (t), i=1,2,3,4 represents the state variable of the drive system, σ i >0, i=1,2,3,4 are self-inhibition parameters, τ>0 is a time-invariant delay term, a, b, h, r, l, c are constants; In step S2, the plaintext image matrix is ​​input into the SHA-256 function to form a 64-bit hexadecimal summary string with a length of 256 bits; the 64-bit hexadecimal summary is converted into a decimal number and divided into 8 sequences: H = {H1, H2, H3, H4, H5, H6, H7, H8}; the 8 numbers are XORed to obtain 4 numbers: x = {x1, x2, x3, x4}; these four numbers are used as initial values ​​of the drive system; In step S3, the initial value x={x1, x2, x3, x4} obtained in step S2 is input into the driving system, and a set number of chaotic sequences X are generated within a given time; Step S4 specifically includes the following steps: Step S41: There are four nucleic acid bases in the DNA sequence, namely adenine (A), thymine (T), cytosine (C) and guanine (G), where A and T are complementary, and G and C are complementary; for binary numbers, 0 and 1 are complementary, so 00 and 11, 01 and 10 are also complementary; by using the four bases A, T, C, G to encode 00, 01, 10, 11, there are 24 encoding combinations, but only eight of them meet the base complementary pairing principle. According to the DNA encoding rules, the image pixels are encoded; Step S42: The color image has three channels: R, G and B, each of size M×N. The image is converted into an M×3N matrix I m (i, j); only rows and columns are operated in the cyclic shift chaos, therefore, randomly take M+3N groups of data in the chaotic sequence X generated in step S3 to obtain the chaotic sequence: S1 = {X1, Y1, Z1}; perform the following operations on each sequence in S1: Among them, m is a number from the S1 sequence; M and N represent the size of the image, and T m , W m Represents the new sequence value obtained after calculation by the formula, sequence T = {T x , T y , T z }、W={W x ,W y , W z } is a new sequence obtained by calculating each column sequence in S1 = {X1, Y1, Z1} by the formula; the scrambled sequence is obtained according to the following formula: Among them, S r (i) is the sequence required for row cyclic shift, S c (i) is the sequence required for column cyclic shift; The image matrix is ​​scrambled according to the following formula: where i = 1, 2, ..., M; j = 1, 2, ..., 3N; I p (i,:) means I p The values ​​of all columns in the i-th row of the matrix, I p (:,j) indicates I p The values ​​of all rows in the jth column of the matrix, I m (i,:) means I m The values ​​of all columns in the i-th row of the matrix, I m (:,j) indicates I m The values ​​of all rows in the jth column of the matrix, the function Circshift(a,b) circulates the matrix a by b positions; finally, the scrambled matrix I is obtained p (i, j); Step S43: diffuse all pixels of all components of the color image; randomly extract M×N groups of data from the chaotic sequence X to obtain a sequence: S2 = {X2, Y2, Z2}; then merge the obtained sequence into a matrix S2′ of size M×3N, and process S according to the following formula: d : The diffusion operation is performed according to the following formula: Among them, I c (1,:) means I c The values ​​of all columns in the first row of the matrix, I c (:,1) means I c The values ​​of all rows in column 1 of the matrix, where I c (i,:) means I c The values ​​of all columns in the i-th row of the matrix, I c (:,j) indicates I c The values ​​of all rows in the jth column of the matrix; After diffusion, we get the matrix I c , will I c After Arnold scrambling, we get the matrix I′ c , change I′ c Reconstruct into M×N×3 matrix I e , matrix I e That is the obtained ciphertext image; the obtained ciphertext, the initial driving signal and the predefined time are packaged and transmitted to the receiver through the signal.

2. According to claim 1, the method for image encryption and decryption of heterogeneous fractional-order hyperchaotic system with adjustable synchronization time is characterized in that: In step S5, the state equation of the response system is established as: Among them, y i (t), i=1,2,3,4 represents the state variable of the drive system, σ i >0, i=1,2,3,4 are self-inhibition parameters, τ>0 is a time-invariant delay term; a1, b1, c1, r1 are constants; u j (t), j = 1, 2, 3, 4, represents a predefined time synchronization controller.

3. The method for image encryption and decryption of heterogeneous fractional-order hyperchaotic system with adjustable synchronization time according to claim 2 is characterized in that: The specific implementation method of step S6 is: The predetermined time synchronization error between the drive system and the response system is e i Set to: where i = 1, 2, 3, 4, Represents the output value of the response system, x i Represents the output value of the drive system. The above formula is derived to obtain the predetermined time synchronization error system e i (t): e i (t)=y i (t)-x i (t),i=1,2,...,n (9) Assume that E(t)=(e1(t),e2(t),...,e n (t)) T ∈R n is the state vector of the error system, and its initial value is E(0)=Y(0)-X(0); the synchronous error system is described as: Substituting equations (1) and (7) into equation (10), we obtain: D α e i (t)=-σ i e i (t)+h i (e i (t))+H i (e i (t-τ))+u i (t) (11) In the formula, h i (e i (t)) = f i (Y, t)-fi(X, t); H i (e i (t-τ))=F i (Y, t-τ)-F i (X, t-τ); f i , F i Represents a functional relationship.

4. The method for image encryption and decryption of heterogeneous fractional-order hyperchaotic system with adjustable synchronization time according to claim 3 is characterized in that: The specific implementation method of step S7 is: The adaptive predefined time synchronization controller function is described as follows: Where Tc is the adjustable predefined time; C v is a normal constant determined by other parameters; β2, λ2, q, k, μ, ω are user-defined normal constants; C v The calculation formula is as follows: Select the following continuous functions as Lyapunov functions: V2(t) represents the Lyapunov function, e(t) is the error function, Indicates e i Add the absolute value of V2(t), take the derivative of V2(t), and combine it with formula (11) in step S6 to obtain: Further deduction of formula (14) yields: in, for V2(t)=0 is obtained; the synchronization error formula (8) in step S6 is calculated at the predetermined time T c Internal synchronization.

5. The method for image encryption and decryption of heterogeneous fractional-order hyperchaotic system with adjustable synchronization time according to claim 4 is characterized in that: In step S8, the synchronization method of step S7 is used to construct a synchronization system to generate a synchronized chaotic sequence to perform the reverse operation of step S4, and the ciphertext information is sequentially subjected to reverse Amold scrambling, reverse diffusion, reverse cyclic scrambling, and DNA decoding to obtain the decrypted image.