Execute the following steps to hide a secret message inside the Lena image using LSB data hiding and use (non-blind) steganalysis to detect the secret message:
- Read the (cover) image and hide a long message (by concatenating a message 10 times) inside the image. Save the stego image:
cover = Image.open('images/lena.png') stego = lsb.hide("images/lena.png", 10*"Python Image Processing \ Cookbook - LSB data hiding with Stegano") stego.save("images/lena-secret.png")
- Print the message hidden inside the stego image:
print(lsb.reveal("images/lena-secret.png"))
- Do parity steganalysis and extract the parity encoded cover and stego images. Then, use statistical steganalysis to retrieve the common cover and stego images using t ...