OREANDA-NEWS. May 13, 2016. The FBI's latest battle with Apple over iPhone encryption may be over, but the war will rage on, according to the bureau's chief.

FBI Director James Comey told reporters at a briefing Wednesday that he expects more legal actions from the government to gain access to encrypted electronic devices, Reuters reported. Comey pointed to the fight to unlock such devices as necessary in the name of national security and said that encryption is the "essential tradecraft" of terrorist groups.

Earlier this year, Apple and the FBI squared off over an encrypted iPhone 5C used by terrorist Syed Farook, one of two shooters in a December attack in San Bernardino, California, that left 14 people dead. The FBI wanted Apple to decrypt the phone to uncover its contents, but the iPhone maker resisted in spite of a court order. The showdown ended in March when the FBI was able to secure a tool from a third party that decrypted the phone, thereby revealing the information inside.

Tech firms and privacy advocates have argued that encryption, which secures data so it can be read only by those with authorized access, is vital to protect personal information and communications. The government and law enforcement officials have countered that the technology hinders their ability to investigate criminal and terrorist activity.

Comey said the debate over whether government officials can force tech companies to unlock devices used in terrorist or criminal cases is nowhere close to a conclusion. He added that the FBI has had around 4,000 devices in its possession since October and has been unable to unlock around 500 of them. None of those 500 phones has the same make and model or operating system as the iPhone 5C used by Farook, but the agency is still trying to use the same third-party tool to decrypt them.