n8n Crypto nodeConfigure Crypto in n8n.
The n8n Crypto node turns a value into a hash, a signature or an encrypted string without leaving the workflow. A single parameter drives it, Action, with six choices from Hash to Sign. It runs on every incoming item, so the result sits in the data before the next node reads it.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Crypto node do in a workflow?
Crypto is a core node shipped with n8n. It applies one cryptographic operation to the items flowing through it and writes the result into a property you name. Hashing, Hmac, signing, encryption, decryption and random string generation all live behind the same Action selector, so the node you drop on the canvas is the same one whether you need a checksum or an AES ciphertext.
Start with the case most people land here for: an incoming request you have to trust. The sender computes an Hmac over the body, that is a hash mixed with a shared secret, and puts it in a header. You recompute it with Action set to Hmac, SHA256 under Type and hex under Encoding, then compare the two strings. A Webhook node sits in front, because Crypto never opens a workflow by itself.
Second scenario, deduplication. A row or a file arrives and you want one stable fingerprint instead of comparing a dozen fields by hand. Hash collapses the payload into a short string you can store next to the record. Write it to a unique column in Postgres and the second run stops on its own, or park it in a column of Google Sheets and filter on it later. Switch Binary File on and the fingerprint covers an attachment instead of text.
Third, the throwaway values every integration ends up needing. Generate returns a random string as ascii, base64, hex or uuid, which covers one time links, idempotency keys and correlation ids passed to an API through HTTP Request. Sign covers the other half: a private key produces a signature a partner can check against your public key.
When is another node the better answer? Crypto computes locally on the item. If the signature has to be produced or verified by a remote service, the call belongs to HTTP Request, which reaches any HTTP endpoint. Crypto is also not a transport: it prepares a value, something else has to move it.
The limits worth knowing before you build. Asymmetric RSA mode only encrypts small payloads, around 190 bytes with a 2048-bit key, so anything larger goes through symmetric mode. Cipher has to match exactly between the encrypt run and the decrypt run, and Length only applies when Generate is set to ASCII, BASE64 or HEX. Version 2 of the node is described here, and an older workflow can still show an earlier version with fewer options. Teams who want the reasoning behind these patterns walk through them in our n8n training.
How do you set up Crypto credentials in n8n?
- 01
Check which action needs the credential
Only two of the six actions require a Crypto credential: Hmac and Sign. On those two the node refuses to run until a credential is selected. Hash and Generate compute on the item alone and ask for nothing. The same credential also holds the encryption fields, so one creation covers every Crypto node in the instance.
- 02
Create the credential and fill only what you use
Open the Credentials menu in n8n and create a Crypto credential. Every field in it is optional, so fill the ones your action needs: Hmac Secret for the Hmac action, Private Key for Sign, Encryption Passphrase for the symmetric mode of Encrypt and Decrypt, Encryption Public Key and Encryption Private Key for the asymmetric one.
- 03
Select it in the node before the run
Back on the canvas, open the Crypto node, pick the credential in its dropdown and set Action to Hmac or to Sign. The secret lives in the credential rather than in the panel, so a workflow you export or hand over carries none of it. Hash and Generate keep working whether a credential is selected or not.
Which parameters does the Crypto node expose?
The Crypto node has one parameter. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Action
actionWhat you see in n8n
Notes & use cases
One top level selector decides what the node does and which fields the panel shows underneath it.
Key parameters
- Action:
hash,hmac,sign,encrypt,decryptorgenerate. - Value and Property Name: the input, often
{{ $json.body }}, and the property the result is written to. - Type and Encoding: hash types from
MD5toSHA512, output asbase64orhex. - Binary File with Binary Property Name: work on an attachment instead of text.
- Mode and Cipher:
symmetricwithaes-256-gcm, orasymmetricRSA. - Algorithm Name or ID for Sign, Type and Length for Generate.
Need help automating Crypto with n8n?
A person reads every message.
Crypto node questions, answered
01Is the Crypto node included in n8n?
02What do you need to set up before the n8n Crypto node works?
03What are the limits of the Crypto node?
04Crypto node or HTTP Request for signing a payload?
05n8n or Make for cryptographic steps?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
