this post was submitted on 15 Nov 2023
1 points (100.0% liked)
Side Project
29 readers
1 users here now
A community for sharing and receiving constructive feedback on side projects.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
ok, this is steganography
I'm not good in python, but do you change whole color of some pixels?
if yes, then picture can look different, then right way is to hide data in less significant bits
and data can be encoded and then can be placed to image
So the way that I have it setup is that it uses this RGBA value (0, 225, x, 0). The first 0 and 225 signifies that it is an encoded value, the x is the index of the character inside the keyboard list that maps to a key, and 0 is the alpha value to make the pixel completely transparent. The reason why I say that it will look the same is that since all the changed values are transparent and they are all on the y-axis (only the first pixel of every line is encoded). This will make the image look like it was cropped one pixel on the left, but they are just transparent so the dimensions of the actual image stay the same. Can you give some suggestions on how to find the less significant bit? Thanks!
I found correct name - least significant bit
so RGB is 255, 255, 255, each number is 8 bits, if you change lowest bit - this means that color is changed, for example, from 255,255,255 to 255,255,254 (not visible for eye), but will store 1 bit of data