> For the complete documentation index, see [llms.txt](https://developers.polymath.network/polymath/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.polymath.network/polymath/api/encoder.md).

# Encoder.sol

View Source: [contracts/libraries/Encoder.sol](https://github.com/PolymathNetwork/polymath-core/tree/096ba240a927c98e1f1a182d2efee7c4c4c1dfc5/contracts/libraries/Encoder.sol)

**Encoder**

## Functions

* [getKey(string \_key)](/polymath/api/encoder.md#getkey)
* [getKey(string \_key1, address \_key2)](/polymath/api/encoder.md#getkey)
* [getKey(string \_key1, string \_key2)](/polymath/api/encoder.md#getkey)
* [getKey(string \_key1, uint256 \_key2)](/polymath/api/encoder.md#getkey)
* [getKey(string \_key1, bytes32 \_key2)](/polymath/api/encoder.md#getkey)
* [getKey(string \_key1, bool \_key2)](/polymath/api/encoder.md#getkey)

### getKey

```javascript
function getKey(string _key) internal pure
returns(bytes32)
```

**Arguments**

| Name  | Type   | Description |
| ----- | ------ | ----------- |
| \_key | string |             |

### getKey

```javascript
function getKey(string _key1, address _key2) internal pure
returns(bytes32)
```

**Arguments**

| Name   | Type    | Description |
| ------ | ------- | ----------- |
| \_key1 | string  |             |
| \_key2 | address |             |

### getKey

```javascript
function getKey(string _key1, string _key2) internal pure
returns(bytes32)
```

**Arguments**

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| \_key1 | string |             |
| \_key2 | string |             |

### getKey

```javascript
function getKey(string _key1, uint256 _key2) internal pure
returns(bytes32)
```

**Arguments**

| Name   | Type    | Description |
| ------ | ------- | ----------- |
| \_key1 | string  |             |
| \_key2 | uint256 |             |

### getKey

```javascript
function getKey(string _key1, bytes32 _key2) internal pure
returns(bytes32)
```

**Arguments**

| Name   | Type    | Description |
| ------ | ------- | ----------- |
| \_key1 | string  |             |
| \_key2 | bytes32 |             |

### getKey

```javascript
function getKey(string _key1, bool _key2) internal pure
returns(bytes32)
```

**Arguments**

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| \_key1 | string |             |
| \_key2 | bool   |             |
