Aller au contenu

basic-mod2

Writeup de Arnold-26, repris avec son autorisation. Source : cylab-academy-writeups — challenge #254, résolu le 2026-11-23. Flags tronqués.

Catégorie : Cryptography · Challenge : #254 · Résolu le : 2026-11-23

Énoncé

A new modular challenge! Download the message here.

Take each number mod 41 and find the modular inverse for the result. Then map to the following character set: 1-26 are the alphabet, 27-36 are the decimal digits, and 37 is an underscore.

Wrap your decrypted message in the academy flag format (i.e. academy{...})

Résolution

Méthode : mod 41 + inverse modulaire.

Chaque nombre mod 41, puis on prend l'inverse modulaire (pow(r,-1,41)), puis mapping : 1-26 -> A-Z, 27-36 -> chiffres, 37 -> _. L'inverse est l'étape que tout le monde oublie.

Flag

academy{...}