# Credentials could not be decrypted - Projects github

**URL:** <https://discourse.nodered.org/t/credentials-could-not-be-decrypted-projects-github/30578>\
**Category:** General\
**Created:** [23 July 2020 03:53 UTC](https://discourse.nodered.org/t/credentials-could-not-be-decrypted-projects-github/30578 "2020-07-23T03:53:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmy232](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimmy232/32/26286_2.png) [@jimmy232](https://discourse.nodered.org/u/jimmy232)\
**Post date:** [23 July 2020 03:53 UTC](https://discourse.nodered.org/t/credentials-could-not-be-decrypted-projects-github/30578/1 "2020-07-23T03:53:04Z")

</div>

I've recently tried Node-red's Project extension and have struggled to secure a method for sharing projects with decrypted credentials.  
For some reason am unable to execute a corresponding key.

I have one host running with projects enabled where I upload to github with an encryption key.  
The second host I download the project from github and copy across to .node-red.

Both hosts are using the same key set in each settings.js file under :xxx  
The settings.js credentialSecret is the same key used in host one projects encryption key parameter.

Could there be a known reason for this?

---

<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:** [23 July 2020 08:37 UTC](https://discourse.nodered.org/t/credentials-could-not-be-decrypted-projects-github/30578/2 "2020-07-23T08:37:31Z")

</div>

Hi @jimmy232

What you describe should just work:

1. create a project and configure with an encryption key.
2. clone the project to another machine that doesn't have projects enabled
3. copy its flow files into `.node-red`
4. copy the project's encryption key into the settings.js file as the `credentialSecret` value.

Double check you have the keys right. Check the start-up log of the second NR instance to see if its loading the flow file you think it should be.

---

<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:** [21 September 2020 08:37 UTC](https://discourse.nodered.org/t/credentials-could-not-be-decrypted-projects-github/30578/3 "2020-09-21T08:37:37Z")

</div>

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