Challenges
Key space and brute-force
Cryptography
Easy
AES basics
Solves: 12
Key space and brute-force
Author: CyberSamSU
Points
15
The simplest way to break a cipher is to try all keys sequentially (brute-force). What protects AES is not complex mathematics, but the large number of keys.
| Algorithm | Key | Number of keys | Approximately |
|---|---|---|---|
DES | 56 bit | 2^56 | ~7.2 * 10^16 |
3DES (2 kalit) | 112 bit | 2^112 | ~5.2 * 10^33 |
AES-128 | 128 bit | 2^128 | ~3.4 * 10^38 |
AES-256 | 256 bit | 2^256 | ~1.2 * 10^77 |
Let's assume that the most powerful supercomputer in the world can try 2^40 AES-128 keys per second (this is ~1.1 trillion keys/second — a very bold estimate).
Question: how many seconds will it take to check all 2^128 keys? Write the answer in the form 2^X and put only the number X in the flag:
BAYROQ{A3S_kalit_fazosi_2_pow_<X>}
Note: when dividing powers, the exponents are subtracted — 2^a / 2^b = 2^(a-b). For comparison: the age of the universe is approximately 2^59 seconds.
To submit a flag, log in.