Skip to main content
. 2020 Dec 31;23(1):57. doi: 10.3390/e23010057
Algorithm 4 Image encryption algorithm
Input: The plain image, O, the polynomial p(x), α, β, q10,q20,a,b,c1,c2,μ1,μ2, ν1, and ν2.
Output: E, the encrypted image.
Step 1: Read the plain image, O.
Step 2: Generate the secret key by using the key mixing proportion factor.
Step 3: Call Algorithm 2 to get the shuffled image H.
Step 4: Call Algorithm 3 to get the diffusion vector D.
Step 5: Covert D to decimal, say Dd.
Step 6: Change the dimension of Dd to M×N, say E.
Step 7: E is the encrypted image.