Timestamped Secrets¶
Writeup de Arnold-26, repris avec son autorisation. Source :
cylab-academy-writeups— challenge #722, résolu le 2026-11-23. Flags tronqués.
Catégorie : Cryptography · Challenge : #722 · Résolu le : 2026-11-23
Énoncé¶
Someone encrypted a message using AES in ECB mode but they weren’t very careful with their key. Turns out it’s derived from something as simple as the current time! Can you uncover the key and decrypt the flag? Download the encrypted message: message You may also find the encryption script helpful: code
Résolution¶
Méthode : bruteforce du timestamp.
La clé AES est sha256(str(int(time.time())))[:16] et l'énoncé donne un timestamp approximatif. En balayant les timestamps autour de la valeur indiquee, celui qui donne un clair commencant par academy{ est le bon (ici delta = 0).