hashValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (dev → main)
(Example 2)
Line 16: Line 16:


|x1= <code>[[private]] _valueHash = [[hashValue]] "Hello There";</code>
|x1= <code>[[private]] _valueHash = [[hashValue]] "Hello There";</code>
|x2= <code>[[private]] _isCorrectPW = [[hashValue]] _enteredPassword == "eWkXUUqiinE";</code>


|seealso= [[createHashMap]] [[values]]
|seealso= [[createHashMap]] [[values]]
}}
}}

Revision as of 10:07, 6 October 2021

Hover & click on the images for description

Description

Description:
Processes provided value's hash.
A hash value remains the same between game restarts but for Object and Group type, their hash being based on their netId.
Groups:
HashMap

Syntax

Syntax:
hashValue value
Parameters:
value: Array, Boolean, Code, Config, Group, Namespace, NaN, Number, Object, Side or String
Return Value:
String - base64-encoded 64 bits hash

Examples

Example 1:
private _valueHash = hashValue "Hello There";
Example 2:
private _isCorrectPW = hashValue _enteredPassword == "eWkXUUqiinE";

Additional Information

See also:
createHashMap values

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note