Apple is facing criticism over a new system that finds child sexual abuse material (CSAM) on US users' devices.
The technology will search for matches of known CSAM before the image is stored onto iCloud Photos.
But there are concerns that the technology could be expanded and used by authoritarian governments to spy on its own citizens.
WhatsApp head Will Cathcart called Apple's move "very concerning".
Apple said that new versions of iOS and iPadOS - due to be released later this year - will have "new applications of cryptography to help limit the spread of CSAM online, while designing for user privacy".
The system will report a match which is then manually reviewed by a human. It can then take steps to disable a user's account and report to law enforcement.
The company says that the new technology offers "significant" privacy benefits over existing techniques - as Apple only learns about users' photos if they have a collection of known child sex abuse material in their iCloud account.
But WhatsApp's Mr Cathcart says the system "could very easily be used to scan private content for anything they or a government decides it wants to control. Countries where iPhones are sold will have different definitions on what is acceptable".
The BBC is not responsible for the content of external sites.
View original tweet on Twitter
He argues that WhatsApp's system to tackle child sexual abuse material has reported more than 400,000 cases to the US National Center for Missing and Exploited Children without breaking encryption.
Should encryption be curbed to combat child abuse?
Facebook encryption ‘must not cause children harm’
The Electronic Frontier Foundation, a digital rights group, has also criticised the move, labelling it "a fully-built system just waiting for external pressure to make the slightest change".
But some politicians have welcomed Apple's development.
Sajid Javid, UK Health Secretary, said it was time for others, especially Facebook, to follow suit.
US Senator Richard Blumenthal also praised Apple's move, calling it a "welcome, innovative and bold step".
"This shows that we can protect children and our fundamental privacy rights," he added.
Facebook and Apple don't like each other.
That dislike has come to a head in recent months over privacy
Apple's Tim Cook has consistently beaten the drum of "privacy first".
He has not so subtly criticised Facebook's business model - that it essentially sells peoples' data to advertisers.
A recent feature of Apple's new iOS update asked users whether they wanted to be tracked around the internet when they downloaded a new app.
Facebook hated the move, and warned shareholders it could hurt their profits.
So it's not entirely surprising that Facebook owned WhatsApp has come out so emphatically against Apple's new move.
Looking at it cynically, Apple's announcement is a chance for Facebook to tell the world that Apple isn't as keen on privacy as it likes to say.
But the WhatsApp chief isn't alone in his criticism. There are some very real concerns that this technology - in the wrong hands - could be used by governments to spy on its citizens.
Facebook has said in no uncertain terms that it thinks this vision of online safety is dangerous and should be canned.
Not for the first time the two companies have illustrated a totally different philosophical position on of the issues of our age -privacy.