[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


  1. 由题意得,该密文为凯撒密码。
  • 凯撒密码
    凯撒密码
  1. 由于不知道移动了多少位 所以可以使用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;
}
  1. Get flag
    可以看到一句明显的英文

注:每次刷新题目后所给的凯撒密码都不同 所以所得flag也将会不同

猜你喜欢

转载自www.cnblogs.com/xiaomulei/p/10113966.html