C:\CTF\GASLIGHT\DREAM1.EXE _□X

WHERE THE DREAM STARTS 1

crypto 270 solves by william_etotheipi

Challenge

This one's a classic. Can you understand the crypto from the maths?

Files given: encrypt.py, output.txt

Understanding the cipher

def encrypt(pt: str, K: int) -> str:
    pt = [ascii_lowercase.index(x) for x in pt]
    ct = [(x + K) % 26 for x in pt]
    return "".join(ascii_lowercase[x] for x in ct)

It's just a caeser shift.

Solution

You can use an online tool. In my case I have my own tool just for Caeser shifts.