# Can I store secret encryption keys in app\_metadata?

**URL:** <https://community.auth0.com/t/can-i-store-secret-encryption-keys-in-app-metadata/98034>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [January 12, 2023, 9:36am UTC](https://community.auth0.com/t/can-i-store-secret-encryption-keys-in-app-metadata/98034 "2023-01-12T09:36:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crispjam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/crispjam/32/42572_2.png) [@crispjam](https://community.auth0.com/u/crispjam)\
**Post date:** [January 12, 2023, 9:36am UTC](https://community.auth0.com/t/can-i-store-secret-encryption-keys-in-app-metadata/98034/1 "2023-01-12T09:36:50Z")

</div>

In my application, I’m going to be storing sensitive data that I want to encrypt. Since I want to delegate the security responsibility to auth0, I thought about creating a unique encryption key for each user and storing it within auth0 `app_metadata`.

Is storing secrets such as encryption keys in `app_metada` recommended and/or supported by auth0?

---

<div class="post-metadata">

**Author:** ![Irenehicks](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/irenehicks/32/42517_2.png) [@Irenehicks](https://community.auth0.com/u/Irenehicks)\
**Post date:** [January 12, 2023, 10:41am UTC](https://community.auth0.com/t/can-i-store-secret-encryption-keys-in-app-metadata/98034/2 "2023-01-12T10:41:35Z")

</div>

Yes, you can pass any information in user\_metadata as the whole user info object will be encrypted already so no need to worry about encryption. You data will be safe and secure. Info like this should be stored in the user’s app\_metadata, not the user’s user\_metadata.  
[My Sutter Online Login](https://www.mysutteronline.us/)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 12, 2023, 12:54pm UTC](https://community.auth0.com/t/can-i-store-secret-encryption-keys-in-app-metadata/98034/3 "2023-01-12T12:54:24Z")

</div>

Teamwork makes the dreamwork! Thanks for sharing knowledge @Irenehicks !

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 26, 2023, 11:05am UTC](https://community.auth0.com/t/can-i-store-secret-encryption-keys-in-app-metadata/98034/4 "2023-01-26T11:05:45Z")

</div>


