Skip to main content
. 2023 Jan 21;25(2):209. doi: 10.3390/e25020209
Algorithm 1: Image Sharing
Input: Image M, Encryption keys Xt, t=1, 2, , n.
Output: Sharing images C(t), t=1, 2, , n.
Step 1: A set of pixels (Pi,j, …, Pi,j+k−1) is extracted from Image M. The polynomial Pi,j+k1xk1+Pi,j+k2xk2++Pi,j is generated using the set of pixels (Pi,j, …, Pi,j+k−1).
Step 2: Substitute the Encryption key Xt, t=1, 2, , n through 256 Galois field into the polynomial Pi,j+k1xk1+Pi,j+k2xk2++Pi,j to obtain n encrypted pixel values y(t)i,j, where y(t)i,j =Pi,j+k1xtk1+Pi,j+k2xtk2++Pi,j,  t=1, 2, , n.
Step 3: The encrypted pixel values y(t)i,j are divided into 8-bits, and each bit is put into the pixels of the shared image C(t) in order (C(t)i,j, …, C(t)i,j+k−1), and it is called the P part, if k7, because k<8 cannot put all the bits at once, so the remaining bits are put in order again and the remaining vacant part is called Part B.
Step 4: Repeat Step 2 and Step 3 until all set of pixels (Pi,j, …, Pi,j+k−1) have been processed.
Step 5: Output n encrypted shared images C(t), t=1, 2, , n.