Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

Hash.RandomString

Creates a random string.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Hash 3.1 Yes Yes Yes Yes Yes

MBS( "Hash.RandomString"; Length { ; Characters } )

Parameters

Parameter Description Example value
Length The length of the text to return in characters. 32
Characters Optional
Optional, a list of characters to use instead of default set.
"1234"

Result

Returns text.

Description

Creates a random string.
User Characters: a to z, A to Z and 0 to 9.
You can use this strings for hash seeds or as password suggestions.

Examples

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~!@#$%^&*-_+=.")

See also

Example Databases


Hash.RandomHexString   -   Hash.SHA1

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins