Purpose: Solve the discrete logarithm in when the group order factors into small primes . It is what makes βsmooth-orderβ groups cryptographically worthless.
Algorithm
Let .
- For each prime power :
- Reduce to a subgroup of order by raising to the power :
- Solve digit by digit in base : write and recover each with one discrete log in the subgroup of order (via baby-step giant-step or Pollardβs kangaroo, ).
- Reduce to a subgroup of order by raising to the power :
- Combine the residues with the Chinese Remainder Theorem.
Complexity
- If every is small (the group order is smooth), this is essentially polynomial β the discrete log is easy.
- If has one huge prime factor, Pohlig-Hellman degenerates to , i.e. no better than generic square-root attacks.
Why It Works
The group of exponents decomposes by CRT as . Raising to projects onto the -th factor, killing every other component. Within a -power subgroup, the base- digit extraction works because raising to isolates the least significant digit, then that digit is stripped off and the process repeats. CRT reassembles the pieces. β
Security implication
This is the reason cryptographic groups are always chosen with or for a large prime . A βsafe primeβ is safe precisely because is not smooth. Pohlig-Hellman is the concrete attack that rules out everything else.
Comparison of discrete log methods
| Method | Time | Needs |
|---|---|---|
| Brute force | nothing | |
| Baby-step giant-step | time and space | nothing |
| Pollardβs kangaroo / rho | time, space | nothing |
| Pohlig-Hellman | smooth group order | |
| Index calculus | sub-exponential | specifically (not elliptic curves) |
Variants / Use Cases
- Discrete Logarithm β the topic page, with baby-step giant-step code
- Primitive roots β finding one requires the factorisation of , the same input Pohlig-Hellman needs
- Discrete root β solving reduces to a discrete log plus a linear congruence
- Elliptic curve cryptography β the same attack applies to the curve group order, which is why curve orders are published with their factorisation