This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
The Crypto_GenRandomString() function fills a string with cryptographically random characters.
Syntax
key = Crypto_GenRandomString(byteLength)
Returns
String, generated key of given byte length.
Parameters
Name |
Type |
Optional |
Meaning |
byteLength |
Number |
No |
Required string length |
Remarks
This functions relies on Microsoft's PROV_RSA_FULL Cryptographic Service Provider Type.
Restrictions
See also
Examples
String key = Crypto_GenRandomString(16) ' Makes random 128 bit key (16 * 8 = 128)