CN106296561A - Image encryption method based on hyperchaotic system and device, decryption method and device - Google Patents
Image encryption method based on hyperchaotic system and device, decryption method and device Download PDFInfo
- Publication number
- CN106296561A CN106296561A CN201610640544.3A CN201610640544A CN106296561A CN 106296561 A CN106296561 A CN 106296561A CN 201610640544 A CN201610640544 A CN 201610640544A CN 106296561 A CN106296561 A CN 106296561A
- Authority
- CN
- China
- Prior art keywords
- image
- pixel
- diffusion
- key
- hyperchaotic system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Facsimile Transmission Control (AREA)
- Storage Device Security (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of image encryption method based on hyperchaotic system and device, the method includes: each color component R, G, B of original color image is carried out randomness layout process, obtains the image after layout;Cipher key matrix and the key of pixel permutation of pixel diffusion is obtained by hyperchaotic system;The cipher key matrix spread by described pixel carries out pixel DIFFUSION TREATMENT to the image after layout, obtains the uniform diffusion image of pixel distribution;According to the key of described pixel permutation, described diffusion image is carried out matrixing, with the arrangement position of changing image pixel, obtain image after encryption.Additionally, present invention also offers a kind of image decryption method and device based on hyperchaotic system.Encryption and decryption method and device provided by the present invention so that ciphertext, key, plaintext are closely connected, and have good diffusion effect, are greatly improved confidentiality and the safety of image encryption.
Description
Technical field
The present invention relates to image encryption technical field, particularly relate to a kind of image encryption method based on hyperchaotic system
And device, decryption method and device.
Background technology
Along with becoming increasingly popular of the Internet, the exchange of the Multimedia Digitalization information such as image, voice, video the most increasingly has
There are opening, freedom and international, thus occur in that various information security issue.For digital image information
Speech, due to features such as its data volume are big, redundancy is high and dependency is strong so that traditional encryption technology shows the skills such as efficiency is low
Art is not enough, it is difficult to meet the requirement of real-time.Recently as to the development of chaology research and deeply, chaos study becomes
One of hot issue of nonlinear science field.Chaos system, with its noise like and feature extremely sensitive to initial value, more comes
It is applied in the design of secret signalling manyly, and successively proposes many AESs based on chaos system.
Than Low-dimensional Chaotic Systems, high-dimension chaotic system has more complicated dynamic behavior and more preferable randomness,
The deciphering method of general low-dimensional, such as phase space reconfiguration, returns the very difficult decoding hyperchaotic system encryptions such as reflection and nonlinear prediction
Information, therefore, there is the hyperchaos applied research of 2 or more than 2 positive Lyapunov exponents increasingly by people's
Pay close attention to.
Existing a kind of image encryption method based on hyperchaotic system (IHIE algorithm), its core concept is described as follows:
First, utilize hyperchaotic system that image pixel is carried out scramble, resist the deciphering method of general low-dimensional chaos;Secondly, by close
Key stream in literary composition feedback method control algolithm so that encryption desired parameters is the most relevant to plaintext by Cipher Feedback, bright by one
The impact of word joint is diffused in more ciphertext byte.
The pixel value encrypting stage of the method only has takes turns replacement operation so that a plaintext pixel value change can only affect
This pixel ciphertext pixel value below;And relation is the most complicated between ciphertext and key and plaintext, therefore, its final encryption key
Sequence equally cracks.And this encryption method is just for gray level image, and the encryption for coloured image does not illustrate.
The core concept of another kind of resume image based on hyperchaos (HIE algorithm) is to utilize Logistic chaos to reflect
Penetrate and picture element matrix is carried out scramble, by the key stream that hyperchaos produces, gray value is encrypted the most again.HIE algorithm realizes
Simply, for the encryption system that requirement of real-time is high, this algorithm is one and selects well.
But this employs Low-dimensional Chaotic Systems to pixel permutation, does not reaches randomness and the confidentiality of multi-dimension Chaos;One
Individual plaintext byte can only affect a ciphertext byte, causes can being easy to by chosen-plain attact and chosen ciphertext attacks
Decode ciphertext;And this encryption method does not illustrate just for gray level image, the encryption to coloured image.
Summary of the invention
It is an object of the invention to provide a kind of image encryption method based on hyperchaotic system and device, decryption method and dress
Put, it is therefore intended that coloured image is carried out encryption and decryption, to improve chaos system confidentiality in image encryption operates and peace
Quan Xing.
For solving above-mentioned technical problem, the present invention provides a kind of image encryption method based on hyperchaotic system, including:
Each color component R, G, B of original color image is carried out randomness layout process, obtains the image after layout;
Cipher key matrix and the key of pixel permutation of pixel diffusion is obtained by hyperchaotic system;
The cipher key matrix spread by described pixel carries out pixel DIFFUSION TREATMENT to the image after layout, obtains pixel distribution
Uniform diffusion image;
According to the key of described pixel permutation, described diffusion image is carried out matrixing, with the row of changing image pixel
Column position, obtains image after encryption.
Alternatively, described each color component R, G, B to original color image carries out randomness layout process, obtains layout
After image include:
By original color image that size is M × N × 3 R, G, B tri-pigment leave the two of tri-M × N of R, G, B respectively in
In dimension matrix, according to following calculation procedure, to R, G, B component again layout, obtain the image im after layoutM×3N:
S11: according to the value of following formula calculating X, Y:
X=mod (X, M)+1;
Y=mod (Y, 3N)+1;
Wherein, a, b are the control parameter of system, and mod function is MOD function;
S12: judge obtain X, Y value, if 0 < Y < (N+1), then R (X, Y) be assigned to im (i, j);If N < Y is < (2N
+ 1), then G (X, Y-N) be assigned to im (i, j);If 2N < Y < (3N+1), then B (X, Y-2N) be assigned to im (i, j);
Repeat step S11, S12, until R, G, B all elements layout completes.
Alternatively, cipher key matrix K of pixel diffusion is obtained by hyperchaotic systemM×(3N+4)Including:
Pre-iteration N of S21: hyperchaotic system01Secondary, eliminate the ill-effect that transient process is brought, and strengthen algorithm to initially
The sensitivity of key;Initialize empty sequence B;
S22: hyperchaotic system iteration once, obtains one group of new state value { x, y, z, w}, and calculate m=mod (abs (x
+ y+z+w), 3), if m=0, by { x, y, z, w} add sequence B;If m=1, by { x, z, y, w} add sequence B;If m=2, will
{ w, x, z, y} add sequence B;
S23: repeat M × (3N/4+1) secondary S22, generates the original Hyperchaotic Sequence matrix that size is M × (3N+4)
B;
S24: according to transform
K (i, j)=mod (floor ((abs (B (i, j))-floor (abs (B (i, j)))) × 1014),256)
1≤i≤M,1≤j≤(3N+4)
Chaos sequence B is transformed, obtains cipher key matrix K of pixel diffusionM×(3N+4)。
Alternatively, included by the key of hyperchaotic system acquisition pixel permutation:
By hyperchaotic system iteration N02Secondary, eliminate the ill-effect that transient process is brought, and strengthen algorithm to initial key
Sensitivity;Initialize empty sequence R, a V;
Utilize hyperchaotic system iteration to produce data, then calculate
R (i)=mod (floor ((abs (x)-floor (abs (x))) × 1014), M)+1 (1≤i≤M), R (i) ∈ [1,
M], iteration hyperchaotic system, until producing M diverse integer R value;
Calculate V (i)=mod (floor ((abs (x)-floor (abs (x))) × 1014), 3N)+1 (1≤i≤3N), V (i)
∈ [1,3N], iteration hyperchaotic system, until producing 3N diverse integer V-value;
Obtain key R, V of pixel permutation.
Alternatively, the described cipher key matrix spread by described pixel carries out pixel DIFFUSION TREATMENT to the image after layout,
Obtain the uniform diffusion image of pixel distribution to include:
S31: being diffused image according to the following equation processing, in formula as (i=1, j=1), C (i, j-1) is set to
Integer C0 between [0,255], can be considered a part for system key;As (1 < i≤M, j=1), make C (i, j-1)=C
(i-1,3N):
S32: repeat L and take turns step S31, until the pixel distribution of output image is uniform.
Alternatively, the described key according to described pixel permutation, described diffusion image is carried out matrixing, with Transformation Graphs
As the arrangement position of pixel, after obtaining encryption, image includes:
Key R, V according to described pixel permutation, to diffusion image procession scramble P (i, j)=C (R (i), V (j)),
(1≤i≤M, 1≤j≤3N), image P after being encryptedM×3N。
Present invention also offers a kind of image decryption method based on hyperchaotic system, including:
Obtain cipher key matrix and the key of pixel permutation of the pixel diffusion produced in ciphering process;
By the key of described pixel permutation, image after encryption is carried out the anti-disorder processing of pixel;
The cipher key matrix spread by described pixel carries out back-diffusion operation to the image after the anti-disorder processing of pixel;
Image after back-diffusion operation processes is carried out the anti-pretreatment behaviour corresponding with pretreatment operation in ciphering process
Make, obtain coloured image after deciphering.
Present invention also offers a kind of image encrypting apparatus based on hyperchaotic system, including:
Pretreatment module, for each color component R, G, B of original color image are carried out randomness layout process, obtains
Image after layout;
First Key Acquisition Module, for obtaining cipher key matrix and the pixel permutation of pixel diffusion by hyperchaotic system
Key;
Dispersion operation module, carries out pixel diffusion for the cipher key matrix spread by described pixel to the image after layout
Process, obtain the uniform diffusion image of pixel distribution;
Shuffle operation module, for the key according to described pixel permutation, carries out matrixing to described diffusion image, with
The arrangement position of changing image pixel, obtains image after encryption.
Present invention also offers a kind of image decrypting device based on hyperchaotic system, including:
Second Key Acquisition Module, puts for the cipher key matrix and pixel obtaining the pixel diffusion produced in ciphering process
Random key;
Invert random operation module, for by the key of described pixel permutation, image after encryption being carried out pixel and inverts unrest
Process;
Back-diffusion operation module, for the cipher key matrix that spread by described pixel to the figure after the anti-disorder processing of pixel
As carrying out back-diffusion operation;
Anti-pretreatment module, for carrying out and pretreatment operation in ciphering process the image after back-diffusion operation processes
Corresponding anti-pretreatment operation, obtains coloured image after deciphering.
Image encryption method based on hyperchaotic system provided by the present invention and device, by original color image
Each color component R, G, B carry out randomness layout process, obtain the image after layout;Obtain pixel by hyperchaotic system to spread
Cipher key matrix and the key of pixel permutation;The cipher key matrix spread by pixel carries out pixel diffusion to the image after layout
Process, obtain the uniform diffusion image of pixel distribution;According to the key of pixel permutation, diffusion image is carried out matrixing, with
The arrangement position of changing image pixel, obtains image after encryption.Additionally, present invention also offers a kind of based on hyperchaotic system
Image decryption method and device.Encryption and decryption method and device provided by the present invention so that ciphertext, key, plaintext are closely connected,
There is good diffusion effect, be greatly improved confidentiality and the safety of image encryption.
Accompanying drawing explanation
For the clearer explanation embodiment of the present invention or the technical scheme of prior art, below will be to embodiment or existing
In technology description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to root
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the stream of a kind of detailed description of the invention of image encryption method based on hyperchaotic system provided by the present invention
Cheng Tu;
Fig. 2 be image encryption method based on hyperchaotic system provided by the present invention implement process schematic;
Fig. 3 is the stream of a kind of detailed description of the invention of image decryption method based on hyperchaotic system provided by the present invention
Cheng Tu;
The structured flowchart of the image encrypting apparatus based on hyperchaotic system that Fig. 4 provides for the embodiment of the present invention;
The structured flowchart of the image decrypting device based on hyperchaotic system that Fig. 5 provides for the embodiment of the present invention;
Fig. 6 (a)-(d) is that algorithm for encryption deciphers design sketch, and wherein, Fig. 6 (a) is original image, and Fig. 6 (b) is scatter diagram
Picture, Fig. 6 (c) is that diffusion adds scramble image i.e. ciphertext graph picture, and Fig. 6 (d) is decrypted image;
Fig. 7 (a) (b) is respectively the rectangular histogram that original plaintext image is corresponding with ciphertext graph picture.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawings and detailed description of the invention
The present invention is described in further detail.Obviously, described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, broadly falls into the scope of protection of the invention.
A kind of flow chart of the detailed description of the invention of image encryption method based on hyperchaotic system provided by the present invention
As it is shown in figure 1, the method includes:
Step S101: each color component R, G, B of original color image is carried out randomness layout process, after obtaining layout
Image;
Step S102: obtained cipher key matrix and the key of pixel permutation of pixel diffusion by hyperchaotic system;
Step S103: the cipher key matrix spread by described pixel carries out pixel DIFFUSION TREATMENT to the image after layout,
To the uniform diffusion image of pixel distribution;
Step S104: according to the key of described pixel permutation, described diffusion image is carried out matrixing, with changing image
The arrangement position of pixel, obtains image after encryption.
Image encryption method based on hyperchaotic system provided by the present invention, by each color to original color image
Components R, G, B carry out randomness layout process, obtain the image after layout;The key of pixel diffusion is obtained by hyperchaotic system
Matrix and the key of pixel permutation;The cipher key matrix spread by pixel carries out pixel DIFFUSION TREATMENT to the image after layout,
Obtain the uniform diffusion image of pixel distribution;According to the key of pixel permutation, diffusion image is carried out matrixing, with Transformation Graphs
As the arrangement position of pixel, obtain image after encryption.Method provided by the present invention makes ciphertext, key, is closely connected in plain text,
There is good diffusion effect, be greatly improved confidentiality and the safety of image encryption.
Refer to the process that the implements signal of Fig. 2 image encryption method based on hyperchaotic system provided by the present invention
Figure, is further elaborated on the implementation process of the present invention below.
It is pointed out that this algorithm is image encryption method based on hyperchaotic system, hyperchaotic system dimension is the most,
Positive Lyapunov exponents is the most, dynamics is the most complicated, and its cipher round results is the best.In order to this algorithm is described, concrete is imitative
True test can use following four-dimensional hyperchaotic system:
Wherein a, b, c, d, g, h and k are the control parameter of system, at a=8, b=40, c=2, d=14, g=5, h=
Under conditions of 0.2 and k=0.05, system shows as hyperchaos motion, and Hyperchaotic Attractors has four scrollworks, shows ratio typically
Hyperchaotic system has more complicated dynamics, considers from safety perspective, owing to its trajectory of phase space is more complicated,
Therefore key sequence is produced with it safer.
On the basis of above-described embodiment, in image encryption method based on hyperchaotic system provided by the present invention, right
Each color component R, G, B of original color image carry out randomness layout process, and the process obtaining the image after layout can have
Body includes:
By original color image that size is M × N × 3 R, G, B tri-pigment leave the two of tri-M × N of R, G, B respectively in
In dimension matrix, according to following calculation procedure, to R, G, B component again layout, obtain the imM of the image after layout × 3N:
S11: according to the value of following formula calculating X, Y:
X=mod (X, M)+1;
Y=mod (Y, 3N)+1;
Wherein, a, b are the control parameter of system, and mod function is MOD function;
S12: judge obtain X, Y value, if 0 < Y < (N+1), then R (X, Y) be assigned to im (i, j);If N < Y is < (2N
+ 1), then G (X, Y-N) be assigned to im (i, j);If 2N < Y < (3N+1), then B (X, Y-2N) be assigned to im (i, j);
Repeat step S11, S12, until R, G, B all elements layout completes.
In MATLAB, mod function is complementation, and the layout of digital color image processes and key will be made to have bigger sky
Between, and upset the dependency between R, G, B of digital color image, this can be greatly improved the safety of image encryption system
Property, increase the difficulty cracked.
Further, can be specifically included by the cipher key matrix of hyperchaotic system acquisition pixel diffusion:
Pre-iteration N of S21: hyperchaotic system01Secondary, eliminate the ill-effect that transient process is brought, and strengthen algorithm to initially
The sensitivity of key;Initialize empty sequence B;
S22: hyperchaotic system iteration once, obtains one group of new state value { x, y, z, w}, and calculate m=mod (abs (x
+ y+z+w), 3), if m=0, by { x, y, z, w} add sequence B;If m=1, by { x, z, y, w} add sequence B;If m=2, will
{ w, x, z, y} add sequence B;
S23: repeat M × (3N/4+1) secondary S22, generates the original Hyperchaotic Sequence matrix that size is M × (3N+4)
B;
S24: according to transform
K (i, j)=mod (floor ((abs (B (i, j))-floor (abs (B (i, j)))) × 1014),256)
1≤i≤M,1≤j≤(3N+4)
Chaos sequence B is transformed, obtains cipher key matrix K of pixel diffusionM×(3N+4)。
The key being obtained pixel permutation by hyperchaotic system can be specifically included:
By hyperchaotic system iteration N02Secondary, eliminate the ill-effect that transient process is brought, and strengthen algorithm to initial key
Sensitivity;Initialize empty sequence R, a V;
Utilize hyperchaotic system iteration to produce data, then calculate
R (i)=mod (floor ((abs (x)-floor (abs (x))) × 1014), M)+1 (1≤i≤M), R (i) ∈ [1,
M], iteration hyperchaotic system, until producing M diverse integer R value;
Calculate V (i)=mod (floor ((abs (x)-floor (abs (x))) × 1014), 3N)+1 (1≤i≤3N), V (i)
∈ [1,3N], iteration hyperchaotic system, until producing 3N diverse integer V-value;
Obtain key R, V of pixel permutation.
On the basis of above-described embodiment, cipher key matrix K that step S103 is spread by described pixelM×(3N+4)To layout
After image imM×3NCarry out pixel DIFFUSION TREATMENT, obtain pixel distribution uniform diffusion image CM×3NProcess can specifically wrap
Include:
S31: being diffused image according to the following equation processing, in formula as (i=1, j=1), C (i, j-1) is set to
Integer C0 between [0,255], can be considered a part for system key;As (1 < i≤M, j=1), make C (i, j-1)=C
(i-1,3N):
S32: repeat L and take turns step S31, until the pixel distribution of output image is uniform.
As a kind of detailed description of the invention, step 104 is according to key R, V of described pixel permutation, to described diffusion image
CM×3NCarry out matrixing, with the arrangement position of changing image pixel, obtain image P after encryptionM×3NProcess may include that
Key R, V according to described pixel permutation, to diffusion image procession scramble P (i, j)=C (R (i), V (j)),
(1≤i≤M, 1≤j≤3N), image P after being encryptedM×3N。
Decrypting process is the inverse process of ciphering process.Image solution based on hyperchaotic system as provided by the present invention in Fig. 3
Shown in the flow chart of a kind of detailed description of the invention of decryption method, the method includes:
Step S201: obtain cipher key matrix and the key of pixel permutation of the pixel diffusion produced in ciphering process;
Step S202: by the key of described pixel permutation, image after encryption is carried out the anti-disorder processing of pixel;
Step S203: the cipher key matrix spread by described pixel is expanded the image after the anti-disorder processing of pixel is counter
Dissipate operation;
Step S204: the image after back-diffusion operation processes is carried out corresponding with pretreatment operation in ciphering process anti-
Pretreatment operation, obtains coloured image after deciphering.
Specifically, corresponding with the embodiment of above-mentioned ciphering process, the process of deciphering is: first with identical parameter,
Initial value produces identical scrambling sequence R, V, ciphertext graph picture is inverted unrest, obtains Matrix C;Then hyperchaotic system is utilized
Obtain identical cipher key matrix KM×(3N+4), obtain the image im after R, G, B permutation and combination according to following formula subcycle L wheelM×3N,
In formula as (i=1, j=1), im (i, j-1)=C0;As (i > 1, j=1), im (i, j-1)=im (i-1,3N):
Finally need image imM×3NDo deformat to process, specifically comprise the following steps that
(1) X, Y are calculated according to the following formula:
X=mod (X, M)+1;
Y=mod (Y, 3N)+1;
(2) X, the Y value obtained is judged, if 0 < Y < (N+1), then im, (i j) is assigned to R (X, Y);If N < Y is < (2N+
1), then im, (i j) is assigned to G (X, Y-N);If 2N < Y < (3N+1), then im, (i j) is assigned to B (X, Y-2N);
(3) step (1) (2) is repeated, until R, G, B all elements deformat completes.
Tri-two-dimensional matrixs of R, G, B that deformat processes are combined into three-dimensional matrice output, it is simply that original color image.
Below to the image encrypting apparatus based on hyperchaotic system of embodiment of the present invention offer and based on hyperchaos system
The image decrypting device of system is introduced, and encryption described below and deciphering device can with above-described encryption and decryption method
Mutually to should refer to.
The structured flowchart of the image encrypting apparatus based on hyperchaotic system that Fig. 4 provides for the embodiment of the present invention, with reference to Fig. 4
Image encrypting apparatus based on hyperchaotic system may include that
Pretreatment module 100, for each color component R, G, B of original color image are carried out randomness layout process,
Obtain the image after layout;
First Key Acquisition Module 200, for obtaining cipher key matrix and the pixel of pixel diffusion by hyperchaotic system
The key of scramble;
Dispersion operation module 300, carries out pixel for the cipher key matrix spread by described pixel to the image after layout
DIFFUSION TREATMENT, obtains the uniform diffusion image of pixel distribution;
Shuffle operation module 400, for the key according to described pixel permutation, carries out matrix change to described diffusion image
Change, with the arrangement position of changing image pixel, obtain image after encryption.
The structured flowchart of the image decrypting device based on hyperchaotic system that Fig. 5 provides for the embodiment of the present invention, with reference to Fig. 5
Image decrypting device based on hyperchaotic system may include that
Second Key Acquisition Module 500, for obtaining cipher key matrix and the picture of the pixel diffusion produced in ciphering process
The key of element scramble;
Invert random operation module 600, for by the key of described pixel permutation, image after encryption being carried out pixel and inverts
Disorderly process;
Back-diffusion operation module 700, for the cipher key matrix that spread by described pixel to after the anti-disorder processing of pixel
Image carry out back-diffusion operation;
Anti-pretreatment module 800, for carrying out and pretreatment in ciphering process the image after back-diffusion operation processes
The anti-pretreatment operation that operation is corresponding, obtains coloured image after deciphering.
The application is emulated under MATLAB12.0, and pretreatment parameter selects a=min (M, N)-126, b=min
(M,N)-389;Hyperchaotic system parameter takes a=8, b=40, c=2, d=14, g=5, h=0.2 and k=0.05, takes system shape
State initial value is (0.12,0.23,0.34,0.45);The time step of differential equation iterative takes 0.001, N0=1000, C0=
75。
Fig. 6 (a)-(d) gives algorithm for encryption deciphering design sketch, and wherein, Fig. 6 (a) is original image, and Fig. 6 (b) is diffusion
Image, Fig. 6 (c) is that diffusion adds scramble image i.e. ciphertext graph picture, and Fig. 6 (d) is decrypted image.
Fig. 7 (a)-(b) sets forth the rectangular histogram that original plaintext image is corresponding with ciphertext graph picture, from Fig. 7 (a),
The pixel distribution of original plaintext coloured picture is the most uneven, but Fig. 7 (b) shows, after encryption, image pixel value is the most in all
Even and smooth distribution, shows that the pixel value of ciphertext graph picture takes the probability of various probable value and tends to impartial.Therefore this algorithm can
It is reasonably resistant to the attack of statistical analysis.
In sum, method and device provided by the present invention has an advantage that
The brand-new method of combination of coloured image RGB and complicated hyperchaos AES are combined, expands key empty
Between;
The method of scramble after employing first diffusion, the encryption formula of diffusion is complicated, ciphertext and plaintext, cipher key relation complexity, puts
Random key sequence is the most relevant and relevant to diffusion process with plaintext, assailant cannot by special bright, ciphertext is close to cracking scramble
Key, and then cannot crack out diffusion process key, is highly resistant to select bright, ciphertext to attack;
Compared to IHIE algorithm, the inventive method has many wheels to the dispersion operation of whole pixels so that final ciphertext is to bright
The sensitivity of literary composition is the strongest.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment, same or similar part sees mutually.For filling disclosed in embodiment
For putting, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part
Illustrate.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes
And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, the most generally describes composition and the step of each example according to function.These
Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty
Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not
Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held
The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Above to image encryption method based on hyperchaotic system provided by the present invention and device, decryption method and device
It is described in detail.Principle and the embodiment of the present invention are set forth by specific case used herein, above reality
The explanation executing example is only intended to help to understand method and the core concept thereof of the present invention.It should be pointed out that, for the art
For those of ordinary skill, under the premise without departing from the principles of the invention, it is also possible to the present invention is carried out some improvement and modification,
These improve and modify in the protection domain also falling into the claims in the present invention.
Claims (9)
1. an image encryption method based on hyperchaotic system, it is characterised in that including:
Each color component R, G, B of original color image is carried out randomness layout process, obtains the image after layout;
Cipher key matrix and the key of pixel permutation of pixel diffusion is obtained by hyperchaotic system;
The cipher key matrix spread by described pixel carries out pixel DIFFUSION TREATMENT to the image after layout, obtains pixel distribution uniform
Diffusion image;
According to the key of described pixel permutation, described diffusion image is carried out matrixing, with the arrangement position of changing image pixel
Put, obtain image after encryption.
2. image encryption method based on hyperchaotic system as claimed in claim 1, it is characterised in that described to original color
Each color component R, G, B of image carry out randomness layout process, obtain the image after layout and include:
By original color image that size is M × N × 3 R, G, B tri-pigment leave the Two-Dimensional Moment of tri-M × N of R, G, B respectively in
In Zhen, according to following calculation procedure, to R, G, B component again layout, obtain the image im after layoutM×3N:
S11: according to the value of following formula calculating X, Y:
X=mod (X, M)+1;
Y=mod (Y, 3N)+1;
Wherein, a, b are the control parameter of system, and mod function is MOD function;
S12: judge obtain X, Y value, if 0 < Y < (N+1), then R (X, Y) be assigned to im (i, j);If N < Y < (2N+1),
Then G (X, Y-N) be assigned to im (i, j);If 2N < Y < (3N+1), then B (X, Y-2N) be assigned to im (i, j);
Repeat step S11, S12, until R, G, B all elements layout completes.
3. image encryption method based on hyperchaotic system as claimed in claim 2, it is characterised in that pass through hyperchaotic system
The cipher key matrix obtaining pixel diffusion includes:
Pre-iteration N of S21: hyperchaotic system01Secondary, eliminate the ill-effect that transient process is brought, and strengthen algorithm to initial key
Sensitivity;Initialize empty sequence B;
S22: hyperchaotic system iteration once, obtains one group of new state value { x, y, z, w}, and calculate m=mod (abs (x+y+z
+ w), 3), if m=0, by { x, y, z, w} add sequence B;If m=1, by { x, z, y, w} add sequence B;If m=2, will w, x,
Z, y} add sequence B;
S23: repeat M × (3N/4+1) secondary S22, generates the original Hyperchaotic Sequence matrix B that size is M × (3N+4);
S24: according to transform
K (i, j)=mod (floor ((abs (B (i, j))-floor (abs (B (i, j)))) × 1014),256)
1≤i≤M,1≤j≤(3N+4)
Chaos sequence B is transformed, obtains cipher key matrix K of pixel diffusionM×(3N+4)。
4. image encryption method based on hyperchaotic system as claimed in claim 3, it is characterised in that pass through hyperchaotic system
The key obtaining pixel permutation includes:
By hyperchaotic system iteration N02Secondary, eliminate the ill-effect brought of transient process, and strengthen quick to initial key of algorithm
Perception;Initialize empty sequence R, a V;
Utilize hyperchaotic system iteration to produce data, then calculate
R (i)=mod (floor ((abs (x)-floor (abs (x))) × 1014), M)+1 (1≤i≤M), R (i) ∈ [1, M],
Iteration hyperchaotic system, until producing M diverse integer R value;
Calculate V (i)=mod (floor ((abs (x)-floor (abs (x))) × 1014), 3N)+1 (1≤i≤3N), V (i) ∈
[1,3N], iteration hyperchaotic system, until producing 3N diverse integer V-value;
Obtain key R, V of pixel permutation.
5. image encryption method based on hyperchaotic system as claimed in claim 4, it is characterised in that described by described picture
The cipher key matrix of element diffusion carries out pixel DIFFUSION TREATMENT to the image after layout, obtains pixel distribution uniform diffusion image bag
Include:
S31: according to the following equation image is diffused process, in formula as (i=1, j=1), C (i, j-1) be set to [0,
255] the integer C0 between, can be considered a part for system key;As (1 < i≤M, j=1), make C (i, j-1)=C (i-1,
3N):
S32: repeat L and take turns step S31, until the pixel distribution of output image is uniform.
6. image encryption method based on hyperchaotic system as claimed in claim 5, it is characterised in that described according to described picture
The key of element scramble, carries out matrixing to described diffusion image, with the arrangement position of changing image pixel, schemes after obtaining encryption
As including:
Key R, V according to described pixel permutation, to diffusion image procession scramble P (i, j)=C (R (i), V (j)), (1≤
I≤M, 1≤j≤3N), image P after being encryptedM×3N。
7. an image decryption method based on hyperchaotic system, it is characterised in that including:
Obtain cipher key matrix and the key of pixel permutation of the pixel diffusion produced in ciphering process;
By the key of described pixel permutation, image after encryption is carried out the anti-disorder processing of pixel;
The cipher key matrix spread by described pixel carries out back-diffusion operation to the image after the anti-disorder processing of pixel;
Image after back-diffusion operation processes is carried out the anti-pretreatment operation corresponding with pretreatment operation in ciphering process, obtains
Take coloured image after deciphering.
8. an image encrypting apparatus based on hyperchaotic system, it is characterised in that including:
Pretreatment module, for each color component R, G, B of original color image are carried out randomness layout process, obtains layout
After image;
First Key Acquisition Module, for obtaining the cipher key matrix of pixel diffusion and the close of pixel permutation by hyperchaotic system
Key;
Dispersion operation module, is carried out at pixel diffusion the image after layout for the cipher key matrix spread by described pixel
Reason, obtains the uniform diffusion image of pixel distribution;
Shuffle operation module, for the key according to described pixel permutation, carries out matrixing to described diffusion image, with conversion
The arrangement position of image pixel, obtains image after encryption.
9. an image decrypting device based on hyperchaotic system, it is characterised in that including:
Second Key Acquisition Module, for obtaining cipher key matrix and the pixel permutation of the pixel diffusion produced in ciphering process
Key;
Invert random operation module, for by the key of described pixel permutation, image after encryption being carried out the anti-disorder processing of pixel;
Back-diffusion operation module, is entered the image after the anti-disorder processing of pixel for the cipher key matrix spread by described pixel
Row back-diffusion operates;
Anti-pretreatment module, for carrying out corresponding with pretreatment operation in ciphering process to the image after back-diffusion operation processes
Anti-pretreatment operation, obtain deciphering after coloured image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610640544.3A CN106296561B (en) | 2016-08-05 | 2016-08-05 | Image encryption method and device, decryption method and device based on hyperchaotic system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610640544.3A CN106296561B (en) | 2016-08-05 | 2016-08-05 | Image encryption method and device, decryption method and device based on hyperchaotic system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106296561A true CN106296561A (en) | 2017-01-04 |
CN106296561B CN106296561B (en) | 2019-11-29 |
Family
ID=57666176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610640544.3A Expired - Fee Related CN106296561B (en) | 2016-08-05 | 2016-08-05 | Image encryption method and device, decryption method and device based on hyperchaotic system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106296561B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106997606A (en) * | 2017-02-14 | 2017-08-01 | 陕西师范大学 | A kind of image encryption method based on hyperchaotic system Projective Synchronization |
CN107330338A (en) * | 2017-08-22 | 2017-11-07 | 衡阳师范学院 | The color image encryption and decryption method and system spread based on double chaotic crossovers |
CN107633175A (en) * | 2017-09-14 | 2018-01-26 | 交通运输部水运科学研究所 | A kind of fast colourful image encryption method based on chaos |
CN107798708A (en) * | 2017-11-16 | 2018-03-13 | 深圳大学 | A kind of out of order codings of DNA and the image encryption and decryption method of chaotic maps |
CN109951278A (en) * | 2019-03-13 | 2019-06-28 | 江西理工大学 | A kind of asymmetrical digital image encryption method based on generalized chaotic synchronization system |
CN111047495A (en) * | 2019-12-02 | 2020-04-21 | 深圳信息职业技术学院 | Color image encryption method and system based on hyperchaos and double random phase encoding |
CN113595715A (en) * | 2021-07-23 | 2021-11-02 | 华东交通大学 | Logistic-based double-pixel rectangular mapping color image encryption and decryption method |
CN113742739A (en) * | 2020-05-28 | 2021-12-03 | 中国电信股份有限公司 | Image encryption method, device and storage medium |
CN115834788A (en) * | 2022-11-16 | 2023-03-21 | 安阳师范学院 | Color image encryption method for visualized DNA fulcrum-mediated strand displacement reaction |
CN116055046A (en) * | 2023-03-31 | 2023-05-02 | 山东政信大数据科技有限责任公司 | Online safe transaction system for agricultural products |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6301360B1 (en) * | 1995-06-01 | 2001-10-09 | Siemens Aktiengesellschaft | Method of encoding information using a position-based encoding scheme |
US7082217B2 (en) * | 2002-10-28 | 2006-07-25 | Web Technology Corp. | Method and apparatus for image compression in block units |
CN103489151A (en) * | 2013-09-11 | 2014-01-01 | 河南大学 | Color image encryption method based on chaos sequence and hyper-chaos system |
CN103955884A (en) * | 2014-04-22 | 2014-07-30 | 西安理工大学 | Double-image encryption method based on chaotic and discrete fraction random transform |
CN104008520A (en) * | 2014-05-09 | 2014-08-27 | 河南大学 | Color image encryption method based on SHA-384 function, spatiotemporal chaotic system, quantum chaotic system and neural network |
-
2016
- 2016-08-05 CN CN201610640544.3A patent/CN106296561B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6301360B1 (en) * | 1995-06-01 | 2001-10-09 | Siemens Aktiengesellschaft | Method of encoding information using a position-based encoding scheme |
US7082217B2 (en) * | 2002-10-28 | 2006-07-25 | Web Technology Corp. | Method and apparatus for image compression in block units |
CN103489151A (en) * | 2013-09-11 | 2014-01-01 | 河南大学 | Color image encryption method based on chaos sequence and hyper-chaos system |
CN103955884A (en) * | 2014-04-22 | 2014-07-30 | 西安理工大学 | Double-image encryption method based on chaotic and discrete fraction random transform |
CN104008520A (en) * | 2014-05-09 | 2014-08-27 | 河南大学 | Color image encryption method based on SHA-384 function, spatiotemporal chaotic system, quantum chaotic system and neural network |
Non-Patent Citations (2)
Title |
---|
卢辉斌 等: "基于新的超混沌***的图像加密方案", 《计算机科学》 * |
李旭: "基于猫映射和Logistic映射的混沌图像加密算法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106997606B (en) * | 2017-02-14 | 2018-03-30 | 陕西师范大学 | A kind of image encryption method based on hyperchaotic system Projective Synchronization |
CN106997606A (en) * | 2017-02-14 | 2017-08-01 | 陕西师范大学 | A kind of image encryption method based on hyperchaotic system Projective Synchronization |
CN107330338A (en) * | 2017-08-22 | 2017-11-07 | 衡阳师范学院 | The color image encryption and decryption method and system spread based on double chaotic crossovers |
CN107330338B (en) * | 2017-08-22 | 2023-08-25 | 衡阳师范学院 | Color image encryption and decryption method and system based on double-chaos cross diffusion |
CN107633175B (en) * | 2017-09-14 | 2020-11-03 | 交通运输部水运科学研究所 | Chaos-based rapid color image encryption method |
CN107633175A (en) * | 2017-09-14 | 2018-01-26 | 交通运输部水运科学研究所 | A kind of fast colourful image encryption method based on chaos |
CN107798708A (en) * | 2017-11-16 | 2018-03-13 | 深圳大学 | A kind of out of order codings of DNA and the image encryption and decryption method of chaotic maps |
CN109951278B (en) * | 2019-03-13 | 2021-07-16 | 江西理工大学 | Asymmetric digital image encryption method based on generalized chaotic synchronization system |
CN109951278A (en) * | 2019-03-13 | 2019-06-28 | 江西理工大学 | A kind of asymmetrical digital image encryption method based on generalized chaotic synchronization system |
CN111047495A (en) * | 2019-12-02 | 2020-04-21 | 深圳信息职业技术学院 | Color image encryption method and system based on hyperchaos and double random phase encoding |
CN111047495B (en) * | 2019-12-02 | 2023-05-26 | 深圳信息职业技术学院 | Color image encryption method and system based on hyperchaos and double random phase codes |
CN113742739A (en) * | 2020-05-28 | 2021-12-03 | 中国电信股份有限公司 | Image encryption method, device and storage medium |
CN113595715A (en) * | 2021-07-23 | 2021-11-02 | 华东交通大学 | Logistic-based double-pixel rectangular mapping color image encryption and decryption method |
CN115834788A (en) * | 2022-11-16 | 2023-03-21 | 安阳师范学院 | Color image encryption method for visualized DNA fulcrum-mediated strand displacement reaction |
CN116055046A (en) * | 2023-03-31 | 2023-05-02 | 山东政信大数据科技有限责任公司 | Online safe transaction system for agricultural products |
CN116055046B (en) * | 2023-03-31 | 2023-06-09 | 山东政信大数据科技有限责任公司 | Online safe transaction system for agricultural products |
Also Published As
Publication number | Publication date |
---|---|
CN106296561B (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106296561B (en) | Image encryption method and device, decryption method and device based on hyperchaotic system | |
Kumar et al. | Development of modified AES algorithm for data security | |
CN101739695B (en) | Three-dimensional Arnold mapping-based image grouping encryption method | |
Wadi et al. | Rapid encryption method based on AES algorithm for grey scale HD image encryption | |
CN105513002B (en) | A kind of image encryption method | |
Belazi et al. | Algebraic analysis of a RGB image encryption algorithm based on DNA encoding and chaotic map | |
Kawle et al. | Modified advanced encryption standard | |
Yasser et al. | A robust chaos-based technique for medical image encryption | |
Hanchinamani et al. | An efficient image encryption scheme based on a Peter De Jong chaotic map and a RC4 stream cipher | |
Abd Ali et al. | Novel encryption algorithm for securing sensitive information based on feistel cipher | |
Muhaya | Chaotic and AES cryptosystem for satellite imagery | |
CN108833733B (en) | A kind of decryption method of the resume image based on chaos S box | |
CN103440613A (en) | Color-image encryption method for hyperchaotic Rossler system | |
Ramírez-Torres et al. | Image encryption with an improved cryptosystem based on a matrix approach | |
CN109361830A (en) | A kind of image encryption method based on plaintext | |
CN105978680A (en) | Implementing padding in a white-box implementation | |
Aparna et al. | Implementation of AES algorithm on text and image using MATLAB | |
CN109586895A (en) | A kind of new color image encrypting method | |
Mohammed et al. | Secure image encryption scheme using chaotic maps and rc4 algorithm | |
CN108133447A (en) | A kind of chaos encrypting method of coloured image | |
CN106921486A (en) | The method and apparatus of data encryption | |
Brindha | Periodicity analysis of Arnold Cat Map and its application to image encryption | |
CN110474967B (en) | Block chain experiment system and method | |
Gunasekaran et al. | Encrypting and decrypting image using computer visualization techniques | |
Thomas et al. | Image Encryption Algorithm with Block Scrambling Based on Logistic Map |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191129 Termination date: 20210805 |