My code based on LSB (the least significant bit)
The script consists mainly of three functions to hide the message in the image:
The function obtbytim(img): in this function obtains the three colors of each pixel in the image.
The function enviobyte (byte1, img): in this function writes the new values of the colors.
The function esconder(imagen, escon): loading the hidden message, is converted to bits and then use the function enviobyte () to write new values in the image.
The first for from the function esconder() serves to determine the length of the message and the second to go in getting the message bit
Aplican los mismos comentarios que acabo de escribir para Abraham. 9 pts.
ResponderEliminar