PasswordDeriveBytes.GetBytes(Int32) Metod

Definition

Varning

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

Returnerar pseudo-slumpmässiga nyckelbyte.

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

Parametrar

cb
Int32

Antalet pseudo-slumpmässiga nyckelbyte som ska genereras.

Returer

Byte[]

En bytematris fylld med pseudo-slumpmässiga nyckelbyte.

Attribut

Kommentarer

Den här metoden kan skapa valfritt antal pseudo-slumpmässiga byte. Bytesekvensens styrka begränsas dock av antalet byte i hash-utdata.

Gäller för

Se även