Sdílet prostřednictvím


PasswordDeriveBytes.GetBytes(Int32) Metoda

Definice

Upozornění

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

Vrátí pseudonáhodné klíčové bajty.

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

Parametry

cb
Int32

Počet pseudonáhodných bajtů klíče, které se mají vygenerovat.

Návraty

Byte[]

Pole bajtů naplněné pseudonáhodnými klíčovými bajty.

Atributy

Poznámky

Tato metoda může vytvořit libovolný počet pseudonáhodných bajtů. Síla posloupnosti bajtů je však omezena počtem bajtů ve výstupu hodnoty hash.

Platí pro

Viz také