PasswordDeriveBytes.GetBytes(Int32) Metodo

Definizione

Attenzione

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

Restituisce byte di chiave pseudo-casuali.

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()

Parametri

cb
Int32

Numero di byte di chiave pseudo-casuali da generare.

Valori restituiti

Byte[]

Matrice di byte riempita con byte di chiave pseudo-casuali.

Attributi

Commenti

Questo metodo può creare un numero qualsiasi di byte pseudo-casuali. Tuttavia, la forza della sequenza di byte è limitata dal numero di byte nell'output hash.

Si applica a

Vedi anche