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

# encode:hash — Hash

ENCODE:HASH generates the hash of a value according to a given algorithm.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| algorithm | string | md5 | Algorithm |
| raw | bool |  | Raw binary format |

### Children
- (none)

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

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

### Examples

```xml
<output>
	<encode:hash algorithm="sha1" key="ixml">My name is iXML!</encode:hash>
</output>

<!-- f66b1452e6c9a6061bb9837a511470e06f23d9b5 -->
```
