Bagikan melalui


PasswordDeriveBytes.GetBytes(Int32) Metode

Definisi

Perhatian

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

Mengembalikan byte kunci pseudo-random.

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

Parameter

cb
Int32

Jumlah byte kunci pseudo-random yang akan dihasilkan.

Mengembalikan

Byte[]

Array byte yang diisi dengan byte kunci pseudo-random.

Atribut

Keterangan

Metode ini dapat membuat sejumlah byte pseudo-random. Namun, kekuatan urutan byte dibatasi oleh jumlah byte dalam output hash.

Berlaku untuk

Lihat juga