---
title: "encode:crypt — Symmetric-key encryption"
description: "iXML command encode:crypt: Symmetric-key encryption."
canonical_url: "https://www.zeyos.com/ixml/ref/encode-crypt"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/encode-crypt.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# encode:crypt — Symmetric-key encryption

ENCODE:CRYPT encryptes plaintext with a key according to a given cipher.

ENCODE:CRYPT is the complement of the DECODE:CRYPT operation.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name for ciphertext |
| var_iv | var |  | Result variable name for initialization vector |
| cipher | string |  | Cipher |
| key | string |  | Cryptographic key |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: string
