CryptoSys PKI Toolkit Manual

RNG_StringWithPrompt

Is an alias for RNG_BytesWithPrompt that generates a random string in Visual Basic (VB6) only.

VB6/VBA Syntax

Public Declare Function RNG_StringWithPrompt Lib "diCrPKI.dll" Alias "RNG_BytesWithPrompt" (ByVal strData As String, ByVal nDataLen As Long, ByVal strPrompt As String, ByVal nOptions As Long) As Long

nRet = RNG_StringWithPrompt(strData, nDataLen, strPrompt, nOptions)

Parameters

strData
[out] String to receive the random data.
nDataLen
[in] Long specifying the required length in bytes.
strPrompt
[in] String specifying an (optional) prompt for the dialog. Specify an empty string ("") or NULL to use the default dialog.
nOptions
[in] Long option flags:
PKI_DEFAULT (0) for default options
PKI_RNG_STRENGTH_112 to make user generate an estimated 112 bits of security (default)
PKI_RNG_STRENGTH_128 to make user generate an estimated 128 bits of security

C/C++ Syntax

Not applicable

Returns (VB6/C)

Long: If successful, the return value is zero; otherwise it returns a nonzero error code.

.NET Equivalent

Not applicable

.NET Return Value

Refer to the .NET Help File for more details.

Remarks

This alias is for classic Visual Basic (VB6) users only. The output string may contain characters with value zero (and possibly traces of nuts). See Random Number Generator for more information on the RNG and seeds.

Example

See Also

RNG_BytesWithPrompt

[Contents] [Index]

[HOME]   [NEXT: RNG_Test...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.