| ALGORITHM 1: The embedded algorithm on the sender side |
| Input: As input, this function will take the encrypted text message prepared in section III-A and the Cover Image. |
| Output: It will print the Stego Image that has been encoded. |
| Begin |
| 1 Read the Cover Image and cipher Text Message. |
| 2 Use the Encryption Technique to secure the message, we can use (1) Caesar Cipher or (2) Vigenère cipher |
| 3 Traverse through the Image |
| 4 fori= 1 toheight |
| 5 for j= 1 towidth |
| 6 Ifmore bits are remaining to embed |
| 7 Find the Least Significant Bit of the current pixel using a hash function |
| 8 SB1= mod (((i−1) * height+j), 13) |
| 9 SB= mod (SB1,4) |
| 10 Replace the message bit with Least Significant bitSB |
| 11 Update the current pixel of output with a new value |
| 12 if the pixel value increases, replace all the right-side bits of the changed bit with zeros. and if the pixel value decreases, then replace the right bits of the changed bit with ones. |
| 13 End |
| 14 End |
| 15 End |
| 16 Calculate theMSEusing the input and output pixel values |
| 17 Calculate thePSNRusing the calculatedMSE |
| 18 Save the Stego image |
| 19 End |