> For the complete documentation index, see [llms.txt](https://simon-6.gitbook.io/simoncyber/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simon-6.gitbook.io/simoncyber/ctf-writeups/quickstart/cryptography/fencing-medium.md).

# Fencing (Medium)

This one was a bit tricky if I didn't read the title . At first, I was a little confused because I thought the keys "3" and "5" was apart of a larger problem, something like utilizing asymmetric encryption.&#x20;

<figure><img src="/files/PfWpoe5yNDesbkLBXREI" alt=""><figcaption></figcaption></figure>

However, reading the title "Fencing", I searched "Fencing" up and found out it was another name for a fairly simple cipher called "Rail Fence".&#x20;

From there, it was pretty obvious in what to do, as I (again) loaded up CyberChef and put "3" as the key for the first problem, and "5" for the second.&#x20;

<figure><img src="/files/3RLPXLsCggVBQzlWztT0" alt=""><figcaption></figcaption></figure>
