| Algorithm 2: Data Embedding |
| Input: Sharing images C(t), , Data S(t) |
| Output: Marked sharing images C′(t) |
| Step 1: For a pixel C(t)i,j of Sharing images C(t), the message is taken from the secret message S(t) and embedded in the B part of pixel C(t)i,j. |
| Step 2: Repeat Step 1 until all the B parts of C(t)i,j are embedded in the secret message. |
| Step 3: The output of the embedded shared image C′(t). |