Smuggled tools, some kind of creative solution using onboard materials, a weakness they've discovered, etc.
In order words, its not safe to assume a team of intelligent and motivated hijackers couldn't break into a cockpit given sufficient time. But it is safe to assume that the reinforced cockpit door will slow hijackers enough that passengers have time to stop them.