Navigation:  thinBasic Modules > Crypto >

Crypto_GenRandomString

Previous pageReturn to chapter overviewNext page

 

Description

 

The Crypto_GenRandomString() function fills a string with cryptographically random characters.

 

Syntax

 

Crypto_GenRandomString(nLenght AS NUMBER) AS STRING

 

Returns

 

Returns AS STRING

The generated random string.

 

Parameters

 

Name

Type

Optional

Meaning









nLenght AS NUMBER

The required string lenght.

 

Remarks

 

This functions relys on Microsoft's PROV_RSA_FULL Cryptographic Service Provider Type.

 

Restrictions

 

 

See also

 

 

Examples

 

Crypto_GenRandomString(16)  ' Make a random 128 bits key