# How to Encrypt PII in Data Pipelines While Keeping It Searchable

DevFeed: [How to Encrypt PII in Data Pipelines While Keeping It Searchable](<https://devfeed.tech/articles/how-to-encrypt-pii-in-data-pipelines-while-keeping-it-searchable-65318.md>)

Original publisher: [Read original article](<https://www.freecodecamp.org/news/how-to-encrypt-pii-in-data-pipelines-while-keeping-it-searchable/>)

Author: Lakshmi Mahabaleshwara

Published: 2026-10-06T05:02:57Z

Content type: tutorial

Language: en

Sources: [Free Code Camp](<https://devfeed.tech/sources/freecodecamp-programming-tutorials-python-javascript-git-more.md>)

Topics: [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [pii](<https://devfeed.tech/topics/pii.md>), [public key](<https://devfeed.tech/topics/public-key.md>), [CI/CD secrets management](<https://devfeed.tech/topics/ci-cd-secrets-management.md>), [etl](<https://devfeed.tech/topics/etl.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [aws](<https://devfeed.tech/tags/aws.md>), [batch-processing](<https://devfeed.tech/tags/batch-processing.md>), [data-pipelines](<https://devfeed.tech/tags/data-pipelines.md>), [dataengineering](<https://devfeed.tech/tags/dataengineering.md>), [datapipelines](<https://devfeed.tech/tags/datapipelines.md>), [datasecurity](<https://devfeed.tech/tags/datasecurity.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [hmac](<https://devfeed.tech/tags/hmac.md>), [kms](<https://devfeed.tech/tags/kms.md>), [pii](<https://devfeed.tech/tags/pii.md>)

## AI overview

This tutorial explains ways to protect personally identifiable information in data pipelines while supporting equality searches. It compares probabilistic and deterministic encryption, key derivation and separation, local and remote key-management operations, HMAC, and tokenization, outlining their security and operational trade-offs.

## Source excerpt

At Intuit, my team built a data pipeline that processed TurboTax e-filing data. This data needed to be made available for dashboards, analytics, and other downstream use cases. One of the biggest chal