Aller au contenu

Custom encryption

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

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

Énoncé

Can you get sense of this code file and write the function that will decode the given encrypted file content.

Find the encrypted file here flag_info and code file might be good to analyze and get the flag.

Résolution

Méthode : diffie-hellman + xor + division.

Le script fait un échange Diffie-Hellman (p=97, g=31, a, b) puis encrypt multiplie chaque ord par key*311. On retrouve le semi-chiffre par division entiere, puis on inverse le dynamic_xor_encrypt (XOR avec text_key='trudeau' + reverse).

Flag

academy{...}