CN116318615B - Image encryption method and decryption method based on combination of hyperchaotic system and DNA (deoxyribonucleic acid) coding - Google Patents
Image encryption method and decryption method based on combination of hyperchaotic system and DNA (deoxyribonucleic acid) coding Download PDFInfo
- Publication number
- CN116318615B CN116318615B CN202310287279.5A CN202310287279A CN116318615B CN 116318615 B CN116318615 B CN 116318615B CN 202310287279 A CN202310287279 A CN 202310287279A CN 116318615 B CN116318615 B CN 116318615B
- Authority
- CN
- China
- Prior art keywords
- image
- fusion
- representing
- encryption
- chaotic
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 102000053602 DNA Human genes 0.000 title abstract description 46
- 108020004414 DNA Proteins 0.000 title abstract description 46
- 238000009792 diffusion process Methods 0.000 claims abstract description 22
- 230000004927 fusion Effects 0.000 claims description 41
- 230000000739 chaotic effect Effects 0.000 claims description 23
- 125000004122 cyclic group Chemical group 0.000 claims description 18
- 239000011159 matrix material Substances 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 7
- 238000010587 phase diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000035945 sensitivity Effects 0.000 description 5
- 235000013399 edible fruits Nutrition 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000013478 data encryption standard Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/001—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using chaotic signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
- H04L9/0827—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving distinctive intermediate devices or communication paths
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/32101—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N1/32144—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
- H04N1/32149—Methods relating to embedding, encoding, decoding, detection or retrieval operations
- H04N1/32267—Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
- H04N1/32272—Encryption or ciphering
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
Abstract
The invention relates to an image encryption method and a decryption method based on the combination of a hyperchaotic system and DNA (deoxyribonucleic acid) codes, wherein the encryption method comprises the following steps: obtaining a plaintext image, combining a hash function, determining an initial value of the hyper-chaotic system as a key, substituting the initial value into a model of the hyper-chaotic system to generate a cipher flow, performing circular shifting position random diffusion encryption on the image by using the cipher flow, and performing re-scrambling and diffusion encryption on the image by combining with DNA coding operation to obtain a final ciphertext image. The invention not only can solve the cycle problem of the hyper-chaotic system, but also enhances the relevance of the plaintext and the secret key, so that the encrypted ciphertext image has good attack resistance and safety.
Description
Technical Field
The invention belongs to the technical field of image encryption, and particularly relates to an image encryption method and a decryption method based on the combination of a hyper-chaotic system and DNA coding.
Background
In recent years, with the rapid development of internet communication transmission technology, image and video applications and transmission are becoming more and more widely used due to the intuitiveness, diversity and richness of information such as multimedia images, but since digital images contain a large amount of effective information such as military images, medical images and other non-public images, security at the time of information transmission becomes particularly important, and thus image information security is one of the important research directions in recent years for many students, in the related art, encryption algorithms such as DES (Data Encryption Standard ), AES (Advanced Encryption Standard, advanced encryption standard) and the like are applied to image encryption, however, these methods are not only time-consuming but also unsatisfactory.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an image encryption method and a decryption method based on the combination of a hyper-chaotic system and DNA coding. The technical problems to be solved by the invention are realized by the following technical scheme:
the invention provides an image encryption method based on the combination of a hyperchaotic system and DNA coding, which comprises the following steps:
acquiring a gray level image of an image to be encrypted, and taking the gray level image as a plaintext image;
obtaining an initial value of a system state variable of the hyper-chaotic system according to the hash function;
generating four chaotic sequences according to the initial value of the system state variable and the model of the hyperchaotic system, and obtaining a fusion cipher stream according to the four chaotic sequences;
dividing the plaintext image into a one-dimensional image matrix, and carrying out image scrambling, diffusion and encryption on the one-dimensional image matrix to obtain a first intermediate ciphertext image;
performing cyclic shift position random diffusion encryption on the first intermediate ciphertext image according to the fusion cipher flow to obtain a second intermediate ciphertext image;
performing DNA coding encryption on the second intermediate ciphertext image according to the fusion password stream to obtain a final ciphertext image;
the model of the hyper-chaotic system is as follows:
;
in the method, in the process of the invention,four preset control parameters of the hyperchaotic system are respectively represented by +.>Four system state variables of the hyperchaotic system are respectively represented, < ->Respectively representing four chaotic sequences.
In one embodiment of the present invention, obtaining an initial value of a system state variable in a hyperchaotic system according to a hash function includes:
generating 512 hash values according to the plaintext image and a hash function-512;
dividing 512 hash values into 64 sub-blocks, wherein each sub-block contains 8 hash values, and converting each sub-block into decimal numbers;
and calculating to obtain an initial value of a system state variable of the hyper-chaotic system according to the following formula:
;
;
in the method, in the process of the invention,respectively 64 sub-blocks->Indicate->Initial values of the system state variables.
In one embodiment of the present invention, generating four chaotic sequences according to an initial value of the system state variable and a model of the hyperchaotic system, and obtaining a fusion cipher stream according to the four chaotic sequences includes:
substituting the initial value of the system state variable into the model of the hyper-chaotic system, and generating four chaotic sequences in a cyclic iteration mode according to the preset sequence lengthThe length of each chaotic sequence is +.>,/>Line number representing plain text image, ">Representing the number of columns of the plaintext image;
and carrying out fusion operation on the four chaotic sequences according to the following formula to obtain a fusion cipher stream:
;
wherein,,representing a fused cryptographic stream->Representing the +.>Element(s)>Representing modular arithmetic, ++>Representing absolute value operation,/->Representing a rounding operation.
In one embodiment of the present invention, dividing the plaintext image into a one-dimensional image matrix, and performing image scrambling diffusion encryption on the one-dimensional image matrix to obtain a first intermediate ciphertext image, including:
performing sorting operation on the fusion cipher stream, performing scrambling diffusion encryption on the one-dimensional image matrix according to the fusion cipher stream after sorting operation to obtain a first intermediate ciphertext image,
;
;
in the method, in the process of the invention,representing a plain text image->First intermediate ciphertext image,>indicate->The number of pixels in a pixel is one,representing a sort operation.
In one embodiment of the present invention, performing cyclic shift position random diffusion encryption on the first intermediate ciphertext image according to the fusion cipher stream to obtain a second intermediate ciphertext image, including:
according to the fusion cipher flow, carrying out scrambling diffusion encryption on the first intermediate ciphertext image according to the following steps of obtaining an intermediate ciphertext image;
when (when)When (1):
;
when (when)When (1):
;
in the method, in the process of the invention,representing intermediate ciphertext image,/->Representing a logical exclusive-or operation;
performing cyclic shift processing on the intermediate ciphertext image to obtain a second intermediate ciphertext image,
;
in the method, in the process of the invention,representing a circular left shift operation, ">Representing a second intermediate ciphertext image.
In one embodiment of the present invention, performing DNA encoding encryption on the second intermediate ciphertext image according to the fused ciphertext stream to obtain a final ciphertext image, including:
converting the fusion cipher stream and the second intermediate ciphertext image into DNA codes, performing logical exclusive OR encryption on the DNA codes to obtain a final ciphertext image,
;
wherein,,representing DNA coding operations,/->Representing the final ciphertext image,/>Representing a logical exclusive or operation.
The invention provides an image decryption method based on the combination of a hyperchaotic system and DNA coding, which is used for decrypting a final ciphertext image obtained by the image encryption method in any embodiment, and comprises the following steps:
acquiring a gray image of an image to be decrypted, and taking the gray image as a ciphertext image;
performing DNA encoding decryption on the ciphertext image according to a fusion password stream obtained in an image encryption method based on the combination of the hyper-chaotic system and the DNA encoding to obtain a first intermediate decrypted image;
performing cyclic shift decryption operation on the first intermediate decrypted image to obtain a second intermediate decrypted image, performing shift operation on the second intermediate decrypted image to obtain an intermediate decrypted image,
;
when (when)When (1):
;
when (when)When (1):
;
in the method, in the process of the invention,representing a first intermediate decrypted image->Representing a circular left-shift operation,representing a second intermediate decrypted image->Representing an intermediate decrypted image->The fused cryptographic stream is represented as such,representing the +.>Element(s)>Indicate->A plurality of pixel points;
performing position shift on the intermediate ciphertext image according to the position index of the fusion password stream to obtain a final decrypted image,
;
;
in the method, in the process of the invention,representing the final decrypted image->Representing a sort operation.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides an image encryption method and a decryption method based on the combination of a hyperchaotic system and DNA coding, wherein the image encryption method comprises pixels
Scrambling, pixel diffusion, cyclic shifting, DNA encoding, addition, and XOR operations. The SHA-512 function is used to construct an initial value of the hyper-chaotic system and the ordering function is used to scramble the pixel locations. Then, pixel diffusion is performed by the chaotic sequence, and then the image is encrypted using cyclic shift, DNA encoding, or the like. Finally, through analysis and comparison of the encrypted images, the encryption algorithm can be seen to have the capability of hiding the pixel statistical characteristics of the original images, in addition, the encryption algorithm has the advantages of large key space, more uniform gray value of the encrypted images, low correlation and time complexity between adjacent pixels, strong key sensitivity and excellent overall performance, so that the safety of channel transmission images is greatly improved, the encryption algorithm has good attack resistance, and has high application potential in the aspect of information safety.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention, as well as the preferred embodiments thereof, together with the following detailed description of the invention, given by way of illustration only, together with the accompanying drawings.
Drawings
FIGS. 1-4 are four-channel phase diagrams of a hyperchaotic system provided by embodiments of the invention;
FIGS. 5-8 are time series diagrams of a hyperchaotic system provided by embodiments of the invention;
FIG. 9 is a Lyapunov exponent diagram of a hyperchaotic system provided by an embodiment of the invention;
FIG. 10 is an encryption flow chart of an image encryption method based on the combination of a hyperchaotic system and DNA encoding provided by an embodiment of the invention;
FIG. 11 is a decryption flow chart of an image decryption method based on the combination of a hyperchaotic system and DNA encoding, provided by the embodiment of the invention;
FIGS. 12-19 are an encryption result and a histogram of an image encryption method based on the combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention;
FIGS. 20-22 are graphs showing key sensitivity encryption performance analysis results of an image encryption method based on combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention;
fig. 23 to fig. 28 are graphs of correlation encryption performance analysis results of adjacent pixels of an image encryption method based on combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention.
Detailed Description
In order to further explain the technical means and effects adopted by the invention to achieve the preset aim, the image encryption method and the decryption method based on the combination of the hyper-chaotic system and the DNA encoding are provided in the invention in detail by combining the drawings and the specific embodiments.
The foregoing and other features, aspects, and advantages of the present invention will become more apparent from the following detailed description of the preferred embodiments when taken in conjunction with the accompanying drawings. The technical means and effects adopted by the present invention to achieve the intended purpose can be more deeply and specifically understood through the description of the specific embodiments, however, the attached drawings are provided for reference and description only, and are not intended to limit the technical scheme of the present invention.
Example 1
Referring to fig. 10, fig. 10 is an encryption flow chart of an image encryption method based on combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention, as shown in the figure, the image encryption method based on combination of a hyperchaotic system and DNA encoding of the embodiment comprises:
step 1: acquiring a gray image of an image to be encrypted, and taking the gray image as a plaintext image;
in the present embodiment, a plaintext image is set asThe image size is +.>。
Step 2: obtaining an initial value of a system state variable of the hyper-chaotic system according to the hash function;
in an alternative embodiment, step 2 comprises:
step 2.1: generating 512 hash values according to the plaintext image and the hash function-512;
step 2.2: dividing 512 hash values into 64 sub-blocks, wherein each sub-block contains 8 hash values, and converting each sub-block into decimal numbers;
alternatively, 64 sub-blocks, i.e. 64 decimal numbers, are usedAnd (3) representing.
And calculating to obtain an initial value of a system state variable of the hyper-chaotic system according to the following formula:
(1);
(2);
in the method, in the process of the invention,respectively 64 sub-blocks->Represent the firstmInitial values of the system state variables.
In this embodiment, the hash function-512 is used to generate the initial value of the chaotic system, so that a large enough password space can be provided to resist the statistical brute force attack.
Step 3: generating four chaotic sequences according to the initial value of the system state variable and the model of the hyperchaotic system, and obtaining a fusion password stream according to the four chaotic sequences;
referring to fig. 1-9 in combination, fig. 1-4 are four-channel phase diagrams of a hyperchaotic system according to an embodiment of the invention; wherein FIG. 1 isPhase diagram, FIG. 2->Phase diagram, FIG. 3->Phase diagram, FIG. 4->Phase diagram. FIGS. 5-8 are time-series diagrams of a hyperchaotic system according to embodiments of the invention, wherein FIG. 5 is +.>Time series diagram, FIG. 6 is->Time series diagram, FIG. 7 is->Time series chart, FIG. 8 is->Time series diagram. Fig. 9 is a Lyapunov exponent diagram of a hyperchaotic system according to an embodiment of the invention.
In this embodiment, the model of the hyperchaotic system is:
(3);
in the method, in the process of the invention,four preset control parameters of the hyperchaotic system are respectively represented by +.>Four system state variables of the hyperchaotic system are respectively represented, < ->Respectively representing four chaotic sequences.
In an alternative embodiment, step 3 comprises:
step 3.1: substituting initial values of system state variables into a model of the hyper-chaotic system, and generating four chaotic sequences in a cyclic iteration mode according to a preset sequence lengthThe length of each chaotic sequence is +.>,/>Line number representing plain text image, ">Representing the number of columns of the plaintext image;
step 3.2: and carrying out fusion operation on the four chaotic sequences according to the following steps of:
;
wherein,,representing a fused cryptographic stream->Representing the +.>Element(s)>Representing modular arithmetic, ++>Representing absolute value operation,/->Representing a rounding operation.
Step 4: dividing a plaintext image into a one-dimensional image matrix, and carrying out image scrambling diffusion encryption on the one-dimensional image matrix to obtain a first intermediate ciphertext image;
in an alternative embodiment, step 4 includes:
performing sorting operation on the fusion cipher stream, performing scrambling diffusion encryption on the one-dimensional image matrix according to the following formula according to the fusion cipher stream after the sorting operation to obtain a first intermediate ciphertext image,
(5);
(6);
in the method, in the process of the invention,representing a plain text image->First intermediate ciphertext image,>indicate->The number of pixels in a pixel is one,representing a sort operation.
Step 5: performing cyclic shift position random diffusion encryption on the first intermediate ciphertext image according to the fusion cipher flow to obtain a second intermediate ciphertext image;
in an alternative embodiment, step 5 includes:
step 5.1: according to the fusion cipher flow, carrying out scrambling diffusion encryption on the first intermediate ciphertext image according to the following steps of obtaining an intermediate ciphertext image;
when (when)When (1):
(7);
when (when)When (1):
(8);
in the method, in the process of the invention,representing intermediate ciphertext image,/->Representing a logical exclusive-or operation;
step 5.3: performing cyclic shift processing on the intermediate ciphertext image to obtain a second intermediate ciphertext image,
(9);
in the method, in the process of the invention,representing a circular left shift operation, ">Representing a second intermediate ciphertext image.
Step 6: performing DNA coding encryption on the second intermediate ciphertext image according to the fusion password stream to obtain a final ciphertext image;
in an alternative embodiment, the fused cipher stream and the second intermediate ciphertext image are converted to a DNA encoding, and the DNA encoding is logically XOR encrypted to a final ciphertext image,
(10);
wherein,,representing DNA coding operations,/->Representing the final ciphertext image,/>Representing a logical exclusive or operation.
The image encryption method based on the combination of the hyperchaotic system and the DNA coding of the embodiment comprises pixel scrambling, pixel diffusion, cyclic shift, DNA coding, addition and XOR operation. The SHA-512 function is used to construct an initial value of the hyper-chaotic system and the ordering function is used to scramble the pixel locations. Then, pixel diffusion is performed by the chaotic sequence, and then the image is encrypted using cyclic shift, DNA encoding, or the like. Finally, through analysis and comparison of the encrypted images, the encryption algorithm can be seen to have the capability of hiding the pixel statistical characteristics of the original images, in addition, the encryption algorithm has the advantages of large key space, more uniform gray value of the encrypted images, low correlation and time complexity between adjacent pixels, strong key sensitivity and excellent overall performance, so that the safety of channel transmission images is greatly improved, the encryption algorithm has good attack resistance, and has high application potential in the aspect of information safety.
The embodiment also provides an image decryption method based on the combination of the hyper-chaotic system and the DNA encoding, which is used for decrypting the final ciphertext image obtained by the image encryption method. Referring to fig. 11, fig. 11 is a decryption flow chart of an image decryption method based on combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention, as shown in the figure, the image decryption method based on combination of a hyperchaotic system and DNA encoding according to the embodiment of the invention comprises:
step 1: acquiring a gray image of an image to be decrypted, and taking the gray image as a ciphertext image;
in this embodiment, the image to be decrypted is the final ciphertext image obtained by the image encryption method based on the combination of the hyper-chaotic system and the DNA encoding.
Step 2: performing DNA encoding decryption on the ciphertext image according to the fusion password stream to obtain a first intermediate decrypted image;
in this embodiment, the fusion cipher stream is the fusion cipher stream obtained in the image encryption method based on the combination of the hyperchaotic system and DNA encoding。
Step 3: performing cyclic shift decryption operation on the first intermediate decrypted image to obtain a second intermediate decrypted image, performing shift operation on the second intermediate decrypted image to obtain an intermediate decrypted image,
(11);
when (when)When (1):
(12);
when (when)When (1):
(13);
in the method, in the process of the invention,representing a first intermediate decrypted image->Representing a circular left-shift operation,representing a second intermediate decrypted image->Representing an intermediate decrypted image->Representing a fused cryptographic stream->Representing the +.>Element(s)>Indicate->A plurality of pixel points;
step 4: performing position shift on the intermediate ciphertext image according to the position index of the fusion password stream to obtain a final decrypted image,
(14);
in the method, in the process of the invention,representing the final decrypted image->Obtained from equation (5).
Furthermore, the image encryption and decryption method based on the combination of the hyperchaotic system and the DNA code is adopted to encrypt and decrypt specific images, and the effect of encryption and decryption is described. Referring to fig. 12-19 in combination, fig. 12-19 are an encryption result and a histogram of an image encryption method based on a combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention, wherein fig. 12 is a Lena plaintext image, fig. 13 is a Lena ciphertext image, fig. 14 is a Lena plaintext image histogram, and fig. 15 is a Lena ciphertext image histogram; fig. 16 is a fruit plaintext image, fig. 17 is a fruit ciphertext image, fig. 18 is a fruit plaintext image histogram, and fig. 19 is a fruit ciphertext image histogram. As can be seen from the figure, the encryption algorithm of the invention has the capability of hiding the pixel statistical characteristics of the original image, and the gray value of the encrypted image is more uniform.
Referring to fig. 20-22, fig. 20-22 are graphs of key sensitivity encryption performance analysis results of an image encryption method based on combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention, wherein fig. 20 is a cup plaintext image, fig. 21 is a cup decrypted image, and fig. 22 is a cup decrypted image after fine-tuning of a key. From the figure it can be seen that the key sensitivity of the invention is strong.
Referring to fig. 23-28, fig. 23-28 are graphs of results of analysis of correlation encryption performance of adjacent pixels of an image encryption method based on combination of a hyperchaotic system and DNA encoding according to an embodiment of the invention, wherein fig. 23 is a graph of correlation of adjacent pixels in a horizontal direction of a ship plaintext image, fig. 24 is a graph of correlation of adjacent pixels in a vertical direction of a ship plaintext image, fig. 25 is a graph of correlation of adjacent pixels in a diagonal direction of a ship plaintext image, fig. 26 is a graph of correlation of adjacent pixels in a horizontal direction of a ship ciphertext image, fig. 27 is a graph of correlation of adjacent pixels in a vertical direction of a ship ciphertext image, and fig. 28 is a graph of correlation of adjacent pixels in a diagonal direction of a ship ciphertext image. It can be seen from the figure that the correlation and temporal complexity between neighboring pixels is low.
It should be noted that in this document relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in an article or apparatus that comprises the element.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.
Claims (5)
1. An image encryption method based on the combination of a hyper-chaotic system and DNA coding is characterized by comprising the following steps:
acquiring a gray level image of an image to be encrypted, and taking the gray level image as a plaintext image;
obtaining an initial value of a system state variable of the hyper-chaotic system according to the hash function; comprising the following steps:
generating 512 hash values according to the plaintext image and a hash function-512;
dividing 512 hash values into 64 sub-blocks, wherein each sub-block contains 8 hash values, and converting each sub-block into decimal numbers;
and calculating to obtain an initial value of a system state variable of the hyper-chaotic system according to the following formula:
sum(m)=k 1 (16*m+1)+k 2 (16*m+2)+k 3 (16*m+3)+…k 64 (16*m+16),m=1,2,3,4;
x(m)=mod((sum(m)/256),1),m=1,2,3,4;
wherein k is 1 ,k 2 ,...,k 64 Respectively 64 sub-blocks, x (m) represents the initial value of the mth system state variable;
generating four chaotic sequences according to the initial value of the system state variable and the model of the hyperchaotic system, and obtaining a fusion cipher stream according to the four chaotic sequences; comprising the following steps:
substituting the initial value of the system state variable into the model of the hyper-chaotic system, and generating four chaotic sequences in a cyclic iteration mode according to the preset sequence lengthThe length of each chaotic sequence is M multiplied by N, M represents the number of rows of the plaintext image, and N represents the number of columns of the plaintext image;
and carrying out fusion operation on the four chaotic sequences according to the following formula to obtain a fusion cipher stream:
wherein S (j) represents a fusion cipher stream, j represents a j-th element in the fusion cipher stream, mod (-) represents a modulo operation, abs (-) represents an absolute value operation, and fix (-) represents a rounding operation;
dividing the plaintext image into a one-dimensional image matrix, and carrying out image scrambling, diffusion and encryption on the one-dimensional image matrix to obtain a first intermediate ciphertext image;
performing cyclic shift position random diffusion encryption on the first intermediate ciphertext image according to the fusion cipher flow to obtain a second intermediate ciphertext image;
performing DNA coding encryption on the second intermediate ciphertext image according to the fusion password stream to obtain a final ciphertext image;
the model of the hyper-chaotic system is as follows:
wherein a, b, c and d respectively represent four preset control parameters of the hyper-chaotic system, x, y, z and w respectively represent four system state variables of the hyper-chaotic system,respectively representing four chaotic sequences.
2. The image encryption method based on the combination of the hyperchaotic system and the DNA encoding according to claim 1, wherein dividing the plaintext image into a one-dimensional image matrix, and performing image scrambling diffusion encryption on the one-dimensional image matrix to obtain a first intermediate ciphertext image, comprises:
performing sorting operation on the fusion cipher stream, performing scrambling diffusion encryption on the one-dimensional image matrix according to the fusion cipher stream after sorting operation to obtain a first intermediate ciphertext image,
index=sort(S(j)),j=1,2,...,M×N;
image 2 (i)=image 1 (index(j)),i=1,2,...,M×N;
in the formula, image 1 Representing a plaintext image, image 2 A first intermediate ciphertext image, i representing an ith pixel point, a sort (·) tableA sorting operation is shown.
3. The image encryption method based on the combination of the hyperchaotic system and the DNA encoding according to claim 2, wherein the performing the cyclic shift position random diffusion encryption on the first intermediate ciphertext image according to the fusion cipher stream to obtain a second intermediate ciphertext image comprises:
according to the fusion cipher flow, carrying out scrambling diffusion encryption on the first intermediate ciphertext image according to the following steps of obtaining an intermediate ciphertext image;
when i=1:
when i+.1:
in the formula, image 3 Representing an intermediate ciphertext image,representing a logical exclusive-or operation;
performing cyclic shift processing on the intermediate ciphertext image to obtain a second intermediate ciphertext image,
image 4 =rotateleft(image 3 );
where, rotate (·) represents a circular left shift operation, image 4 Representing a second intermediate ciphertext image.
4. The image encryption method based on the combination of the hyperchaotic system and the DNA encoding according to claim 3, wherein the DNA encoding encryption of the second intermediate ciphertext image according to the fusion cipher stream, to obtain a final ciphertext image, comprises:
converting the fusion cipher stream and the second intermediate ciphertext image into DNA codes, performing logical exclusive OR encryption on the DNA codes to obtain a final ciphertext image,
wherein, DNA (·) represents DNA encoding operation, image 5 Representing the final ciphertext image,representing a logical exclusive or operation.
5. An image decryption method based on the combination of a hyper-chaotic system and DNA encoding, which is used for decrypting a final ciphertext image obtained by the image encryption method of any one of claims 1 to 4, comprising:
acquiring a gray image of an image to be decrypted, and taking the gray image as a ciphertext image;
performing DNA encoding decryption on the ciphertext image according to a fusion password stream obtained in an image encryption method based on the combination of the hyper-chaotic system and the DNA encoding to obtain a first intermediate decrypted image;
performing cyclic shift decryption operation on the first intermediate decrypted image to obtain a second intermediate decrypted image, performing shift operation on the second intermediate decrypted image to obtain an intermediate decrypted image,
Dimage 3 =rotateleft(Dimage 4 );
when i=1:
when i+.1:
in the formula Dimage 4 Representation ofThe first intermediate decrypted image, rotate (·) represents a circular left shift operation, dimage 3 Representing a second intermediate decrypted image, dimage 2 Representing an intermediate decrypted image, S (j) representing a fusion code stream, j representing a j-th element in the fusion code stream, and i representing an i-th pixel point;
performing position shift on the intermediate ciphertext image according to the position index of the fusion password stream to obtain a final decrypted image,
Dimage=image 2 (index);
index=sort(S(j));
where Dimage represents the final decrypted image and sort (·) represents the sort operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310287279.5A CN116318615B (en) | 2023-03-23 | 2023-03-23 | Image encryption method and decryption method based on combination of hyperchaotic system and DNA (deoxyribonucleic acid) coding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310287279.5A CN116318615B (en) | 2023-03-23 | 2023-03-23 | Image encryption method and decryption method based on combination of hyperchaotic system and DNA (deoxyribonucleic acid) coding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116318615A CN116318615A (en) | 2023-06-23 |
CN116318615B true CN116318615B (en) | 2023-10-13 |
Family
ID=86801148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310287279.5A Active CN116318615B (en) | 2023-03-23 | 2023-03-23 | Image encryption method and decryption method based on combination of hyperchaotic system and DNA (deoxyribonucleic acid) coding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116318615B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108365947A (en) * | 2018-03-05 | 2018-08-03 | 郑州轻工业学院 | A kind of image encryption method based on Feistel networks Yu dynamic DNA encoding |
CN108898025A (en) * | 2018-06-25 | 2018-11-27 | 河南大学 | New chaotic image encryption method based on dual scramble and DNA encoding |
CN113225449A (en) * | 2021-05-27 | 2021-08-06 | 郑州轻工业大学 | Image encryption method based on chaos sequence and DNA coding |
CN114584671A (en) * | 2022-03-07 | 2022-06-03 | 哈尔滨工业大学(威海) | Wavelet transformation image encryption method based on Henon mapping |
CN114820268A (en) * | 2022-04-29 | 2022-07-29 | 兰州大学 | Image processing method based on discrete hyper-chaotic system and dynamic DNA (deoxyribonucleic acid) coding with diffusivity |
-
2023
- 2023-03-23 CN CN202310287279.5A patent/CN116318615B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108365947A (en) * | 2018-03-05 | 2018-08-03 | 郑州轻工业学院 | A kind of image encryption method based on Feistel networks Yu dynamic DNA encoding |
CN108898025A (en) * | 2018-06-25 | 2018-11-27 | 河南大学 | New chaotic image encryption method based on dual scramble and DNA encoding |
CN113225449A (en) * | 2021-05-27 | 2021-08-06 | 郑州轻工业大学 | Image encryption method based on chaos sequence and DNA coding |
CN114584671A (en) * | 2022-03-07 | 2022-06-03 | 哈尔滨工业大学(威海) | Wavelet transformation image encryption method based on Henon mapping |
CN114820268A (en) * | 2022-04-29 | 2022-07-29 | 兰州大学 | Image processing method based on discrete hyper-chaotic system and dynamic DNA (deoxyribonucleic acid) coding with diffusivity |
Also Published As
Publication number | Publication date |
---|---|
CN116318615A (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ahmad et al. | A secure image encryption scheme based on chaotic maps and affine transformation | |
Kulsoom et al. | An efficient and noise resistive selective image encryption scheme for gray images based on chaotic maps and DNA complementary rules | |
Sun et al. | A novel image encryption scheme based on 7D hyperchaotic system and row-column simultaneous swapping | |
CN105681622B (en) | A kind of color image encrypting method based on cell neural network hyperchaos and DNA sequence dna | |
CN102982499B (en) | Based on color image encryption and the decryption method of multi-fractional order chaos system | |
CN110570344B (en) | Image encryption method based on random number embedding and DNA dynamic coding | |
CN107220923B (en) | Digital picture feedback encryption method based on image network | |
CN108365947A (en) | A kind of image encryption method based on Feistel networks Yu dynamic DNA encoding | |
CN107590842B (en) | Image encryption method and device based on pixel and DNA cross dynamic chaotic password | |
CN108122188B (en) | Image encryption method | |
CN105046161A (en) | DNA dynamic coding based colored image encryption method | |
CN109660696A (en) | A kind of new image encryption method | |
CN112422266A (en) | Hyperchaotic encryption method based on Joseph traversal and bit plane reconstruction | |
Kumar et al. | A cryptographic model for better information security | |
CN110535624B (en) | Medical image privacy protection method applied to DICOM format | |
US20140112469A1 (en) | Novel encryption processes based upon irrational numbers and devices to accomplish the same | |
Fu-Yan et al. | Image encryption using high-dimension chaotic system | |
Panwar et al. | Cryptanalysis and improvement of an image encryption scheme using combination of one-dimensional chaotic maps | |
CN1518269A (en) | Data enciphering equipment and method | |
Zheng et al. | An image encryption algorithm based on multichaotic system and DNA coding | |
CN113691362A (en) | Bit plane image compression encryption algorithm based on hyperchaotic system and DNA coding | |
Devi et al. | Entropy influenced RNA diffused quantum chaos to conserve medical data privacy | |
Shakir et al. | A new four-dimensional hyper-chaotic system for image encryption | |
CN117499005A (en) | Image encryption method based on 4D chaotic system | |
CN104050617A (en) | Method for image encryption based on Liu chaotic system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |