rail-fence method with 3 rails
The following cipher text is obtained using a rail-fence method with 3 rails. What is the plaintext?DHLFYRIYITEELEOEOAEHRTGWBRUTS
首先,它总共是三条轨道,可以先设第一条轨道的长度为x,那么第三条轨道的长度就是x-1,第二条轨道的长度就是2(x-1)
因为这个密文长为29
所以x+x-1+2(x-1)=29
x=8
ROW1: DHLFYRIY
ROW2:ITEELEOEOAEHRT
ROW3:GWBRUTS
dig the well before you are thirsty