CryptoSys API Library Manual

Rng.KeyBytes Method (Int32, String)

Generates a random key

Syntax

[C#]
public static byte[] KeyBytes(
	int numBytes,
	string seedStr
)
[VB.NET]
Public Shared Function KeyBytes ( _
	numBytes As Integer, _
	seedStr As String _
) As Byte()

Parameters

numBytes
Required number of random bytes
seedStr
User-supplied entropy in string format. Set as an empty string "" to ignore.

Return Value

Array of random bytes

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: RNG_KeyBytes

[Contents] [Index]

[HOME]   [NEXT: Rng.KeyHex Method (Int32, Byte)...]

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