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[]

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

Атрибуты

Комментарии

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

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

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