Saltar al contenido principal

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​

NameTypeRequiredDescription
datajsonYesData object to encrypt (full mode) or object containing the fields to encrypt (field mode)

Output ports​

NameTypeRequiredDescription
resultjsonNoEncrypted output: full-mode returns encrypted_data string; field-mode returns the data object with named fields encrypted in place plus _encrypted_fields metadata
successbooleanNoWhether encryption succeeded

Settings​

Basic​

SettingNameTypeRequiredDefaultAllowed valuesDescription
Encryption ModemodeenumNofieldfield, fullWhether to encrypt specific fields or the full payload
Fields to EncryptfieldsarrayNoList of field names to encrypt (required for field mode)

Auth​

SettingNameTypeRequiredDefaultAllowed valuesDescription
Encryption Keyencryption_keysecretYesAES-256 key (32 bytes, base64-encoded or raw)

Errors​

CodeDescription
INVALID_KEYEncryption key is not 32 bytes (256 bits)
MISSING_FIELDSFields array is required for field-level encryption mode
ENCRYPTION_FAILEDAES-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..