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
- 由題意得幅狮,該密文為凱撒密碼椎侠。
-
凱撒密碼
凱撒密碼
- 由于不知道移動(dòng)了多少位 所以可以使用C++編寫一段小程序來看看26種移動(dòng)后情況
- 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也將會(huì)不同