hslee
June 22, 2024, 3:55am
1
How to do encrypt and/or decrypt the text with AES256 with n8n module?
Is it possbile to do?(except the method of external AES256 API)
**n8n version: 1.42.1
**Database (default: SQLite): default
**n8n EXECUTIONS_PROCESS setting (default: own, main): own
**Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
**Operating system: Ubuntu
1 Like
n8n
June 22, 2024, 3:55am
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
Jon
June 23, 2024, 10:42am
3
Hey @hslee
We don’t have a direct option to encrypt / decrypt files. The best option I can think of would be to use the code node with the included crypto package and do it that way.
hslee
June 24, 2024, 1:50am
4
Thanks for your reply.
Is it possible for the code node to include(require?) "crypto’ package?
Jon
June 24, 2024, 6:47am
5
Hey @hslee ,
Yeah that is possible, If you use Cloud it is already available if you are self hosting you will need to configure NODE_FUNCTION_ALLOW_BUILTIN
and set it to crypto
hslee
June 24, 2024, 7:31am
6
I use self host n8n.
I didn’t know the exstence and the use of NODE_FUNCTION_ALLOW_BUILTIN
.
I’ll follow your advice. Thanks for your help.
system
Closed
July 1, 2024, 7:32am
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.