WeChall_Training: Crypto - Caesar I (Crypto, Training)
Posted 冷暖知不知
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WeChall_Training: Crypto - Caesar I (Crypto, Training)相关的知识,希望对你有一定的参考价值。
As on most challenge sites, there are some beginner cryptos, and often you get started with the good old caesar cipher.
I welcome you to the WeChall style of these training challenges :)
Enjoy!
I welcome you to the WeChall style of these training challenges :)
Enjoy!
VJG SWKEM DTQYP HQZ LWORU QXGT VJG NCBA FQI QH ECGUCT CPF AQWT WPKSWG UQNWVKQP KU TRNRHNKFUHKG
解题:
凯撒密码,枚举25次位移。
找到正确的句子。
a = ‘VJG SWKEM DTQYP HQZ LWORU QXGT VJG NCBA FQI QH ECGUCT CPF AQWT WPKSWG UQNWVKQP KU TRNRHNKFUHKG‘ for i in range(1,26): ans = [] for each in a: if each == ‘ ‘: ans.append(‘ ‘) else: temp = ord(each)+i if temp > ord(‘Z‘): temp -= 26 temp = chr(temp) ans.append(temp) for each in ans: print(each,end = ‘‘) print(‘‘)
以上是关于WeChall_Training: Crypto - Caesar I (Crypto, Training)的主要内容,如果未能解决你的问题,请参考以下文章
WeChall_Training: ASCII (Training, Encoding)
WeChall_Training: Encodings I (Training, Encoding)
WeChall_Training: Programming 1 (Training, Coding)