Skip to main content
. 2023 Jan 21;25(2):209. doi: 10.3390/e25020209
Algorithm 3: Data extracting and image decryption
Input: Marked sharing images C1, ,Ck, Decryption keys X1, , Xk
Output: Data S(1), S(2),…, S(k), Original image M
Step 1. Take part B of the image C1, ,Ck to obtain the secret information S(1), ..., S(k).
Step 2. For sharing a set of pixels of the image Ct(Cti,j, ..., Cti,j+k−1), extract the P part of the pixel set and merge it into the encrypted pixel values y(t)i,j, t=1, 2, , k.
Step 3. Bring the encrypted pixel values y(1)i,j,, y(2)i,j, ..., y(k)i,j with the decryption keys X1, , Xk into Lagrange polynomial of Equation (4), build the polynomial Pi,j+k1xk1+Pi,j+k2xk2++Pi,j.
Step 4. The coefficients of the polynomial Pi,j+k1xk1+Pi,j+k2xk2++Pi,j are used to obtain the pixel sets (Pi,j, …, Pi,j+k−1) of the original images.
Step 5. Repeat Step 2 to Step 4 until all pixel groups (Pi,j, …, Pi,j+k−1) have been processed.
Step 6. Combine all pixel groups (Pi,j, …, Pi,j+k−1) into the original image M.
Step 7. Output the original image M and the secret information S(1), S(2),..., S(k).