Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates a random string.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Hash | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Length | The length of the text to return in characters. | 32 | |
Characters | Optional, a list of characters to use instead of default set. | "1234" | Optional |
Returns text.
Creates 8 byte string:
MBS( "Hash.RandomString"; 8 )
Create random text with only digits:
MBS("Hash.RandomString"; 32; "1234567890")
Create random hex number:
MBS("Hash.RandomString"; 32; "1234567890ABCDEF")
Create random password using digits and punctuation:
MBS("Hash.RandomString"; 10; "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*-_+=.")
This function checks for a license.
Created 18th August 2014, last changed 14th January 2015