Mark Zuckerberg appears to have gotten religion when it comes to protecting privacy.

In a long blog post shared Wednesday, the Facebook chief executive announced the tech company will increasingly focus its efforts on building a “privacy-focused communications platform.”

The social media giant will encrypt conversations on more of its messaging services, including Messenger and Instagram, said Zuckerberg, who predicted that direct messaging will soon dwarf applications like Facebook’s news feed.

“Working towards implementing end-to-end encryption for all private communications is the right thing to do,” he wrote.

“People are more cautious of having a permanent record of what they’ve shared,” the 34-year-old executive said, adding there is “an opportunity to build a simpler platform that’s focused on privacy first.”

By using encryption, private messages would not be able to be seen by Facebook.

The move comes almost on the one-year anniversary of the Cambridge Analytica scandal, which kick-started countless reports highlighting Facebook’s privacy lapses.

It is also a day after Forbes dropped him three places on its billionaires list — to No. 8 from No. 5 — after his personal wealth declined by $9 billion in a year dominated by privacy scandals.

“I understand that many people don’t think Facebook can or would even want to build this kind of privacy-focused platform — because frankly we don’t currently have a strong reputation for building privacy-protective services,” he said.

The strategy could frustrate law enforcement surveillance efforts as well as lawmakers who have called on Facebook to better moderate user content. It also would limit the company’s ability to generate revenue through targeted ads.

But Zuckerberg said he could live with those trade-offs, indicating that users want better control of their data while still having easy access to their contacts.

Facebook shares edged up $1.25, to $172.51. They are down 7.5 percent since the Cambridge Analytica scandal broke.

With Post wires