Hi everyone! ![]()
I built a community node called Unwrap. Paste any token or encoded string: it detects what it is and peels it layer by layer. It also goes the other way: signs JWTs, encodes, hashes/HMACs and encrypts.
"Bearer eyJhbGciOiJSUzI1NiIs…" → { type: "jwt", header, payload, expiresAt, expired: false, verified: false }
"H4sIAAAAAAAA%2F6tWSlSyMjQ…" → { type: "json", value: {…}, layers: ["url", "base64", "gzip"] }
"Basic YW5hOnMzY3IzdA==" → { type: "basic", username: "ana", password: "s3cr3t" }
"5e884898da28047151d0e56f8dc…" → { type: "hash", algorithms: ["SHA-256", …] }
Operations
| Operation | What it does |
|---|---|
| Decode | Detects the format and peels URL-encoding, base64/base64url, hex, gzip, zlib, deflate (up to 5 layers). Recognizes JWT, JWE, PASETO, Fernet, Basic Auth, JSON, SAML/XML, UUID and hashes (bcrypt, Argon2, SHA…) |
| Verify JWT | Checks signature and dates. Returns valid + a reason you can use in an IF (expired, invalid_signature, audience_mismatch…) |
| Sign JWT | Creates a signed JWT (HS, RS, PS, ES, EdDSA) |
| Encode | Base64, hex, URL, gzip/deflate + base64 (SAML redirect), Basic Auth header |
| Hash | MD5, SHA-1/2/3, optional HMAC, with constant-time Compare With |
| Encrypt / Decrypt | AES-256-GCM on a value or only on some fields (e.g. cpf, card.number) keeping the rest readable |
| Verify Webhook | GitHub, Stripe, Slack, Shopify and Standard Webhooks (Svix, Clerk, Resend…) with replay protection |
| Generate | UUID, random secret / AES key, password, TOTP (2FA) code |
Verify JWT details
- Keys from the native JWT Auth credential (passphrase or PEM) or from a JWKS URL / OpenID configuration URL (cached 10 min, refetched on unknown
kid, so key rotation works). - Safe defaults:
alg: noneis never accepted, and a passphrase only checks HS* while a public key only checks asymmetric algorithms (blocks the HS256-with-public-key attack). - Optional Issuer, Audience, Allowed Algorithms, clock tolerance.
Decode does not check signatures — anyone can create a JWT with any content. Use Verify JWT before trusting a token.
Explain With AI (optional)
Turn it on in Decode or Verify JWT, connect any Chat Model, and each result gets an explanation in plain language (who issued the token, what it allows, when it expires, why verification failed). The AI only explains: decoding and valid are computed by code, signatures/secrets are never sent, and personal data is masked by default.
AI Agent tool
Unwrap can be used as a tool by the AI Agent node (self-hosted needs N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true).
Installation
Self-hosted: Settings → Community Nodes → Install → n8n-nodes-unwrap, then search for Unwrap in the nodes panel.
Feedback, bugs and ideas are very welcome! ![]()
npm package: n8n-nodes-unwrap