Crypto_GenRandomString
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > Crypto > Crypto_GenRandomString |
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)