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

# encode:sha1 — SHA-1 hash

ENCODE:SHA1 generates the SHA-1 hash of a value as a 40-character hexadecimal number using the US Secure Hash Algorithm 1.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |

### Children
- (none)

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

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

### Examples

```xml
<output>
	<encode:sha1>My name is iXML!</encode:sha1>
</output>

<!-- bb9b1ff0d612972f6a48652caf6de4201c07c9f6 -->
```
