[WeChall] Training: Crypto - Caesar I (Crypto, Training)
Posted xiaomulei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[WeChall] Training: Crypto - Caesar I (Crypto, Training)相关的知识,希望对你有一定的参考价值。
Training: Crypto - Caesar I (Crypto, Training)
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!
KYV HLZTB SIFNE WFO ALDGJ FMVI KYV CRQP UFX FW TRVJRI REU PFLI LEZHLV JFCLKZFE ZJ GSUESTWZREVX
- 由题意得,该密文为凯撒密码。
- 凯撒密码
- 由于不知道移动了多少位 所以可以使用C++编写一段小程序来看看26种移动后情况
- C++代码段
#include <iostream>
using namespace std;
int main()
{
char str[]="KYV HLZTB SIFNE WFO ALDGJ FMVI KYV CRQP UFX FW TRVJRI REU PFLI LEZHLV JFCLKZFE ZJ GSUESTWZREVX";
for(int j=0;j<26;j++)
{
for(int i=0;i<strlen(str);i++)
{
cout<<(char)((str[i]-‘A‘+j)%26+‘A‘);
}
cout<<endl;
}
return 0;
}
- Get flag
可以看到一句明显的英文
注:每次刷新题目后所给的凯撒密码都不同 所以所得flag也将会不同
以上是关于[WeChall] Training: Crypto - Caesar I (Crypto, Training)的主要内容,如果未能解决你的问题,请参考以下文章
WeChall_Training: Get Sourced (Training)
[WeChall] Training: MySQL I (MySQL, Exploit, Training)
[WeChall] Training: Crypto - Caesar I (Crypto, Training)
WeChall_Training: ASCII (Training, Encoding)