BMP pixels
It was discovered that the rasm.bmp file sent by the graphic designer contains hidden information. The image is saved in 24-bit uncompressed BMP format, and the least significant bit (LSB) method was used for hiding.
The hiding order is based on the internal structure of the BMP file: pixels are read sequentially in their storage order in the file (from the bottom row to the top, from left to right in each row). In BMP format, 24-bit pixels are stored as BGR (blue, green, red), which means the first byte of each pixel belongs to the blue channel.
The LSB bit of the blue channel (bayt & 1) of each pixel is extracted. The first 32 bits are a 4-byte length in big-endian order (how many bytes the flag is), and the subsequent bits are the bytes of the flag of that length (each byte is 8 bits, MSB-first). Flag format: BAYROQ{...}.