Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

Hash.RandomHexString

Creates a random hex string.

Component Version macOS Windows Linux Server iOS SDK
Hash 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Hash.RandomHexString"; Length )   More

Parameters

Parameter Description Example
Length The length of the text to return in characters. Result string with be double that size as it is hex. 32

Result

Returns text.

Description

Creates a random hex string.
You can use this strings for hash seeds.

Examples

Creates 8 byte string:

MBS( "Hash.RandomHexString"; 8 )

Create a random password to pass to user:

Set Variable [$password; Value: MBS( "Hash.RandomHexString"; 16 ) ]

See also

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 24th May 2022


Hash.PBKDF2.HMAC - Hash.RandomString

💬 Ask a question or report a problem