PasswordDeriveBytes.GetBytes(Int32) Metoda

Definicja

Uwaga

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

Zwraca pseudolosowe bajty klucza.

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

Parametry

cb
Int32

Liczba pseudolosowych bajtów klucza do wygenerowania.

Zwraca

Byte[]

Tablica bajtów wypełniona pseudolosowymi bajtami kluczy.

Atrybuty

Uwagi

Ta metoda może utworzyć dowolną liczbę pseudolosowych bajtów. Jednak siła sekwencji bajtów jest ograniczona przez liczbę bajtów w danych wyjściowych skrótu.

Dotyczy

Zobacz też