Skip to main content
Challenges Key derivation from password
Cryptography Easy Key generation Solves: 5

Key derivation from password

Author: CyberSamSU
Points
22

AES-128 requires exactly a 16-byte key. A human, however, cannot remember a 16-byte random value — they write a password. Therefore, many programs generate a key from a password using a hash function.

The old (and today not recommended) method: kalit = MD5(parol). MD5 gives exactly 16 bytes, so it "fits" AES-128. Its vulnerability is that MD5 is calculated very quickly — an attacker can try billions of passwords per second. Today's correct solution is PBKDF2, scrypt, or Argon2 (they are intentionally slow).

The message is encrypted with AES-128-ECB, and the key is the MD5 hash of the samarqand2026 password (raw bytes, not a hex string!).

Ciphertext (hex):

83e638d387d38b6b2943feeb6b80489da9a3b80a4ce847dad8be49715799d357

Note: hashlib.md5(...).digest() is 16 bytes, and .hexdigest() is a 32-character string. We need the first one.

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −2 pts Log in
Hint 2 −4 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 06.11.2026
4. Doston Allayarov 12.11.2026
5. MOHAMMED WALED MOSTAFA ELASHMAWY 28.11.2026