# Custom HS256 signing secret

**URL:** <https://community.auth0.com/t/custom-hs256-signing-secret/36613>\
**Category:** Get Help\
**Tags:** authenticationapi, authentication\
**Created:** [January 20, 2020, 3:55pm UTC](https://community.auth0.com/t/custom-hs256-signing-secret/36613 "2020-01-20T15:55:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HulaTime](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hulatime/32/12776_2.png) [@HulaTime](https://community.auth0.com/u/HulaTime)\
**Post date:** [January 20, 2020, 3:55pm UTC](https://community.auth0.com/t/custom-hs256-signing-secret/36613/1 "2020-01-20T15:55:06Z")

</div>

Is it possible to change or specify the signing secret to be used with HS256 signing algorithm?

This question appears to have been asked previously [Changing API Signing Secret](http://community.auth0.com/t/changing-api-signing-secret/9288) however it doesn’t appear as though it was ever answered before being closed.

---

<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 21, 2020, 9:37am UTC](https://community.auth0.com/t/custom-hs256-signing-secret/36613/3 "2020-01-21T09:37:15Z")

</div>

Hey there!

Judging by this doc it seems that it’s possible:

> **[Signing Algorithms](https://auth0.com/docs/get-started/applications/signing-algorithms)**
>
> Describes signing algorithms and recommendations for configuring them in the Auth0 Dashboard.

however we do recommend using **RS256**

---

<div class="post-metadata">

**Author:** ![HulaTime](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hulatime/32/12776_2.png) [@HulaTime](https://community.auth0.com/u/HulaTime)\
**Post date:** [January 21, 2020, 11:54am UTC](https://community.auth0.com/t/custom-hs256-signing-secret/36613/4 "2020-01-21T11:54:05Z")

</div>

Hey, thanks for the reply,

Indeed after digging around a bit I found a way where it seems possible to set the signing secret.  
I haven’t managed to find a way to set via the dashboard however the Management Api docs offer an endpoint to achieve this: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Resource_Servers/patch_resource_servers_by_id)

It seems Resource Server is the Management Apis terminology for an API.  
You can patch the signing secret using this endpoint though and set the algorithm to be used as well.

I haven’t managed to test this properly yet as I’m having a few issues with my Management Api access\_token but this seems to be the way to do it.

---

<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 21, 2020, 11:56am UTC](https://community.auth0.com/t/custom-hs256-signing-secret/36613/5 "2020-01-21T11:56:09Z")

</div>

Glad you have found it and thanks for sharing with the rest of community!

---

<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 27, 2020, 5:02pm UTC](https://community.auth0.com/t/custom-hs256-signing-secret/36613/6 "2020-01-27T17:02:11Z")

</div>


