Encrypt
Category: Security
Node id: encrypt
Standards: HIPAA, SOC2
Encrypts data using AES-256-GCM for PHI security, supporting field-level and full-payload encryption
What it does
- AES-256-GCM authenticated encryption
- Field-level encryption for selective PHI protection
- Full-payload encryption for complete data security
- Base64-encoded output for safe transport
- Encryption metadata output for downstream decrypt nodes
Use cases
- Encrypt patient SSN and date of birth fields before storage
- Protect PHI in transit between pipeline stages
- Field-level encryption for HIPAA-compliant data handling
Runtime
- Performance tier:
fast
Input ports
| Name | Type | Required | Description |
|---|---|---|---|
data | json | Yes | Data object to encrypt (full mode) or object containing the fields to encrypt (field mode) |
Output ports
| Name | Type | Required | Description |
|---|---|---|---|
result | json | No | Encrypted output: full-mode returns encrypted_data string; field-mode returns the data object with named fields encrypted in place plus _encrypted_fields metadata |
success | boolean | No | Whether encryption succeeded |
Settings
Basic
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| Encryption Mode | mode | enum | No | field | field, full | Whether to encrypt specific fields or the full payload |
| Fields to Encrypt | fields | array | No | List of field names to encrypt (required for field mode) |
Auth
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| Encryption Key | encryption_key | secret | Yes | AES-256 key (32 bytes, base64-encoded or raw) |
Errors
| Code | Description |
|---|---|
INVALID_KEY | Encryption key is not 32 bytes (256 bits) |
MISSING_FIELDS | Fields array is required for field-level encryption mode |
ENCRYPTION_FAILED | AES-256-GCM encryption operation failed |
Runtime notes
- Field-mode adds _encrypted_fields and _encryption_mode metadata — the decrypt node reads these to auto-detect what to decrypt
- Full-mode serializes the entire input to JSON, encrypts it, and returns a single encrypted_data string
- Each encrypted value uses a unique random nonce — same plaintext produces different ciphertext each time
- Wire the 'result' output directly to a decrypt node's 'result' input for seamless round-trip
See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.
¿Algo no está claro? Envíe sus comentarios sobre la documentación por correo electrónico..