<WeChall>Crypto - Caesar I

Crypto - Caesar I
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!
QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD LC ZXBPXO XKA VLRO RKFNRB PLIRQFLK FP ZMPMMACYLOIM

13

a = 'GUR DHVPX OEBJA SBK WHZCF BIRE GUR YNML QBT BS PNRFNE NAQ LBHE HAVDHR FBYHGVBA VF PCFCCQSOBEYC' 
print(ord('A'))
print(ord('Z'))


result=[]
for x in list(a):
    if x !=' ':
        i=ord(x)+13
        if i>90:
            i=i-90+64
            result.append(chr(i))
        else:
            result.append(chr(i))
    else:
        result.append(' ')
print(''.join(result))
posted @ 2022-08-30 16:35  rocksolid  阅读(62)  评论(0编辑  收藏  举报