# Encrypt the subflow to deployment

**URL:** <https://discourse.nodered.org/t/encrypt-the-subflow-to-deployment/65399>\
**Category:** General\
**Created:** [21 July 2022 05:34 UTC](https://discourse.nodered.org/t/encrypt-the-subflow-to-deployment/65399 "2022-07-21T05:34:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [21 July 2022 05:34 UTC](https://discourse.nodered.org/t/encrypt-the-subflow-to-deployment/65399/1 "2022-07-21T05:34:39Z")

</div>

Hi all,  
Newbie here and would like some inputs if a subflow can be excrypted or locked so that the subflow can be used in another deployment environment where those users are prohibited from viewing what nodes are inside the subflow.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 July 2022 10:10 UTC](https://discourse.nodered.org/t/encrypt-the-subflow-to-deployment/65399/2 "2022-07-21T10:10:00Z")

</div>

You can make a custom node from a subflow then upload the generated `tgz` package on the remote node-red installations.

Official docs...  
[https://nodered.org/docs/creating-nodes/subflow-modules](https://nodered.org/docs/creating-nodes/subflow-modules)

External walk through...

> **[Creating custom node from subflow in Node-RED](https://kazuhitoyokoi.medium.com/creating-custom-node-from-subflow-in-node-red-ce52cc42bbba)**
>
> In this article, I will introduce the development method of the Node-RED’s node from the subflow. Subflow is the functionality to be able…

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [22 July 2022 13:50 UTC](https://discourse.nodered.org/t/encrypt-the-subflow-to-deployment/65399/3 "2022-07-22T13:50:36Z")

</div>

Thank you very much !!! It works 😃

---

<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:** [5 August 2022 13:51 UTC](https://discourse.nodered.org/t/encrypt-the-subflow-to-deployment/65399/4 "2022-08-05T13:51:33Z")

</div>

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