# I want to disable encryption of my credential file for an existing project

**URL:** <https://discourse.nodered.org/t/i-want-to-disable-encryption-of-my-credential-file-for-an-existing-project/81226>\
**Category:** General\
**Created:** [12 September 2023 08:17 UTC](https://discourse.nodered.org/t/i-want-to-disable-encryption-of-my-credential-file-for-an-existing-project/81226 "2023-09-12T08:17:45Z")\
**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:** [12 September 2023 08:17 UTC](https://discourse.nodered.org/t/i-want-to-disable-encryption-of-my-credential-file-for-an-existing-project/81226/1 "2023-09-12T08:17:45Z")

</div>

I have a project (github) where my node-red credentials file (`controller/flows_cred.json`) is encrypted.  
FYI node-red is running on raspberry pi 3 in a docker container based on image `nodered/node-red:3.0.2-16`

I no longer want to encrypt my credentials for this project (as I am going to specify any credentials throughenvironment variables).

I don't know the password that is used to encrypt my credentials.  
I am happy to reenter all my credentials.

In order to disable encryption of my credential file I thought I just need to delete my credential file (`controller/flows_cred.json`) and disable encryption in the `settings.js` file by adding the line:

```auto
    credentialSecret: false,

```

but this doesn't disable encryption:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e963e427dea8f8b5dd8b16e966be4cd1a7c2e347.png)

I have no clue what else I can try.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [12 September 2023 10:01 UTC](https://discourse.nodered.org/t/i-want-to-disable-encryption-of-my-credential-file-for-an-existing-project/81226/2 "2023-09-12T10:01:01Z")

</div>

The UI doesn't provide a way to disable encryption - only to change/reset the key being used.

You can manually disable it by:

1. edit `.node-red/.config.projects.json` - look for your project's entry in the list and delete its `credentialSecret` entry.
2. delete the credentials file
3. restart Node-RED

---

<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:** [26 September 2023 10:01 UTC](https://discourse.nodered.org/t/i-want-to-disable-encryption-of-my-credential-file-for-an-existing-project/81226/3 "2023-09-26T10:01:58Z")

</div>

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