Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixelated image when decrypting the encrypted image #1

Open
PranavVyas20 opened this issue Sep 20, 2021 · 1 comment
Open

Pixelated image when decrypting the encrypted image #1

PranavVyas20 opened this issue Sep 20, 2021 · 1 comment

Comments

@PranavVyas20
Copy link

screenshot attatched for refrence:
errorAb

@arnavbansal25
Copy link
Owner

Sorry for late reply, I haven't been able to maintain this repository much....will surely be regular from now on.
I understand your concern properly, there is definitely some information loss. This is not due to encryption but because of steganography.
This project is only to demonstrate the power we have over individual pixels in an image and how we can manipulate them to generate an entirely new image. The project showcases a way to share images over the internet without any security concerns. That way is Encryption + Stenography + Encryption.
Now, that information loss you see can be prevented by using one more image. I have only used one two images in steganography (original image + cover image), from steganographing these two we get one single image, i.e.
original image (MSB + LSB) + cover image (MSB + LSB) = result (MSB of cover image + MSB of original image)
Note that, in the resultant image, MSB of original image are actually the LSB of of resultant image.
From this, one can see that LSB of original image are lost (this is what you have attached).
We can prevent this information loss by using one more image while steganographing,
original image (MSB + LSB) + cover image (MSB + LSB) = result1 (MSB of cover image + MSB of original image)
= result2 (LSB of cover image + LSB of original image)
Note that, in result2, LSB of cover image are actually the MSB of result2.

I hope this was helpful, I will try to update the code soon to prevent this information loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants