Skip to content

Instantly share code, notes, and snippets.

@suttree
Last active March 16, 2023 11:00
Show Gist options
  • Save suttree/8ccff8943cf309e4fd76b864d4a7dcf6 to your computer and use it in GitHub Desktop.
Save suttree/8ccff8943cf309e4fd76b864d4a7dcf6 to your computer and use it in GitHub Desktop.
Smart Photos - steganograpy, identity, and pfps
from PIL import Image
from stegano import lsb
# To store a message
secret = lsb.hide("./uodh.jpg", "http://tinyurl.com/5j4nng")
secret.save("./uodh.png")
# To read a message
clear_message = lsb.reveal("./uodh.png")
print(clear_message)
@suttree
Copy link
Author

suttree commented Mar 16, 2023

Updated to use stegano.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment