Challenges
Irreversible MOD
Cryptography
Easy
Solves: 182
Irreversible MOD
Points
20
Special encryption: E(x) = (x + a)^b mod 26
Rules: Letters are indexed A=0 ... Z=25. Calculation for each letter:
Note: the ^ symbol here is used to mean raising to a power (exponentiation), NOT XOR! That is, b^3 is "b to the 3rd power" (for example, b ** 3 in Python).
y = ( (x + a) ^ b ) mod 26, then the letter at index y is taken.
Task: Encrypt the following text with the given key.
Plaintext: HELLO WORLD
Key: a = 5, b = 3
Instruction: Spaces and punctuation must be preserved. Use uppercase letters.
To submit a flag, log in.