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

See Also

VB6/C equivalent: RNG_KeyBytes

[Contents] [Index]

[PREV: Rng.KeyBytes Method (Int32, Byte)...]   [Contents]   [Index]   
   [NEXT: Rng.KeyHex Method (Int32, Byte)...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.