# Decrypted value not available in search box when sending hashed query

**URL:** <https://discuss.elastic.co/t/decrypted-value-not-available-in-search-box-when-sending-hashed-query/366945>\
**Category:** Elasticsearch\
**Created:** [September 23, 2024, 9:08am UTC](https://discuss.elastic.co/t/decrypted-value-not-available-in-search-box-when-sending-hashed-query/366945 "2024-09-23T09:08:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pankaj\_yadav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pankaj_yadav/32/137795_2.png) [@Pankaj\_yadav](https://discuss.elastic.co/u/Pankaj_yadav)\
**Post date:** [September 23, 2024, 9:08am UTC](https://discuss.elastic.co/t/decrypted-value-not-available-in-search-box-when-sending-hashed-query/366945/1 "2024-09-23T09:08:06Z")

</div>

I am encrypting the search query before sending user to results page , where user is not able to see the query in address bar(only encrypted field is visible), but before sending to Elasticsearch I decrypt the field and then send.  
Also for displaying I am decrypting the field and everything works fine, but the issue comes when I again open search box, I get encrypted verison only , I know this is expected behavior as url is linked to search box by default, but can we somehow, decrypt the query there also.

For sending decrypted version to Elasticsearch I am using, onSearch function in search-driver, but not able to find anything related to search box in documentation.  
Note I have already tried value field in searchbox input.

---

<div class="post-metadata">

**Author:** ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)\
**Post date:** [September 23, 2024, 3:15pm UTC](https://discuss.elastic.co/t/decrypted-value-not-available-in-search-box-when-sending-hashed-query/366945/2 "2024-09-23T15:15:31Z")

</div>

Category updated on September 23, 2024, 3:15pm UTC

From #Elastic Search to #Elasticsearch

---

<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:** [October 21, 2024, 3:16pm UTC](https://discuss.elastic.co/t/decrypted-value-not-available-in-search-box-when-sending-hashed-query/366945/3 "2024-10-21T15:16:10Z")

</div>

Closed on October 21, 2024, 3:16pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
