2.1. Encryption Process
The encryption framework of the proposed color image encryption method is depicted in
Figure 1. To completely illustrate the proposed color image encryption process, the encryption process is divided into two parts: (1) POH encoding under dynamic constraint and (2) phase retrieval under SLI, where the first and second parts are respectively divided into the following first seven steps (S1–S7) and the following last six steps (S8–S13):
S1: Initial condition deployment
First, the wavelengths of red (R), green (G), and blue (B) color channels are set as
,
, and
, respectively. Afterwards, four planes parallel to each other are successively set along a straight line, which are respectively recorded as Plane H, Plane B, Plane G, and Plane R, as shown in
Figure 2.
Moreover, the distances between Plane B, Plane G, Plane R, and Plane H are respectively recorded as
,
,
, and
;
and
are characterized to meet the following proportional relationship:
Thereafter, the color plaintext image to be encrypted is decomposed into R, G, and B components, whose amplitude distributions are respectively recorded as R component plaintext amplitude , G component plaintext amplitude , and B component plaintext amplitude , which are respectively used for dynamic amplitude constraint of corresponding plane. Subsequently, the initial value of the number of dynamic constraints is set as 0. In addition, a complex amplitude composed of a unit amplitude and a random phase distributed within the range of is set on Plane H, where represents a phase randomly distributed within the range of . Afterwards, the encryption step S2 is run.
S2: Diffractive propagation under dynamic amplitude constraint of B component
A collimated plane light wave with a unit amplitude and the wavelength of
is employed as the encryption light wave, and it vertically incidents on Plane H. After the phase modulation of
, the encryption light wave
begins diffractive propagation forward until Plane B. Therefore, the complex amplitude of the encrypted light wave at Plane B, after forward propagation, is derived and can be expressed as:
where
represents the operation of angular-spectrum diffraction with the wavelength of
and the distance of
,
and
respectively represent the operations of Fourier transform and inverse Fourier transform,
is the imaginary unit,
is the wave number, and
and
denote the spatial frequency coordinates. In the subsequent step, the amplitude of the forward-propagating encryption light wave arriving at Plane B is extracted, preserved, and marked as the B plane reconstruction amplitude
, where
represents the operation of amplitude extraction. Thereafter, the correlation coefficient
between the B plane reconstruction amplitude
and the B component plaintext amplitude
is calculated. Next, a dynamic amplitude constraint of B component is carried out to
, and then the complex amplitude
of the encryption light wave after the dynamic amplitude constraint of B component is obtained, which can be expressed as:
where
represents the operation of B component amplitude constraint under the
th time of dynamic constraint,
represents the operation of phase extraction, and
stands for the B component amplitude constraint factor under the
th time of dynamic constraint, which can be mathematically expressed as:
In fact, Equation (4) illustrates that the amplitude constraint factor varies with the number of iterations, aiming to ensure that the CCs of R/G/B three-color channels converge to the same preset threshold rapidly and uniformly. It is worth noting that each segment within Equation (4) is of great importance and irreplaceable, and the significance and necessity of each segment are summarized as follows: The first segment, corresponding to the 0-th time iteration, serves to provide a superior initial result, thereby avoiding the initiation of iterative search from completely random and erroneous values, which can shorten the convergence time for achieving the threshold. The second segment (for the 1st time iteration) and the third segment (for the iteration time greater than 1) are dedicated to balancing the CCs of R/G/B three-color channels. Their primary function is to ensure that the CCs of three-color channels converge to the same value, thereby minimizing color differences. In conclusion, each segment in the three-stage expression of Equation (4) is crucial and indispensable, and the synergistic effect of the three segments ensures R/G/B three-color channels rapidly converge to the same preset threshold, leading to a balanced color image with high quality.
Afterwards, the encryption light wave
begins diffractive propagation backward until Plane H; thus, the complex amplitude
of the backward-propagating encryption light wave arriving at Plane H—after the dynamic amplitude constraint of B component—is obtained, which can be expressed as:
where
represents the operation of inverse angular-spectrum diffraction with the wavelength of
and the distance of
. Subsequently, a unit amplitude constraint is applied to
, and then the output complex amplitude
of the encryption light wave after the dynamic amplitude constraint of B component is obtained, where
represents the operation of unit amplitude constraint. Afterwards, the encryption step S3 is executed.
S3: Diffractive propagation under dynamic amplitude constraint of G component
The encryption light wave
after the encryption step S2 starts diffractive propagation forward until Plane G; thus, the complex amplitude
of the forward-propagating encryption light wave arriving at Plane G is obtained. Subsequently, the amplitude of the encryption light wave propagating forward to Plane G is extracted and saved, and it is recorded as the G plane reconstruction amplitude
. Afterwards, the correlation coefficient
between the G plane reconstruction amplitude
and the G component plaintext amplitude
is calculated. Next, a dynamic amplitude constraint of G component is carried out to
, and then the complex amplitude
of the encryption light wav—after the dynamic amplitude constraint of G component—is obtained. Afterwards, the encryption light wave
begins diffractive propagation backward until Plane H; thus, the complex amplitude
of the backward-propagating encryption light wave arriving at Plane H—after the dynamic amplitude constraint of G component—is obtained. Subsequently, a unit amplitude constraint is applied to
, and then the output complex amplitude
of the encryption light wave—after the dynamic amplitude constraint of G component—is obtained, which can be expressed as:
where
represents the operation of G component amplitude constraint under the
th time of dynamic constraint. Afterwards, the encryption step S4 is run.
S4: Diffractive propagation under dynamic amplitude constraint of R component
The encryption light wave after the encryption step S3, starts diffractive propagation forward until Plane R; thus, the complex amplitude of the forward-propagating encryption light wave arriving at Plane R is obtained. Subsequently, the amplitude of the forward-propagating encryption light wave arriving at Plane R is extracted and saved, and it is recorded as the R plane reconstruction amplitude . Afterwards, the correlation coefficient between the R plane reconstruction amplitude and the R component plaintext amplitude is calculated. Next, a dynamic amplitude constraint of R component is carried out to , and then the complex amplitude of the encryption light wave—after the dynamic amplitude constraint of R component—is obtained.
Afterwards, the encryption light wave
begins diffractive propagation backward until Plane H; thus, the complex amplitude
of the backward-propagating encryption light wave arriving at Plane H—after the dynamic amplitude constraint of R component—is obtained. Subsequently, a unit amplitude constraint is applied to
, and then the output complex amplitude
of the encryption light wave—after the dynamic amplitude constraint of R component—is obtained, which can be expressed as:
where
represents the operation of R component amplitude constraint under the
th time of dynamic constraint. Afterwards, the encryption step S5 is run.
S5: Judgment of phase output condition
The average value of , , and is calculated, and if has exceeded the preset threshold , that is, the phase output condition is met, then the encryption step S7 is executed. Conversely, if has not exceeded the preset threshold , that is, the phase output condition is not fulfilled, then the encryption step S6 is initiated instead.
S6: Phase update
is updated as obtained in the encryption step S4, that is, ; simultaneously, the number of dynamic constraints is also updated from to , that is, . Afterwards, the encryption step S2 is run.
S7: Output of POH and phase-to-amplitude conversion
An operation of phase extraction is performed to
obtained in the encryption step S4; thus, the POH
of the color plaintext image is generated and outputted, that is,
. Subsequently, an operation of phase-to-amplitude conversion is applied to
; thus, the converted amplitude
is obtained, which can be expressed as:
where
represents the operation of phase-to-amplitude conversion. Afterwards, the encryption step S8 is executed.
S8: Generation and illumination of encryption structured light (ESL)
A collimated plane wave of unit amplitude is phase-modulated by a composite encryption structured phase mask (ESPM) that integrates a Fresnel zone plate with a radial Hilbert mask, thereby generating the required ESL. Consequently, the complex amplitude distribution of the ESL is equivalent to the phase distribution
of the ESPM, whose mathematical expression can be written by:
where
is the wavelength of the ESL,
and
are respectively the focal length and radius of the Fresnel zone plate, and
and
are respectively the topological charge number and spatial azimuth of the radial Hilbert mask. Subsequently, the ESL, generated after phase modulation by the ESPM, begins diffractive propagation forward until it reaches the preset visible ciphertext, and then the complex amplitude
of the ESL propagating forward to the front surface of the ciphertext is obtained, where
is the distance from the ESPM to the ciphertext. Afterwards, the encryption step S9 is run.
S9: Unconstrained forward propagation
The ESL, after amplitude modulation by the ciphertext, continues diffractive propagation forward, sequentially passing through the planes of
POMs to be retrieved, until it reaches the reconstruction image plane. These
POMs to be retrieved are recorded as POM 1, POM 2, …, and POM
, respectively. The front surfaces of these POMs are respectively recorded as
,
, …, and
, and their back surfaces are respectively recorded as
,
, …, and
. The complex amplitude
of the ESL propagating forward to
can be expressed as:
where
is the amplitude of the preset visible ciphertext, and
is the distance from the ciphertext to
. In the following stage, the ESL maintains diffractive propagation in the forward direction, sequentially reaching
,
, …,
, and
(the reconstruction image plane). The complex amplitude
of the ESL propagating forward to
can be expressed as:
where
is the distance from
to
, and
stands for
changes from 2 to
with the step size of 1. Subsequently, the amplitude
and phase
of the ESL propagating forward to
are extracted and saved, which can be respectively expressed as:
where
stands for
changes from 1 to
with the step size of 1. Afterwards, the encryption step S10 is executed.
S10: Judgment of convergence condition
After the amplitude of the ESL propagating forward to the reconstruction image plane is obtained, it is recorded as the reconstructed amplitude, and then the correlation coefficient between the reconstructed amplitude and the converted amplitude is calculated. If has exceeded the preset threshold , indicating that the convergence condition is met, then the encryption step S13 is executed. If has not exceeded the preset threshold , indicating that the convergence condition is not met, then the phase of the ESL propagating forward to the reconstruction image plane is kept unchanged and the converted amplitude is used to replace the reconstructed amplitude for realizing the amplitude constraint, thereby a new complex amplitude on the reconstruction image plane is generated, which is given by: . Afterwards, the encryption step S11 is initiated.
S11: Backward propagation under phase constraint
The ESL, with the new complex amplitude
on the reconstruction image plane, begins diffractive propagation backward, reaching the back surfaces
of the
POMs in sequence. The complex amplitude
of the ESL propagating backward to
can be expressed as:
where
is the distance from
to
, and
stands for
changes from
to 1 with the step size of
. Subsequently, the amplitude
and phase
of the ESL propagating backward to
are extracted and saved, which can be respectively expressed as:
where
stands for
changes from
to 1 with the step size of
. Thereafter, the amplitude
of the ESL propagating backward to
, which is saved in encryption step S11, is kept unchanged, and the phase
of the ESL propagating forward to
saved in encryption step S9 is used to replace the phase
of the ESL propagating backward to
saved in encryption step S11 for realizing the phase constraint; thus, a new complex amplitude
used for the next segment of backward propagation is generated, which can be expressed as:
where
stands for
changes from
to 1 with the step size of
. It is worth noting that Equations (13)–(15) should be circularly run along with the backward propagation of the ESL from
to
successively. Afterwards, the encryption step S12 is run.
S12: Forward propagation under phase constraint
The amplitude
of the ESL propagating forward to
, which is saved in encryption step S9, is kept unchanged, and the phase
of the ESL propagating backward to
saved in encryption step S11 is used to replace the phase
of the ESL propagating forward to
saved in encryption step S9 for realizing the phase constraint; thus, a new complex amplitude
used for the next segment of forward propagation is generated, which can be written by:
. Subsequently, the ESL begins diffractive propagation forward, reaching
,
, …,
, and
in sequence, where the complex amplitude
of the ESL propagating forward to
can be updated as:
where
stands for
changes from 2 to
with the step size of 1. Thereafter, the amplitude
and phase
of the ESL propagating forward to
are extracted and saved again, which can be respectively expressed as:
where
stands for
changes from 2 to
with the step size of 1. Subsequently, the amplitude
of the ESL propagating forward to
, which is saved in encryption step S12, is kept unchanged, and the phase
of the ESL propagating backward to
saved in encryption step S11 is used to replace the phase
of the ESL propagating forward to
saved in encryption step S12 for realizing the phase constraint; thus, a new complex amplitude
used for the next segment of forward propagation is generated, which can be expressed as:
where
stands for
changes from 2 to
with the step size of 1. Likewise, it is noted that Equations (16)–(18) should be circularly run along with the forward propagation of the ESL from
to
successively. Afterwards, the encryption step S10 is run.
S13: Generation and output of POMs
On all planes where the POMs to be retrieved are located, the operation of phase subtraction is performed between the phase
of the ESL propagating backward to
saved in encryption step S11, and the phase
of the ESL propagating forward to
saved in encryption step S12, thereby the phase distributions of all POMs to be retrieved are generated and outputted, where the phase distribution
of the POM
can be expressed as:
where
represents the modulo operation, and
stands for
changes from 1 to
with the step size of 1.
So far, the encryption process has finished completely.
2.2. Decryption Process
The color image decryption process in accord with the encryption process described above is divided into the following three steps:
J1: Generation and illumination of DSL
Firstly, a collimated plane wave is first phase-modulated by a decryption structured phase mask (DSPM), thereby producing the DSL. This DSL then undergoes forward propagation to illuminate the preset ciphertext. The complex amplitude
of the DSL propagating forward to the front surface of the ciphertext can be expressed as:
where
represents the phase distribution of the DSPM,
represents the wavelength of the DSL, and
is the distance from the DSPM to the ciphertext. Afterwards, the decryption step J2 is run.
J2: Forward diffractive decryption
The DSL, after the amplitude modulation by the ciphertext, continues diffractive propagation forward; thus, the complex amplitude
of the DSL propagating forward to
can be expressed as:
where
represents the distance from the ciphertext to
during decryption. The DSL then propagates forward diffractively, reaching
,
, …,
, and
(the reconstructed image plane) in sequence. The complex amplitude
of the DSL propagating forward to
can be expressed as:
where
represents the distance from
to
during decryption, and
stands for
changes from 2 to
with the step size of 1. Afterwards, the amplitude
of the DSL propagating forward to the reconstructed image plane (
) is extracted and saved, and it is recorded as the reconstructed amplitude, which is given by:
. Thereafter, an operation of amplitude-to-phase conversion is applied to
; thus, the converted phase
is obtained, which can be expressed as:
where
represents the operation of amplitude-to-phase conversion. Afterwards, the decryption step J3 is run.
J3: Color holographic reconstruction decryption
The converted phase
is firstly placed on Plane H, and then three unit-amplitude collimated plane waves with the wavelengths of
,
, and
are employed as the trichromatic decryption waves and simultaneously incident on Plane H vertically. After the phase modulation by
, the trichromatic decryption waves begin diffractive propagation forward until they reach Plane R; thus, the complex amplitudes
,
, and
of the trichromatic decryption waves propagating forward to Plane R are obtained, which can be respectively expressed as:
Subsequently, the amplitudes of the trichromatic decryption waves propagating forward to Plane R are extracted and saved, which are respectively recorded as the R component decrypted amplitude , the G component decrypted amplitude , and the B component decrypted amplitude . Thereafter, the R component decrypted amplitude , the G component decrypted amplitude , and the B component decrypted amplitude are combined to form a color image, which is the final color decrypted image.
The decryption process is thus completed. It is noteworthy that this process can be implemented either entirely digitally or via a hybrid optical-digital approach. The latter primarily relies on two optical systems: a diffractive imaging system for steps J1–J2 and a color holographic reconstruction system for step J3, as illustrated in
Figure 3a and
Figure 3b, respectively.
The optical decryption process corresponding to
Figure 3a is described as follows. First, light from a laser is sequentially conditioned by a polarizer, an objective lens, a pinhole, and a collimating lens to undergo polarization modulation, beam expansion, filtering, and collimation, thereby generating a plane wave. This wave is then phase-modulated by the DSPM to form the DSL. This DSL propagates forward to illuminate the preset ciphertext, which acts as an amplitude modulator. The amplitude-modulated light subsequently illuminates the POM set composed of multiple POMs. Thereafter, the light emerging from the final POM propagates to the CCD. In such a way, a grayscale image can be captured by the CCD, which is the reconstructed amplitude. So far, optical decryption process in the decryption steps J1–J2 has been finished, and then the reconstructed amplitude captured by the CCD will be uploaded into a computer. Thereafter, an operation of amplitude-to-phase conversion is applied to the reconstructed amplitude by using a computer program such that the converted phase can be obtained and used for the next decryption step J3.
The concrete optical decryption process in accord with
Figure 3b can be described as follows: three light waves emitted from a red laser, a green laser, and a blue laser are successively polarization-modulated, color-combined, beam-expanded, filtered, and collimated for generating a multicolor plane wave by three polarizers, two dichroic mirrors, an objective lens, a pinhole, and a collimating lens, respectively. Thereafter, the multicolor plane wave is phase-modulated by the aforementioned converted phase that plays the role of POH. Afterwards, the phase-modulated multicolor light propagates forward until the preset CCD such that the color decrypted image can be formed and captured by the CCD. So far, optical decryption process in the decryption step J3 has been finished. The optical decryption process corresponding to the setup in
Figure 3b is as follows. First, beams from red, green, and blue lasers are individually polarization-modulated by their respective polarizers. They are then color-combined using two dichroic mirrors, and the combined beam is subsequently expanded, filtered, and collimated to form a multicolor plane wave. This wave is phase-modulated by the aforementioned converted phase, which functions as a POH. The modulated multicolor light then propagates to the CCD, where the color decrypted image is formed and captured. This completes the optical decryption process for step J3.