PasswordDeriveBytes.GetBytes(Int32) 方法

定义

注意

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

返回伪随机密钥字节。

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

参数

cb
Int32

要生成的伪随机密钥字节数。

返回

Byte[]

由伪随机密钥字节组成的字节数组。

属性

注解

此方法可以创建任意数量的伪随机字节。 但是,字节序列的强度受哈希输出中的字节数的限制。

适用于

另请参阅