workflows.fit
Back to n8n workflows
n8n templateFreeBy Tenkay

XOR encryption and decryption with Base64 encoding for workflow data

This workflow performs basic XOR-based encryption and decryption using a custom password. It is intended to be triggered by another workflow and processes structured input in JSON format. Input Structure The workflow ...

DevelopmentCore NodesExecute Workflow TriggerIfCode
Loading interactive preview...

Template notes

This workflow performs basic XOR-based encryption and decryption using a custom password. It is intended to be triggered by another workflow and processes structured input in JSON format.

Input Structure

The workflow expects a single array of objects with the following fields:

- action-type: either "encrypt" or "decrypt" - key: the password used for encryption and decryption - data: the content to encrypt or decrypt

Example: Encryption Input

json [ { "action-type": "encrypt", "key": "Password", "data": "Hello, this is a secret message" } ]

Example: Decryption Input

json [ { "action-type": "decrypt", "key": "Password", "data": "ChwGAQceF15eE2QXFRcUagxGVgV8TBoNBA4VQVoQZkwVUhImU1FTEg==" } ]