Americans should no longer expect that their private conversations will remain private, the head of the FBI said on Wednesday.

FBI Director James Comey told a conference on cybersecurity that there is no longer any such thing as 'absolute privacy' in the era of WikiLeaks, social media, and hyper-interconnection, according to CNN.

'There is no such thing as absolute privacy in America; there is no place outside of judicial reach,' Comey told the conference at Boston College.

'Even our communications with our spouses, with our clergy members, with our attorneys are not absolutely private in America,' Comey said.

Scroll down for video

FBI Director James Comey (above) told a conference on cybersecurity in Boston on Wednesday that there is no longer any such thing as 'absolute privacy' in the era of WikiLeaks, social media, and hyper-interconnection

'In appropriate circumstances, a judge can compel any one of us to testify in court about those very private communications.'

Comey's remarks came over 24 hours after the anti-secrecy organization WikiLeaks unveiled a trove of documents that purport to shed light on sophisticated information-gathering techniques used by the CIA.

Among the most shocking revelations were the fact that the US spy agency is capable of hacking into smartphone apps and television sets for the purpose of eavesdropping on unsuspecting users.

The former head of the CIA, General Michael Hayden, told CBS' Late Show on Tuesday that the agency does not spy on Americans.

In 2013, former National Security Agency contractor Edward Snowden gave journalists thousands of classified documents that revealed numerous global surveillance programs.

Comey's remarks came over 24 hours after the anti-secrecy organization WikiLeaks unveiled a trove of documents that purport to shed light on sophisticated information-gathering techniques used by the CIA (whose logo is seen above)

Among the most shocking revelations were the fact that the US spy agency is capable of hacking into smartphone apps and television sets for the purpose of eavesdropping on unsuspecting users

The revelations were shocking to civil libertarians who were unaware of the scope of government-sanctioned espionage.

Comey seconded Hayden's assessment, saying on Wednesday that Americans 'have a reasonable expectation of privacy in our homes, in our cars, in our devices.'

'It is a vital part of being an American. The government cannot invade our privacy without good reason, reviewable in court,' Comey said.

The FBI director revealed that in the last four months of 2016, the FBI legally recovered 2,800 electronic devices during the course of its investigations into terrorism and other crimes.

Of those, the FBI was unable to open 43 percent of the devices, Comey said.

He said that despite fears of erosion of privacy, Americans have been able to strike a balance between civil liberties and protecting security.

'We all value privacy. We all value security. We should never have to sacrifice one for the other,' Comey said.

'Our founders struck a bargain that is at the center of this amazing country of ours and has been for over two centuries.'

The former head of the CIA, General Michael Hayden (left), told CBS' Late Show with Stephen Colbert (right) on Tuesday that the agency does not spy on Americans

Comey said on Wednesday that he is planning to stay in his post until the end of his own 10-year-term.

Comey, who was the subject of new intrigue after President Donald Trump sent out a flurry of unsubstantiated weekend tweets accusing former President Barack Obama of having his phones tapped, revealed his plans at a conference on cybersecurity.

'You're stuck with me for another six and a half years,' he told the conference.

That would keep Comey in office beyond President Trump's four-year term in office and into his second term if he got re-elected.

Comey issued the vow after referencing the bureau's reputation for relentlessness, and invoking the name of a famed hijacker who eluded agents for decades.