Fun Facts With Encryption Keys: What Takes 183,587 Million Million Million Million Million Million Million Million Million Years to Crack?
I once heard from a company that was advised that they should migrate from 128-bit AES to 256-bit. The advisor said that 128 bits could be easily cracked. As will we find, it is certainly possible to crack it, but it will take 539 million million million years to do so (on average) for a fast encryption cracker.
The basics of keys
With symmetric key encryption (such as with AES encryption), an encryption key is used to encrypt plaintext into ciphertext, and decrypt ciphertext to plaintext. The more keys we have, the longer it will take, on average, to find the correct key. For example, if we have a 4-bit value, we will have 2⁴ keys (16).
Overall, the number of encryption keys will be 2^n. If we try M keys per second, then the average time to crack by brute force will be 2^n/(2.M) seconds. If we have a 36-bit key, we then have 3,668,719,476,736 (2³⁶ keys), and if we can try 10 billion keys (10x10⁹) keys per second, it will take 3.44 seconds on average to find the correct key. Here is a simple calculator for the times to crack various sizes of keys using 10 billion keys tried per second: