Challenges
Affin 1
Cryptography
Easy
Solves: 253
Affin 1
Points
10
Affine cipher: Encryption
Rules: Each letter is indexed A=0, B=1, ..., Z=25. Affine cipher formula: E(x) = (a * x + b) mod 26. Spaces and punctuation remain unchanged.
Task: Encrypt the following text with the given key (a=5, b=8).
Plaintext: ATTACK AT DAWN
Key: a = 5, b = 8
Instruction: Use uppercase for all letters. Result — only letters and spaces.
To submit a flag, log in.