# Decrypting node-red credentials file

**URL:** <https://discourse.nodered.org/t/decrypting-node-red-credentials-file/74519>\
**Category:** General\
**Created:** [31 January 2023 21:41 UTC](https://discourse.nodered.org/t/decrypting-node-red-credentials-file/74519 "2023-01-31T21:41:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [31 January 2023 21:41 UTC](https://discourse.nodered.org/t/decrypting-node-red-credentials-file/74519/1 "2023-01-31T21:41:04Z")

</div>

I have an encrypted credentials file (`flows_cred.json`) which I would like to convert into an unencrypted credential files.

I know the credential password.  
So is there a way I can do that ?

**Rationale:**

Instead of working with password/keys in my (encrypted) credential files, I am planning to use environment variables. So there is no longer a need to encrypt them.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [31 January 2023 22:07 UTC](https://discourse.nodered.org/t/decrypting-node-red-credentials-file/74519/2 "2023-01-31T22:07:58Z")

</div>

I think if you change credentialSecret to false in settings.js, restart Node-red and deploy a trivial change, it decrypts flows\_cred.json.

Obviously make a backup copy of settings.js and flows\_cred.json first

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 April 2023 22:08 UTC](https://discourse.nodered.org/t/decrypting-node-red-credentials-file/74519/3 "2023-04-01T22:08:26Z")

</div>

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