Is there a way to easily identify if an image has one of this before running decode? Ideally, I want do run in every image and then show the decode button in those that have one.
Here's the decoder in javascript:
https://github.com/happylemonprogramming/gifbuddy/blob/main/static/js/steganography.js
And also in python:
https://github.com/happylemonprogramming/stegosaurus/blob/main/lsbSteganography.py
This is the relevant function for you:
"decode_text_from_url"
Let me know how it goes or if you have any feedback! 🤙
Discussion
It’ll only be PNG images for now (because other image types like jpeg compress the final image, which changes the pixels where the information is stored)
I don’t have another detection method other than attempting to decode currently, but I can try and think of something
Maybe we can add a prefix to every message such that just seeing 5-6 bytes are enough?
Or is this a common/standard way to encode from put there?