A theoretical unlock code calculator takes the IMEI and a secret algorithm (often combined with a master key known only to the manufacturer or carrier) to generate a unique unlock code. If the algorithm is cracked or leaked, anyone with the calculator can generate codes without contacting the network provider.