Rating:

## Rail Fence Cipher (Crypto, 50p)

Decrypt and find the flag.

AaY--rpyfneJBeaaX0n-,ZZcs-uXeeSVJ-sh2tioaZ}slrg,-ciE-anfGt.-eCIyss-TzprttFliora{GcouhQIadctm0ltt-FYluuezTyorZ-

###ENG
[PL](#pl-version)

The name of this task was everything we needed to know to solve it. Using
[this site](http://rumkin.com/tools/cipher/railfence.php) and trying all the possible keys (21 was the correct one), we
get the correct plaintext:
```
A-fence-is-a-structure-that-encloses-an-area,-SharifCTF{QmFzZTY0IGlzIGEgZ2VuZXJpYyB0ZXJt},-typically-outdoors.
```

###PL version

Nazwa tego zadania wystarczyła do zgadnięcia, o jaki szyfr tu chodzi. Używając
[tej strony](http://rumkin.com/tools/cipher/railfence.php) i próbując wszystkich możliwych kluczy (21 to ten prawdziwy),
dostajemy poprawny tekst:
```
A-fence-is-a-structure-that-encloses-an-area,-SharifCTF{QmFzZTY0IGlzIGEgZ2VuZXJpYyB0ZXJt},-typically-outdoors.
```

Original writeup (https://github.com/p4-team/ctf/tree/master/2016-02-05-sharif/crypto_50_railfence).