Decoding ROT13-Encoded Strings

Decoding ROT13-Encoded Strings

My first cryptographic practice challenge in picoGym involved decoding a string encoded with the ROT13 cypher. A cypher which basically flips or rotates a letter from the first 13 letters of the alphabet to the letter aligned with the last 13 letters of the alphabet, or vice versa.

So, I wrote a Python script which decodes that encoded string—and which becomes the actual CTF challenge flag for the solution. I basically duplicated the letter flip in order to handle both uppercase and lowercase letters separately.

Note: Python's string module has a maketrans method which can be used to decode ROT13-encoded strings.

To view or add a comment, sign in

More articles by Nicholas T

  • PicoGym GET aHEAD Practice Challenge

    I solved the picoCTF/picoGym GET aHEAD challenge. The problem involved the HTTP methods GET, POST and HEAD, since HEAD…

  • 'Stonks' Format String Attack

    I solved the picoGym Stonks practice challenge which featured binary exploitation of code written in C in order to…

  • Convert Port Numbers to picoCTF Key

    I solved picoCTF's Nice netcat..

  • Translated Pictograms to picoCTF Key

    I solved the picoGym challenge titled Transformation, which involved the translation of encoded Chinese pictograms to a…

  • Found Key Hidden in JPEG File

    Today, solved the picoGym ethical hacking challenge titled Information, which challenged users to find a picoCTF key…

  • I Broke Pi-Hole

    As a way to gain more experience with cybersecurity software, I installed Pi-hole in my desktop computer. Pi-hole is a…

  • First CTF Flag Submission

    Tonight, my first flag was submitted to Carnegie Mellon University's picoGym Practice Challenges—a challenge titled…

Explore content categories