Returns pseudo-random key bytes.
[Visual Basic]
Overrides Public Function GetBytes( _
ByVal cb As Integer _
) As Byte()
[C#]
public override byte[] GetBytes(
int cb
);
[C++]
public: unsigned char GetBytes(
int cb
) __gc[];
[JScript]
public override function GetBytes(
cb : int
) : Byte[];
Parameters
- cb
- The number of pseudo-random key bytes to generate.
Return Value
A byte array filled with pseudo-random key bytes.
Remarks
This method can create any number of pseudo-random bytes. However, the strength of the byte sequence is limited by the number of bytes in the hash output.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
PasswordDeriveBytes Class | PasswordDeriveBytes Members | System.Security.Cryptography Namespace | Cryptographic Services