CryptoSys API Library Manual

Rng.BytesWithPrompt Method (Int32, String, Rng.Strength)

Generates an array of random bytes with a prompt for keyboard input

Syntax

[C#]
public static byte[] BytesWithPrompt(
	int numBytes,
	string prompt,
	Rng.Strength strength
)
[VB.NET]
Public Shared Function BytesWithPrompt ( _
	numBytes As Integer, _
	prompt As String, _
	strength As Rng.Strength _
) As Byte()

Parameters

numBytes
Required number of random bytes
prompt
Alternative prompt. Set as an empty string "" for the default prompt.
strength
Estimated security strength

Return Value

Array of random bytes

[Contents] [Index]

[HOME]   [NEXT: Rng.HexWithPrompt Method (Int32)...]

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.