PasswordDeriveBytes.GetBytes(Int32) Метод

Определение

Внимание

Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key material from a password and is preferred in new applications.

Возвращает псевдослучайные байты ключей.

public:
 override cli::array <System::Byte> ^ GetBytes(int cb);
[System.Obsolete("Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key material from a password and is preferred in new applications.")]
public override byte[] GetBytes(int cb);
public override byte[] GetBytes(int cb);
[<System.Obsolete("Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key material from a password and is preferred in new applications.")>]
override this.GetBytes : int -> byte[]
override this.GetBytes : int -> byte[]
Public Overrides Function GetBytes (cb As Integer) As Byte()

Параметры

cb
Int32

Количество генерируемых псевдослучайных байтов ключей.

Возвращаемое значение

Byte[]

Массив байтов, заполненный псевдослучайным ключом байтов.

Атрибуты

Комментарии

Этот метод может создать любое количество псевдослучайных байтов. Однако сила последовательности байтов ограничена количеством байтов в хэш-выходных данных.

Применяется к

См. также раздел