Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 1.1
.NET Framework
Reference
Class Library
Methods
 GetBytes Method
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
PasswordDeriveBytes.GetBytes Method

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

© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker