The FBI served Apple with a court order on Feb. 16 requiring the company to write a new software program to unlock the phone used by Syed Rizwan Farook in the shooting spree in December. Farook, along with his wife, shot to death 14 workers before the couple was killed by police. The FBI wants to know where they had been and who helped them.
Apple is refusing to cooperate.
Apple's chief executive Tim Cook has vowed to fight the order, saying the software doesn't exist and creating it would potentially put billions of iPhones at risk of being hacked or spied on by governments. Apple's response to the court is due Friday.
The only way to get information, at least currently the only way we know, is to write a piece of software that we view as sort of the software equivalent of cancer.
In an interview aired Wednesday on ABC's "World News," Cook said that while public safety is important, complying with the court order would set a precedent that would offend many Americans. He disputed the government's contention that the impact of the demand is limited.
During his testimony, Comey told lawmakers the company has been helpful and cooperative, even in the current dispute.
"There are no demons in this dispute," he said. "We just got to a place where they were not willing to offer the relief that the government was seeking."
Comey added that the encryption issue was the "hardest question I have seen in government" and that he would like to see it resolved through conversation and negotiation.
The San Bernardino litigation is not about us trying to send a message or establish some precedent.
Lawmakers acknowledged that the problem was a difficult one to address, let alone solve.
"The latest challenges the government has met in gaining access to an iPhone used by one of the San Bernardino terrorists is emblematic of the growing problem posed by encryption," said Rep. Devin Nunes of California, the Republican chairman of the intelligence committee.
Rep. Adam Schiff of California, the panel's top Democrat, pressed Comey on the ramifications of the FBI's efforts to compel Apple to help agents get into the phone.
"Is there a limiting principal here?" Schiff asked. "Is there a way through negotiation that we can arrive at a case where it's appropriate to seek this relief and cases where it's not."
While acknowledging that the case may influence future decisions by judges, Comey said that was not the FBI's goal.
"The San Bernardino litigation is not about us trying to send a message or establish some precedent," he said, adding that the FBI simply wanted to conduct "a competent investigation."