江湖解谜总结三
玉虚宫练武
大通灵师
"zl anzr vf ovonv. guvf vf gur zrffntr ba orunys bs gur grfgref. nyy bs bhe zrffntrf ner pnrfne-fuvsgrq, qrfcvgr fbzr znl or gura pvcurerq hfvat ivtrarer. v yvxr cevzr ahzoref, naq zl vq vf bar bs gurz. fnqyl, zl cny nakvnb'f vf abg."
w wacz hz hmo aj nabsywjz ypq ai aj xsqccalz qthzzf. qmf aonl, gpf ymewsc lzmsp sfy hsw kgoncwm sluz gcgwk wwysjt cc kwhoazgms. mml d tzjyzh hzaxv tk ocwnz. xpb qsuo hhg, lcfpw ga hsw lzoxesosd khzov xjzbnz jzowdq rswd. zjkpnwm, hswq ycy'l ddyp egmgp ugys. dhwvytfy jt xgjns, ezw hcckw gcgwj ispvk oc fkw ovp ughdflwm rfjaiu ewko gzdnz, pfl fpamwj awgw vjsdf'l.
c ug nby lcxxfy aoymmyl, uhx sym, c mjyue zlyhwb. c ug lyuffs mfijjsqcnb gs mjlyuxmbyyn. nbun'm qbs c ume nby mjlyuxmbyyn guhuayl ni mupynbcm gymmuay. cm cn ylsoy il nbun xoxy qcnb cx hogvyl nqi? c'g hinmoly. mjyuecha iz cxm, gs cx cm mguffyl nbuh nby mfuweyl, uhx nbyvlucffy yhnbomcumn bum u alyunyl cx nbuh vinb. qyff, nby yhnbomcumnm ulychnylymncha. ylsoy fipym u wcjbyl qcnb xin, von uhrcui xiymh'n.
eky, z'qy jhqydu qlus tkzyk uj dkcuhe sydg ud vhqdsu, s'uij fekhgkey deki fqhbedi jhui ryud vhqdsqyi. kdu qdusteju qckiqdju: xyuh, dejhu fhewhqccukh uj sxudxk iedj iehjyi tyduh, uj ybi edj jeki tukn tusytu tu cetyvyuh sxqskd tu bukhi junjui t'kd cedjqdj ugkylqbudj q bukh fhefhu yt fbki bu fhyn t'kdu fehjyed ceouddu tu hqcud tu bqdpxek.
def key():
return potpal[::-1]
z gh sbvk vmnamrshdl. rvrg, h bzrxy xynkkmcut knvs vzkczdh xykigo'n zj vmx oyk nkuxbkm'r cy, ftz hm oyk htfozvgd ia knz nncvx. jtl pjkm muhv on nom wghhft eghd imukmdx vcvczvzkoxzfgp. vvrmrfxy hm hp bdfyivxz jyt. rrg hh gfczq wvjk.
解题思路
遇到乱码不用慌,可以先用 https://www.quipqiup.com/ 看看能不能解出什么。果然可以得到
- my name is bibai. this is the message on behalf of the testers. all of our messages are caesar-shifted, despite some may be then ciphered using vigenere. i like prime numbers, and my id is one of them. sadly, my pal anxiao's is not.
根据这段话我们能得到题目中的文字被分成五段话,它们都是用的凯撒密码或者维吉尼亚密码加密,还有一些队友的信息。
第二段的图里是猪圈密码,猪圈密码解出来 “KEY HELLO”,再尝试用 hello 作为维吉尼亚密钥替换原文后使用凯撒解得
- i like to put my vigenere key in my favorite cipher. fun fact, our number three and the slacker each loves binary or semaphore. but I forget which is which. fun fact two, three of the teammates speak french really well. however, they don't like morse code. speaking of morse, the morse lover needs to use the computer during test solve, but number five doesn't.
第三段的文字直接使用凯撒解得
- i am the riddle guesser, and yes, i speak french. i am really sloppy with my spreadsheet. that's why i ask the spreadsheet manager to save this message. Is it eryue or that dude with id number two? i’m not sure. speaking of ids, my id is smaller than the slacker, and the braille enthusiast has a greater id than both. well, the enthusiasts are interesting. eryue loves a cipher with dot, but anxiao doesn't.
第四段先翻译图片中的旗语,得到 foreign language。而第二段里说过有队友是说法语的,果然这段文字所有的凯撒解码都不是英文,对所有的结果尝试翻译后得到只有一个正确的
- yes, I hung out with dujiu and number five in France, that's why we speak French very well. a funny story: yesterday, our programmer and chenhu went out to dinner, and they both decided to modify each of their texts by an amount equivalent to their own id plus the price of an average serving of lanzhou ramen.
第五段有个像是python的代码,[::-1]
就是将前面的字符串倒序,算是得到了 laptop,使用 laptop 当维吉尼亚密钥解码后再凯撒移位得到
- i am that programmer. well, i heard yesterday that between chenhu's id and the slacker's id, one is the multiple of the other. our user name is our family name ordered alphabetically. password is my vigenere key. all in lower case.
这道题最下面开始有个登录界面,根据这五段话可以得到五个队员的名字,用户名是五个人的姓连起来,密码是laptop,输入后得到一个新的选择题,需要解出每个队员的ID,分工和加密偏好才能答对
这个就是一道逻辑题了,总结上面五段话的信息我们可以得到:
- 总共有五个队员,姓名为 anxiao,bibai,chenhu,dujiu,eryue
- 五个队员角色分别为队长(captain),划水怪(slacker),猜谜王(riddle guesser),文档管理(spreadsheet manager),程序佬(programmer)
- 五个队员喜欢的密码有猪圈,摩斯,盲文,旗语,二进制
- 第一个说话的是 bibai,bibai 的 id 是质数
- anxiao 的 id 不是质数
- 第二个说话的人喜欢猪圈密码
- id 为 3 的人和划水怪两个人喜欢的密码在旗语和二进制中
- 三个说法语的队友不喜欢摩斯密码
- 喜欢摩斯密码的人需要使用电脑解谜,id 为 5 的人不用电脑解谜
- 第三个说话的人是猜谜王,说法语
- 猜谜王的 id 比划水怪的小,喜欢盲文的人的 id 比猜谜王和划水怪都要大
- 文档管理是 eryue 或者 id 是 2
- eryue 喜欢的密码中有点,anxiao 喜欢的密码中没有点
- 第四个说话的人也说法语,另两个是 dujiu 和 id 为 5 的人。
- 程序佬和 chenhu 在加密后又凯撒移位了密码(即第二段和第四段话),且位移量都是他们的 id 加上一个固定值
- 第五个说话的人是程序佬
- chenghu 的 id 和划水怪的 id 其中一个是另一个的倍数
另外这是五段消息的加密方式,注意加密的偏移量并不等于解密用的偏移量,二者相加为 26
偏移 13 |
hello 加密后偏移 7 |
偏移 20 |
偏移 16 |
laptop 加密后偏移 6 |
最终可以解出所有的信息,这里仅给出部分结果
ID | 话 | 姓名 | 分工 | 加密偏好 |
---|---|---|---|---|
1 | 程序佬 | |||
2 | 第二段 | chenhu | ||
3 | 第三段 | |||
4 | 第四段 | |||
5 | bibai | 盲文 |