Aracılığıyla paylaş


PasswordDeriveBytes.GetBytes(Int32) Yöntem

Tanım

Dikkat

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

Sahte rastgele anahtar baytları döndürür.

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

Parametreler

cb
Int32

Oluşturulacak sahte rastgele anahtar baytlarının sayısı.

Döndürülenler

Byte[]

Sahte rastgele anahtar baytlarıyla dolu bir bayt dizisi.

Öznitelikler

Açıklamalar

Bu yöntem, istediğiniz sayıda sahte rastgele bayt oluşturabilir. Ancak bayt dizisinin gücü karma çıktıdaki bayt sayısıyla sınırlıdır.

Şunlara uygulanır

Ayrıca bkz.