Describe the problem/error/question
We are currently working on a project that utilizes n8n, and we need to implement data encryption using the
aes-256-gcmalgorithm. To achieve this, we would like to use the built-in Node.jscryptolibrary, but we have noticed that it is not available in n8n’s code nodes.We understand that some Node.js libraries may require activation or specific configurations to be used within n8n workflows. Could you provide guidance on whether there is a way to enable the
cryptolibrary for code nodes?
I was reading the n8n documentation and came across this section:
“If you use n8n Cloud, you can’t import external npm modules. However, n8n makes two modules available for you:”
- crypto (Node.js module)
- moment (npm package)
What is the error message (if any)?
“Cannot find module ‘crypto’ or its corresponding type declarations.”
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- 1.79.3
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- n8n Cloud
- Operating system:
- Windows
