liveBook · Manning

Bit security

As explained in Real-World Cryptography

Bit security is a cryptographic security level expressed as the base-two logarithm of the estimated work required for the best known attack.

Bit security expresses how much work the best known attack requires, using a base-two scale. An algorithm with 128-bit security demands roughly 2^128 operations to break. section 4.2.1

Use bit security to compare algorithms and understand practical tradeoffs:

  • A key’s length does not automatically equal its security level. AES-128 provides 128-bit security, but another 128-bit-key algorithm could provide less. section 4.2.1
  • Hash functions must account for their easiest attack. A 256-bit output supports about 128-bit collision security because of the birthday bound. section 2.3
  • Future quantum attacks change parameter choices: Grover’s algorithm affects symmetric algorithms with 128-bit security, while 256-bit parameters can resist that threat. section 14.5

Why 256-bit hashes target 128-bit collision security

A hash with 256-bit outputs has 2^256 possible digests, but random collisions become likely after roughly 2^128 generated digests. The birthday bound cuts the collision-search effort in half on the exponent scale. section 2.3

How Real-World Cryptography covers it

How deep it goes
Explains attack-work estimates, brute-force upper bounds, birthday-bound effects, and quantum reductions in symmetric security.
Examples
Uses AES-128, 256-bit hash outputs, birthday collisions, and quantum search to illustrate security levels.
What you can do after
Evaluate cryptographic choices by comparing estimated attack work, collision bounds, key lengths, and quantum effects.
How it connects
Connects bit security to hash functions, AES, the birthday bound, Grover’s algorithm, and post-quantum cryptography.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.