Professor Keith Martin, head of the information security group at Royal Holloway, University of London, said that encryption was one of the most basic techniques organizations could use to protect their data.
"You can never completely stop attackers from accessing data because there's a lot of clever tricks they can play ... (Encryption is) like locking your front door (to deter burglars), but there are other ways in," Martin told CNBC in a telephone interview.
Other tech companies are also using encryption to protect their products against surveillance. In March this year, Google revealed it was encrypting all emails sent or received on its Gmail email service.
"No one can listen in on your messages as they go back and forth between you and Gmail's servers – no matter if you're using public WiFi or logging in from your computer, phone or tablet," Nicholas Lidzborksi, Gmail security engineering lead at Google said in a blog post.
Read More Yahoo reports breach of some email accounts
Last year, Yahoo wrote an open letter to Washington in conjunction with other tech giants such as Google and Twitter, in which it argued for reforms to government practices and laws surrounding surveillance of individuals and access to their private information.
They also said they would deploy "the latest encryption technology" to protect users' privacy going forward, and "push back on government requests, to ensure they are legal and in reasonable scope."