例题:攻防世界_转轮机加密
就把转轮机想象成一个老式的转的密码锁,以这题为例,这个密码锁一共有13行,每一行是26个字母,通过转动每一行可以得到不同的组合。
观察题目,给出的密钥和密文都是13个,刚好对着这个转轮机的每一行,所以,解题步骤如下:
- 先把这13行根据密钥的顺序排好,如图:
2: KPBELNACZDTRXMJQOYHGVSFUWI 3: BDMAIZVRNSJUWFHTEQGYXPLOCK 7: GWTHSPYBXIZULVKMRAFDCEONJQ 5: IHFRLABEUOTSGJVDKCPMNZQWXY 13:JZQAWSXCDERFVBGTYHNUMKILOP 12:LVNCMXZPQOWEIURYTASBKJDFHG 9: XPLTDSRFHENYVUBMCQWAOIKZGJ 1: ZWAXJGDLUBVIQHKYPNTCRMOSFE 8: NOZUTWDCVRJLXKISEFAPMYGHBQ 10:UDNAJFBOWTGVRSCZQKELMXYIHP 4: RPLNDVHGFCUKTEBSXQYIZMJWAO 11:MNBVCXZQWERTPOIUYALSKDJFHG 6: AMKGHIWPNYCJBFZDRUSLOQXVET
- 再根据每一个密文,将每一行调到正确的位置,如图:
2: NACZDTRXMJQOYHGVSFUWIKPBEL 3: FHTEQGYXPLOCKBDMAIZVRNSJUW 7: QGWTHSPYBXIZULVKMRAFDCEONJ 5: KCPMNZQWXYIHFRLABEUOTSGJVD 13:SXCDERFVBGTYHNUMKILOPJZQAW 12:EIURYTASBKJDFHGLVNCMXZPQOW 9: VUBMCQWAOIKZGJXPLTDSRFHENY 1: OSFEZWAXJGDLUBVIQHKYPNTCRM 8: QNOZUTWDCVRJLXKISEFAPMYGHB 10:OWTGVRSCZQKELMXYIHPUDNAJFB 4: FCUKTEBSXQYIZMJWAORPLNDVHG 11:NBVCXZQWERTPOIUYALSKDJFHGM 6: PNYCJBFZDRUSLOQXVETAMKGHIW
- 浏览每一行,发现第18行是有意义的,firethehole
标签:13,12,加密,转轮,一行,密码锁 From: https://www.cnblogs.com/Athena-ydy/p/17354163.html