PasswordDeriveBytes.GetBytes(Int32) 메서드

정의

주의

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

의사(pseudo) 무작위 키 바이트를 반환합니다.

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

생성할 의사(pseudo) 난수 키 바이트의 수입니다.

반환

Byte[]

의사(pseudo) 난수 키 바이트로 채워진 바이트 배열입니다.

특성

설명

이 메서드는 임의의 의사 임의 바이트를 만들 수 있습니다. 그러나 바이트 시퀀스의 강도는 해시 출력의 바이트 수로 제한됩니다.

적용 대상

추가 정보