This year's New Year's game has come to an end. Thank you all for participating, and once again, Happy New Year to everyone.
Game Analysis
First, here is the puzzle-solving process for this game.
Thanks to @电脑星人 for the very detailed analysis. I had originally written some of the main puzzle-solving steps in advance, but what they wrote is much better than mine, so I'll just put the link to the article here. Students who want to know the detailed puzzle-solving process can check it out 😂.
Some Data
This year's game began on January 20th and lasted for a total of 12 days. Under the rules, passwords were submitted 49 times, and a total of 5 students received red envelopes.
On January 21st at 13:23, the puzzle was first successfully cracked by @FantasyLand の 暗梦.
In addition, one student used a script to iterate through submitting answers, submitting a total of 540 answers. Because we had set QPS limits beforehand and detected the activity fairly quickly, we only temporarily restricted that student's IP.
Afterword
Why is the steganography information in BGR order instead of RGB order?
This was indeed my oversight >﹏<, because the steganography script (LSB-Steganography) uses OpenCV, and OpenCV reads images in BGR format by default, so the hidden information is naturally in BGR order.
If you want it to be in RGB order, you need to modify the steganography script as follows:
def main():
args = docopt.docopt(__doc__, version=\"0.2\")
in_f = args[\"--in\"]
out_f = args[\"--out\"]
in_img = cv2.cvtColor(cv2.imread(in_f), cv2.COLOR_BGR2RGB) # 将 BGR 格式转为 RGB 格式。
steg = LSBSteg(in_img)
lossy_formats = [\"jpeg\", \"jpg\"]
if args['encode']:
# Handling lossy format
out_f, out_ext = out_f.split(\".\")
if out_ext in lossy_formats:
out_f = out_f + \".png\"
print(\"Output file changed to \", out_f)
data = open(args[\"--file\"], \"rb\").read()
res = cv2.cvtColor(steg.encode_binary(data), cv2.COLOR_RGB2BGR) # 将 RGB 格式转为 BGR 格式,不然图片会反色。
cv2.imwrite(out_f+'.png', res)
elif args[\"decode\"]:
...
This way, the steganography information in the generated image will be in RGB order.

Steganography image in RGB order