# Introduction to Privacy Enhancing Technologies (PETs) source: https://developer.mastercard.com/blog/introduction-to-privacy-enhancing-technologies/index.md Authors: Sebastien Le Callonnec. Introduction to Privacy Enhancing Technologies (PETs) More than ever, consumers value data privacy, as serious data breaches continue to routinely happen putting individuals at risk of spam, targeted campaigns, identity theft, blackmail, etc. The consequences can be dire for the organizations responsible for data leaks: they not only face significant fines and penalties, but also trust as well as brand and reputational damage. Various legislations have been put in place across the globe to protect individuals' data, such as GDPR in Europe, pushing for more stringent controls on Personal Information and mandating that systems and applications be built following the Privacy by Design principle. Mastercard has its Principles for Data Responsibility in place since 2019. In that context, how can we ensure that, when building applications, the privacy of consumers' records is fully protected, while continuing to provide value to those same consumers, who expect applications and services that are convenient and easy-to-use, and which work seamlessly? In other words, how to find the right balance between Data Privacy and Data Utility? Privacy Enhancing Technologies, also known under the affectionate name of PETs, aim to resolve the tension between the two. What is Data Privacy? In today's interconnected world, where you can purchase goods and services online, perform administrative duties like applying for a passport, open a bank account, exchange with other members of your community, etc., personal information gets stored in innumerable locations. While providing your personal information, such as name, address, date of birth, social security number, and sometimes biometric data, ethnicity, religion, or sexual orientation may be a necessity to do those activities online, the consequences of these details being shared with other parties, either intentionally or by accident, range from the annoying (unsolicited spam) to sometimes dire (identity theft). One of the significant privacy threats, when an individual accepts to share their personal records with an organization, is the unauthorized access and distribution of those records. Once those records have been shared with a third-party, the individual loses any control over the data. Those records may be sold to other companies, unbeknownst to the individual, and without their explicit consent. The legislator has recognized these threats to personal information, and in recent years voted laws to ensure a better protection of personal records and promote a greater respect of Data Privacy by entities. Examples of such laws are the General Data Protection Regulation (GDPR) in the EU, California Consumer Privacy Act (CCPA) in California, and the Health Insurance Portability and Accountability Act (HIPAA) in the US. Those laws impose more restrictions on organizations on the way they collect data -- seeking an individual's consent before data is collected is becoming the norm -- and how those records are managed and shared with other parties. Central to these regulations is the idea that practices must be improved to meet high standards of Data Privacy. A general definition of Data Privacy is the ability for an individual to control "how, when, and to what extent personal information about is communicated to others." (Carlisle, 2021). One of the challenges with traditional approaches is that there is a conflict between privacy and utility: either a piece of data is private, or it is useful for a given business use case. Privacy Enhancing Technologies is an emergent group of techniques which, while keeping the appropriate level of data privacy, allows users to extract more utility from a data set. What are Privacy Enhancing Technologies? There is no formal definition of Privacy-Enhancing Technologies, but generally speaking, PETs refer to "any technical method that protects the privacy or confidentiality of personal and sensitive information." (Mastercard, 2022). The Information Commissioner's Office (ICO) in the UK defines them as "technologies that embody fundamental data protection principles by minimizing personal data use, maximizing data security, and/or empowering individuals." PETs vary wildly in nature and levels of complexity. They range from simple anonymization and pseudonymization techniques, which consist of altering data records, or redacting them, to remove identifiable information, to extremely complex cryptographic methods to perform computations on ciphered datasets. In this series of blog posts, we will see different PETs, what they are, how they work, and how you can employ them in your organization to protect data. We can categorize PETs under four headings: Confidential Computing Uses hardware-based secure enclaves to protect data "in use." The memory of a process running within an enclave is protected directly by hardware, which ensures that data is encrypted, and cannot be accessed by other processes, including privileged ones. While protection of data in transit (with TLS) and data at rest (encrypted data in databases) is now common in the industry, protecting data in use is emerging as key privacy-enhancing aspect, especially as more workloads are being ported to Public Cloud infrastructure. Fully Homomorphic Encryption This is based on advanced cryptographic concepts to perform computations on encrypted data. In more classic cryptography, records need to be decrypted before performing operations such as finding a record in a list, calculating the average or the sum of numerical records, etc. With Fully Homomorphic Encryption, those operations are performed directly on the ciphertext without ever being decrypted, returning results which are themselves encrypted with the same key as the one used to protect the data. This means the records are not only protected "at rest," but they are also protected "in use". Federated Learning This is a way to train AI models on multiple distributed datasets, without the datasets being shared by their owners. The model is trained on the separate datasets, and the results sent back to an aggregating party. The process can be repeated over several rounds to refine the model. This allows a set of parties to contribute to an AI model without revealing any information about their records. Synthetic Data Leverages Machine Learning methods to produce synthetic datasets from existing Production datasets to serve as input for other applications. This removes the need to transmit or scrub Production datasets to be used during testing. While those PETs use different approaches to protect data, they are not mutually exclusive, and can be used together. In this series of blog posts on PETs, we will be looking more closely at these technologies, and see how they can improve privacy, while retaining a high level of utility.