Arma 3 Scripting

hashValue

  • Arma 3 v2.06

Command · Markdown · JSON · original wiki page

Description

Processes provided value's hash, and encodes it using Base64. The hash algorithm is FNV-1A 64bit.

Note

A hash value remains the same between game restarts but for Object and Group type, their hash being based on their netId.

Syntax

hashValue value

Parameters:

Returns: String - base64-encoded 64 bits hash

Examples

Example 1

private _valueHash = hashValue "Hello There";

Example 2

private _isCorrectPW = hashValue _enteredPassword == "eWkXUUqiinE";

Example 3

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

See also

createHashMap · values