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 .

  1. 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, ).
  2. 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

MethodTimeNeeds
Brute forcenothing
Baby-step giant-step time and spacenothing
Pollard’s kangaroo / rho time, spacenothing
Pohlig-Hellmansmooth group order
Index calculussub-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