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

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com