AES256 encryption, decryption with n8n module

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

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:

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.

Thanks for your reply.
Is it possible for the code node to include(require?) "crypto’ package?

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

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.

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