# Module /hash

Fast non-cryptographic hash algorithms: AHash, FNV-1a, SipHash-1-3, and XXHash64.

```tangu
(use /hash)
```

## Functions & symbols

### a-hash

`(a-hash input) -> Int`

Computes a fast non-cryptographic 64-bit AHash digest (not suitable for passwords or MACs).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `input` | `String | Slab` | no | Data to hash |

```tangu
(hash/a-hash "cache-key-42")
```

### fnv-1a

`(fnv-1a input) -> Int`

Computes a fast non-cryptographic 64-bit FNV-1a digest (not suitable for passwords or MACs).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `input` | `String | Slab` | no | Data to hash |

```tangu
(hash/fnv-1a "cache-key-42")
```

### sip-hash-1-3

`(sip-hash-1-3 input) -> Int`

Computes a fast non-cryptographic 64-bit SipHash-1-3 digest (not suitable for passwords or MACs).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `input` | `String | Slab` | no | Data to hash |

```tangu
(hash/sip-hash-1-3 "cache-key-42")
```

### xx-hash-64

`(xx-hash-64 input) -> Int`

Computes a fast non-cryptographic 64-bit XXHash64 digest (not suitable for passwords or MACs).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `input` | `String | Slab` | no | Data to hash |

```tangu
(hash/xx-hash-64 "cache-key-42")
```
