Algorithm 4 A step-by-step image encryption scheme. |
Input: Plain image .
Output: Cipher image .
Begin
Examine the dimensions of (i.e., M, N, grayscale or RGB color image) and Change it into a 1-D vector of pixels (length or for grayscale and color images, respectively)
Alter the intensity values into the range by mathematical operation included into the arrangement as the state values of the proposed mapping.
Split into two vectors ( and of lengths each.
Generate the chaotic sequence by selecting two of the proposed maps (e.g., Execute Equations ( 1) and ( 2))
Change the chaotic sequence (different maps in Figure 2 can be used for each half of ).
Iterate the chaotic sequence for for scrambling row by row and column by column (starting from the first row and the first column).
Compute the next quantized chaotic pair using the 2nd proposed map to scramble for with the second chaotic sequence, and reiterate this step n times1
Combine the two encrypted image halves (each half has its own encryption parameters) and mix the pixels of the combined image.
Permute
using the 3rd proposed map for the secret key.
Construct the new vector of mistook pixels (index, size = ).
Adjust and changes the vector realizing that every component of level gray ranges in [0,255] utilizing the 4-th proposed chaotic map and the accompanying condition: , where .
Create the diffused vector , where ⊕ denotes the bit-wise exclusive OR
Create the final matrix with cipher image C = reshape (, M, N)
Determine the encryption image matrix and spare as .
End
|