Decoding a message hidden in a picture (C++);
Go to solution
Solved by Mr_KoKa,
First what i came up with is that you don't clear character so if it was 00001111 before at then you will do 00001111 | 0 it wont turn into 00001110
second thing, you add character to message after loop through whole image, I think you should do message += character after you gather all 8 bits (where you check if its is null bit would be appropriate).
I still don't know if you do all other bit move correctly, but those are the main issues, but I may be wrong - i just guess, you can correct me if I'm wrong.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now