Challenges
Hiding in the alpha channel
Steganography
Medium
Alpha channel
Solves: 5
Hiding in the alpha channel
Author: CyberSamSU
Points
38
PNG images can have a fourth channel — alpha (transparency). The value 255 is completely opaque (visible), 0 is completely transparent. If alpha is 254 or 255, both appear almost completely opaque to the eye — it is impossible to notice the difference.
In the attached shaffof.png file, the R, G, B channels are a normal background, but the least significant bit of the alpha channel (254 or 255) stores the message: first the 32-bit length, then the message, in pixel order.
Pillow: img.convert('RGBA').getdata() — each pixel will be a (r,g,b,a) four-tuple, you only need a.
Attached files
shaffof.png
Log in to download
SHA-256 checksums
shaffof.png: 030c2600c766587b725a42420293be4a2d0c95dbe0343a894f94089879a7cb34
To submit a flag, log in.