Coding Challenge for MI5
21–30 of 43 posts
Re: Coding Challenge for MI5
#22Re: Coding Challenge for MI5
#23Example: Take the PNG, convert it to another lossless format. Then convert that lossless format back to PNG.
Different file size, right? OK, the comment accounts for about 120 bytes.. but what about the rest? Why is it that much bigger?
"As I read, numbers I see. 'Twould be a great shame not to count this art among the great texts of our time" - count this art among the great texts... it's a one time pad, isn't it.
Re: Coding Challenge for MI5
#241. Open PNG in text editor, see comment: As I read, numbers I see. 'Twould be a shame not to count this art among the great texts of our time 2. Threshold so some of the pixels are black and others are white. Save as ASCII PBM. 3. Strip the PBM header lines and remove newlines so that it's just 0's and 1's. 4. Now feed it through this program: #include main() { int c, l=0, n=1; while(EOF != (c=getchar())) { if(c == l…
Re: Coding Challenge for MI5
#25Re: Coding Challenge for MI5
#261. Open PNG in text editor, see comment: As I read, numbers I see. 'Twould be a shame not to count this art among the great texts of our time 2. Threshold so some of the pixels are black and others are white. Save as ASCII PBM. 3. Strip the PBM header lines and remove newlines so that it's just 0's and 1's. 4. Now feed it through this program: #include main() { int c, l=0, n=1; while(EOF != (c=getchar())) { if(c == l…
Huh. So who benefits from you posting the solution here?
Re: Coding Challenge for MI5
#27Thought they'd make this challenge more challenging but I reckon anyone who does solve this is pretty smart and worth hiring for them. Remember its government so they aren't getting or even looking for the best of the best... they don't pay enough for the best.
Re: Coding Challenge for MI5
#28OK, so, the obvious "congratulations" messages aside, what's really in that file? Example: Take the PNG, convert it to another lossless format. Then convert that lossless format back to PNG. Different file size, right? OK, the comment accounts for about 120 bytes.. but what about the rest? Why is it that much bigger? "As I read, numbers I see. 'Twould be a great shame not to count this art among the great texts of ou…
Edit: You're right though. Using imagemagick to clone it like so:
convert puzzle.png puzzle2.png
results in an image that's at least 40% smaller. It might just be better compression, but there might be another layer of steganography going on.