basic-mod-2 - picoCTF 2022

import string
alphabet = string.asciiuppercase + string.digits + ""
code = "104 85 69 354 344 50 149 65 187 420 77 127 385 318 133 72 206 236 206 83 342 206 370"
words = code.split(" ")
result = ""
for word in words:
    module = int(word) % 41
    for i in range (41):
        if((module * i ) % 41 == 1 ):
            result += alphabet[i-1]
            break
print(result)


You'll only receive email when they publish something new.

More from emacab98
All posts