# Partial search encrypted data

**URL:** <https://discuss.elastic.co/t/partial-search-encrypted-data/28804>\
**Category:** Elasticsearch\
**Created:** [September 8, 2015, 3:50am UTC](https://discuss.elastic.co/t/partial-search-encrypted-data/28804 "2015-09-08T03:50:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bing\_Qiu](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Bing\_Qiu](https://discuss.elastic.co/u/Bing_Qiu)\
**Post date:** [September 8, 2015, 3:50am UTC](https://discuss.elastic.co/t/partial-search-encrypted-data/28804/1 "2015-09-08T03:50:34Z")

</div>

Hi,

Our company is considering to encrypt all the personal information data, e.g. first name, last name, email, etc. And we also want to support the partial match of those personal information.

The current idea is :

1. apply ngram analyzer to the personal information
2. use deterministic encryption algorithm to encrypt every token
3. index the encrypted token
4. during search, encrypt the search term user entered, then use the encrypted search term for the search

Any advice/suggestions?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:51pm UTC](https://discuss.elastic.co/t/partial-search-encrypted-data/28804/2 "2017-07-05T23:51:45Z")

</div>

Closed on July 5, 2017, 11:51pm UTC


