redpwn CTF 2021 | scissor

#redpwnctf2021

#uninterested_challenge_list

crypto/scissor

BrownieInMotion

1005 solves / 102 points

I was given this string and told something about scissors.

egddagzp_ftue_rxms_iuft_rxms_radymf

import random

key = random.randint(0, 25)
alphabet = 'abcdefghijklmnopqrstuvwxyz'
shifted = alphabet[key:] + alphabet[:key]
dictionary = dict(zip(alphabet, shifted))

print(''.join([
    dictionary[c]
    if c in dictionary
    else c
    for c in input()
]))

caesar cipher