[WeChall] Training: Crypto - Caesar I (Crypto, Training)
来源:互联网 发布:windows开机音效 编辑:程序博客网 时间:2024/06/10 15:40
Question:
key.txt is the string to Decode.and result s :
ignore the char 'w', we can see the words:
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!
I welcome you to the WeChall style of these training challenges :)
Enjoy!
IWT FJXRZ QGDLC UDM YJBEH DKTG IWT APON SDV DU RPTHPG PCS NDJG JCXFJT HDAJIXDC XH CTGHPCDRCVDG
Solution:
It's a simply example of caesar cipher, When encrypting, a person looks up each letter of the message in the "plain" line and writes down the corresponding letter in the "cipher" line. Deciphering is done in reverse, with a right shift of 3. I decode this By python:
#!/usr/bin/env python f = file('key.txt','r+')s = f.read()l = []for i in s: l.append(i)leng = len(l)print 'l:'%lfor i in range(leng):l[i] = ord(l[i])new = []for i in l: new.append(chr(i+3))cryptos = ""for i in new: cryptos += iprint cryptos.lower()
key.txt is the string to Decode.and result s :
thewquickwbrownwfoxwjumpswoverwthewlazywdogwofwcaesarwandwyourwuniquewsolutionwiswnersanocngor
ignore the char 'w', we can see the words:
the quick brown fox jumps over the lazy dog of caesar and your unique solution is nersanocngor
submit the string "nersanocngor", SUCCESS!
0 0
- [WeChall] Training: Crypto - Caesar I (Crypto, Training)
- WeChall Training: Crypto - Caesar I
- WeChall Training: Crypto - Caesar I
- WeChall Training: Stegano I
- WeChall Training: Stegano I
- [WeChall] Training: Stegano I
- XMAN2017选拔赛Crypto-Caesar
- Wechall刷题(三)Crypto
- [WeChall] Training: ASCII (Training, Encoding)
- WeChall Training: Get Sourced
- WeChall Training: WWW-Robots
- WeChall Training: ASCII
- WeChall Training: Get Sourced
- WeChall Training: WWW-Robots
- WeChall Training: ASCII
- [Wechall]Training:MySQL
- Wechall刷题(二) Training: MySQL I 总结
- Crypto++
- K-均值聚类分析
- cut工具的使用
- Hduoj【树状数组】【-.-】
- 中小型企业用户存储应用典型:集美大学选SAN记
- Vim实用技巧使用手册
- [WeChall] Training: Crypto - Caesar I (Crypto, Training)
- HDU 1559 最大子矩阵
- Ormlite中使用Collection<Object>和Gson使用List<Object>
- Java核心类库——IO原理和用法
- 202 - Repeating Decimals
- 第11周 项目5-当年第几天
- 移动端多人视频通话软件开发(四) -- 原型开发阶段
- 第二章:ERP价格的谈判
- Linux内核引导简析