Apple and the U.S. government are gearing up for a public and legal battle over FBI Director James Comey's demand that Apple give the FBI a tool to break the passcode on San Bernardino shooter Syed Farook's iPhone, a tool Apple argues create a "backdoor" around the iPhone's security, putting customer privacy and safety at risk and setting a dangerous precedent in the U.S. and abroad. Google CEO Sundar Pichai sided with Apple on Wednesday, but Apple CEO Tim Cook also got a more surprising endorsement for his stand against the FBI: Gen. Michael Hayden, former NSA director (1999-2005) and CIA chief (2006-2009).

In a conversation with Wall Street Journal associate editor John Bussey posted Wednesday, Hayden said that he understands both sides of the unbreakable end-to-end encryption debate, but when it comes to demanding a backdoor, "I think Jim Comey's wrong." Comey's logic, Hayden said, "is based on the belief that he's the main body, and that you should accommodate your movements to the movements of him, which is the main body. And I'm telling you, with regard to the cyber domain, he's not — you are."