---
name: "hashValue"
type: command
status: ok
groups: ["HashMap"]
arma3_since: "2.06"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hashValue
revid: 373375
updated: 2025-05-04T09:05:03Z
---

# hashValue

*Command · HashMap · Arma 3 v2.06*

## Description

Processes provided *value*'s hash, and encodes it using [Base64](https://en.wikipedia.org/wiki/Base64). The hash algorithm is [FNV-1A 64bit](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function).

> [!NOTE]
> A hash value remains the same between game restarts but for [Object](../topics/Object.md) and [Group](../topics/Group.md) type, their hash being based on their [netId](../commands/netId.md).

## Syntax

```sqf
hashValue value
```

**Parameters:**

- `value`: [Array](../topics/Array.md), [Boolean](../topics/Boolean.md), [Code](../topics/Code.md), [Config](../topics/Config.md), [Group](../topics/Group.md), [Namespace](../topics/Namespace.md), [NaN](../topics/NaN.md), [Number](../topics/Number.md), [Object](../topics/Object.md), [Side](../topics/Side.md) or [String](../topics/String.md)

**Returns:** [String](../topics/String.md) - base64-encoded 64 bits hash

## Examples

### Example 1

```sqf
private _valueHash = hashValue "Hello There";
```

### Example 2

```sqf
private _isCorrectPW = hashValue _enteredPassword == "eWkXUUqiinE";
```

### Example 3

```sqf
hashValue (systemTime joinString ""); // Returns a unique hash value such as "xoMQ9qd7S60"
```

## See also

[createHashMap](../commands/createHashMap.md) · [values](../commands/values.md)

<sub>Source: [BI Community Wiki — hashValue](https://community.bistudio.com/wiki/hashValue) (revision 373375).</sub>
