DNA image encryption system based on optical chaos
Technical Field
The invention belongs to the technical field of optical information, and particularly relates to a DNA image encryption system based on optical chaos.
Background
The chaos is a science developed in recent decades, and because the chaotic system has the characteristics of a pseudo-random signal similar to noise and the characteristic of robustness to interference, the chaos has a wide prospect in the aspects of secret communication, image encryption, signal detection and the like. The key for realizing the encryption of the chaotic image is the generation of a chaotic key, and the complexity of the chaotic key can directly influence the encryption performance of the digital image. The chaotic image encryption is realized by using the optical device, and the chaotic image encryption method has the characteristics of low cost, large key space, stable performance, strong confidentiality and the like.
At present, the encryption idea of the traditional encryption algorithm is to treat plaintext information as one-dimensional binary stream for encryption operation, which has certain advantages but does not consider the characteristics of digital images, and the traditional encryption system is directly used for encrypting the digital images, so that the encryption efficiency is very low, and the encryption security is not ideal. Therefore, it is necessary to design an image encryption system based on optical chaos.
For example, the chinese patent application No. CN201810402215.4 discloses an optical image encryption method based on indirect cylindrical diffraction and compressed sensing. The method is used for simply improving the classic technology of firstly compressing sensing and then double random phase encoding encryption, a cylindrical phase plate is used for replacing a plane phase plate, and two times of reflection relay cylindrical diffraction replaces two times of continuous relay plane diffraction. Although the security of the encryption method can be greatly improved by utilizing the asymmetry of the two reflection relay cylindrical diffraction processes and the reverse process, the encryption method can particularly effectively resist known plaintext attack, ciphertext-only attack and phase recovery attack, and has the defects of large number of secret keys, strong sensitivity, large secret key space and good security, but the encryption method has the defects that the secret keys cannot be generated at an encryption end and a decryption end, a color image is encrypted through reversible DNA encryption and decryption operation, and the security is deficient in the whole encryption method system.
Disclosure of Invention
The invention provides a DNA image encryption system based on optical chaos, which is cost-saving, high in encryption speed, low in power consumption and strong in confidentiality, and aims to solve the problems that the traditional encryption system has low encryption efficiency and unsatisfactory encryption safety when used for encrypting a digital image in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
the DNA image encryption system based on optical chaos comprises a first laser, a second laser, a third laser, a fourth laser, a fifth laser, a sixth laser, a seventh laser, a first key generator, a second key generator, a third key generator, a fourth key generator, a fifth key generator, a sixth key generator, a first reflector and a first beam splitter; the first reflector, the first laser and the first beam splitter are connected in sequence; the second laser, the third laser, the fourth laser, the fifth laser, the sixth laser and the seventh laser are all connected with the first beam splitter; the first key generator is connected with the second laser; the second key generator is connected with a third laser; the third key generator is connected with a fourth laser; the fourth key generator is connected with a fifth laser; the fifth key generator is connected with a sixth laser; the sixth key generator is connected to a seventh laser.
Preferably, the device parameters of the second laser and the fifth laser are the same; the device parameters of the third laser and the sixth laser are the same; the device parameters of the fourth laser and the seventh laser are the same.
Preferably, the coupling coefficients of the first laser, the second laser, the third laser, the fourth laser, the fifth laser, the sixth laser and the seventh laser are all 0.5.
Preferably, the first key generator is configured to perform a DNA encryption operation on an R component grayscale image of a color image; and the fourth key generator is used for carrying out DNA decryption operation on the encrypted R component gray-scale image.
Preferably, the second key generator is configured to perform a DNA encryption operation on a G component grayscale image of the color image; and the fifth key generator is used for carrying out DNA decryption operation on the encrypted G component gray-scale image.
Preferably, the third key generator is configured to perform a DNA encryption operation on the B-component grayscale image of the color image; and the sixth key generator is used for carrying out DNA decryption operation on the encrypted B component gray-scale image.
Preferably, the wavelength ranges of the signals generated by the first laser, the second laser, the third laser, the fourth laser, the fifth laser, the sixth laser and the seventh laser are all 1500nm-1550 nm.
Preferably, the power generated by the first laser, the second laser, the third laser, the fourth laser, the fifth laser, the sixth laser and the seventh laser is 10 mW.
Compared with the prior art, the invention has the beneficial effects that: (1) the invention utilizes the chaos principle to generate keys at an encryption end and a decryption end, and encrypts the color image through reversible DNA encryption and decryption operation, thereby increasing the confidentiality of the system, and if the encrypted image is intercepted in the transmission process, the original image can not be obtained without the digital key; (2) the multi-channel color image encryption system can resist various attacks aiming at encrypted images and has good confidentiality; (3) the invention is different from the traditional optical chaotic image encryption system in that the keys of the three components of the color image are respectively generated by three slave lasers controlled by the same laser, and are operated through DNA encryption operation and the three components of the color image so as to encrypt the color image.
Drawings
FIG. 1 is a schematic structural diagram of a DNA image encryption system based on optical chaos according to the present invention;
FIG. 2 is an original color image of the input of FIG. 1;
FIG. 3 is a graph of the RGB components and corresponding gray level histogram of the encrypted original color image of FIG. 1;
FIG. 4 is a graph of the RGB components of the decrypted image of FIG. 1 and the corresponding gray level histogram;
fig. 5 is a decrypted color image output in fig. 1.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention, the following description will explain the embodiments of the present invention with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
Example 1:
the DNA image encryption system based on optical chaos as shown in FIG. 1 includes a first laser 1-1, a second laser 1-2, a third laser 1-3, a fourth laser 1-4, a fifth laser 1-5, a sixth laser 1-6, a seventh laser 1-7, a first key generator 2-1, a second key generator 2-2, a third key generator 2-3, a fourth key generator 2-4, a fifth key generator 2-5, a sixth key generator 2-6, a first beam splitter 3-1 and a first mirror 4-1.
Specifically, the a1 port of the first mirror 4-1 is connected with the b1 port of the first laser 1-1, the b2 port of the first laser 1-1 is connected with the c1 port of the first beam splitter 3-1, the c2 port of the first beam splitter 3-1 is connected with the d1 port of the second laser 1-2, the d2 port of the second laser 1-2 is connected with the e1 port of the first key generator 2-1, the c3 port of the first beam splitter 3-1 is connected with the f1 port of the third laser 1-3, the f2 port of the third laser 1-3 is connected with the g1 port of the second key generator 2-2, the c4 port of the first beam splitter 3-1 is connected with the h1 port of the fourth laser 1-4, the h2 port of the fourth laser 1-4 is connected with the i1 port of the third key generator 2-3, the c5 port of the first beam splitter 3-1 is connected with the j1 port of the fifth laser 1-5, the j2 port of the fifth laser 1-5 is connected with the k1 port of the fourth key generator 2-4, the c6 port of the first beam splitter 3-1 is connected with the l1 port of the sixth laser 2-6, the l2 port of the sixth laser 2-6 is connected with the m1 port of the fifth key generator 2-5, the c2 port of the first beam splitter 3-1 is connected with the n1 port of the seventh laser 1-7, and the n2 port of the seventh laser 1-7 is connected with the o1 port of the sixth key generator 2-6.
Further, the first key generator 2-1 is configured to perform DNA encryption operation on the R component grayscale image of the color image; the fourth key generator 2-4 is configured to perform a DNA decryption operation on the encrypted R component grayscale image.
Further, the second key generator 2-2 is configured to perform DNA encryption operation on the G component grayscale image of the color image; the fifth key generator 2-5 is used for performing a DNA decryption operation on the encrypted G component gray scale image.
Further, the third key generator 2-3 is configured to perform DNA encryption operation on the B component grayscale image of the color image; the sixth key generator 2-6 is used for performing a DNA decryption operation on the encrypted B-component grayscale image.
Further, in order to ensure the encryption and decryption effects, the second laser 1-2 and the fifth laser 1-5 have the same device parameters; the device parameters of the third laser 1-3 and the sixth laser 1-6 are the same; the fourth laser 1-4 and the seventh laser 1-7 have the same device parameters. The second laser 1-2 and the fifth laser 1-5 are respectively an encryption end and a decryption end of an R component gray image of a color image; the third laser 1-3 and the sixth laser 1-6 are respectively an encryption end and a decryption end of a G component gray image of the color image; the fourth laser 1-4 and the seventh laser 1-7 are respectively an encryption end and a decryption end of the B component gray scale image of the color image.
Further, the coupling coefficients of the first laser 1-1, the second laser 1-2, the third laser 1-3, the fourth laser 1-4, the fifth laser 1-5, the sixth laser 1-6 and the seventh laser 1-7 are all 0.5.
Further, the wavelength ranges of signals generated by the first laser 1-1, the second laser 1-2, the third laser 1-3, the fourth laser 1-4, the fifth laser 1-5, the sixth laser 1-6 and the seventh laser 1-7 are all 1500nm-1550 nm.
Further, the power generated by the first laser 1-1, the second laser 1-2, the third laser 1-3, the fourth laser 1-4, the fifth laser 1-5, the sixth laser 1-6 and the seventh laser 1-7 is 10 mW.
Taking fig. 1 to 5 as an example, the working implementation of the present invention is as follows:
s1, generating an optical signal by a first laser 1-1, reflecting the optical signal by a first reflector 4-1, then entering a first beam splitter 3-1 together with the original optical signal, and sequentially and simultaneously driving a second laser 1-2, a third laser 1-3, a fourth laser 1-4, a fifth laser 1-5, a sixth laser 1-6 and a seventh laser 1-7 to synchronize;
s2, after the second laser 1-2, the third laser 1-3, the fourth laser 1-4, the fifth laser 1-5, the sixth laser 1-6 and the seventh laser 1-7 which are synchronized are received, a more complex chaotic optical signal is output and enters a correspondingly connected key generator to convert the chaotic optical signal into a digital key;
s3, respectively performing DNA encryption operation through the obtained digital key and the gray value sequence of each component of RGB of the input original color image (figure 2), and encrypting the color image, wherein the gray value sequence of each component of RGB after the color image is encrypted is shown in figure 3;
s4, after the color image is transmitted, the color image encrypted RGB components and the digital key are subjected to DNA decryption operation to recover the color image RGB components, and the gray value sequence of the color image decrypted RGB components is shown in FIG. 4;
s5, finally, the components of the recovered color image RGB are combined to obtain a decrypted color image, i.e., an original color image, as shown in fig. 5.
The invention utilizes the chaos principle to generate keys at an encryption end and a decryption end, and encrypts the color image through reversible DNA encryption and decryption operation, thereby increasing the confidentiality of the system, and if the encrypted image is intercepted in the transmission process, the original image can not be obtained without the digital key; the multi-channel color image encryption system can resist various attacks aiming at encrypted images and has good confidentiality; the invention is different from the traditional optical chaotic image encryption system in that the keys of the three components of the color image are respectively generated by three slave lasers controlled by the same laser, and are operated through DNA encryption operation and the three components of the color image so as to encrypt the color image.
The foregoing has outlined rather broadly the preferred embodiments and principles of the present invention and it will be appreciated that those skilled in the art may devise variations of the present invention that are within the spirit and scope of the appended claims.