Bit order is usually something programmers don't need to deal with (it's usually up to hardware engineers).
Byte order, on the other hand, is the same kind of problem, and is an essential part of encoding/decoding byte streams.
In actual programming there is no "left" or "right", there's just "first" and "last", because byte streams are ordered but have no concept of direction.
Actually, the concept of first or last only makes sense in the context of a sequenced stream, like a serial communication protocol.
The important thing to note is that there is a least significant bit and a most significant bit. Base-two numbers are weighted, with the LSB having a weight of 0 and the MSB having a weight of N-1.
Seeing the row full of Aquas was a good giveaway that the MSB was on the right and that Aqua is 0, assuming this was ASCII. Also, Aqua is useless, so I guess giving her a value of 0 makes sense.
Also, Aqua is useless, so I guess giving her a value of 0 makes sense.
I originally wanted to use happy megumin and sad megumin, then I realized what a nice chance this was to keep beating the dead horse and make the good old "aqua is useless" joke
Since we have 2 icons, this is probably binary. The consistency of Aqua appearing in the rightmost column tells us that (if this is valid ASCII, which it probably is) Aqua is 0 and Megumin is 1 and that the rightmost bits are the most significant.
By decoding the image, we thus get the following binary numbers.
In hexadecimal, that corresponds to 7061796C6F6164 which is payload in ASCII.
Something's also hiding in the alpha channel, but it doesn't match any other format the OP's been known to use in past puzzles. It is not valid UTF-8, UTF-16 or UTF-32 (in either bit order), and the file command only identifies it as data.
I've managed to decode the alpha channel. The first 32 bits is the length, as usual. The bytes are in the correct order, but the bits are reversed, with LSB on the left and MSB on the right (the river of 0s should have been a hint because ASCII is 7-bit). Decoding that produces the Lua source code.
"Correct order" being big endian or little endian?
I assume that by "LSB on the left and MSB on the right" you mean that the first bit is the LSB and the last bit is the MSB? Applying that bit & byte order, I get a length greater than the amount of data the image could store, so that can't be correct.
In general, looking at the data I'm decoding, I've got both bytes with a set first bit and bytes with a set last bit. In what order are you interpreting the alpha channel (I'm doing left-to-right top-to-bottom)?
Left to right, top to bottom. The length is a big endian 32-bit integer. For each octet, the first bit is the LSB and the last bit is the MSB, so you have to reverse the octet. Each octet forms a byte, and the bytes are read from left to right. In other words, read the bytes from left to right, but read the bits of each byte from right to left. Your length should be 1015 bytes.
Reddit compresses images, right? Possible its mangled whatever is meant to be there. OP, can you confirm that any hidden data is actually present in the image as uploaded?
I don't think it's the final answer. It probably means that the answer is in the image payload (the main content of the image, other than the header, metadata, etc.)
28
u/DarkWiiPlayer Dec 08 '19
btw. I've also included the source code, in case you're curious ;)
15
u/imthecapedbaldy Dec 08 '19
thought it was binary and that aqua = 0 and megumin = 1.
6ö&
230
u/[deleted] Dec 09 '19
This is text, encoded in ascii, converted to binary, read from MSB to the right to LSB on the left.
Aqua is 0, Megumin is 1. The bitstream is:
which decoded to ASCII gives
16
u/ThePyroEagle λ Dec 09 '19
Since we have 2 icons, this is probably binary. The consistency of Aqua appearing in the rightmost column tells us that (if this is valid ASCII, which it probably is) Aqua is 0 and Megumin is 1 and that the rightmost bits are the most significant.
By decoding the image, we thus get the following binary numbers.
In hexadecimal, that corresponds to
7061796C6F6164which ispayloadin ASCII.Something's also hiding in the alpha channel, but it doesn't match any other format the OP's been known to use in past puzzles. It is not valid UTF-8, UTF-16 or UTF-32 (in either bit order), and the
filecommand only identifies it asdata.16
u/imthecapedbaldy Dec 09 '19
read it like manga.
answer is payload
degenerate weebs.
explanation:
binary
7
u/PaiMan2710 Dec 09 '19
manga reading order, nice.
4
u/electric_raven913 Dec 09 '19
What is payload supposed to mean? 'cuz I don't get it.