AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem 메서드

정의

오버로드

ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)

PEM 인코딩된 문자 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식으로 현재 키를 내보냅니다.

ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)

PEM 인코딩된 바이트 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식으로 현재 키를 내보냅니다.

ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)

Source:
AsymmetricAlgorithm.cs
Source:
AsymmetricAlgorithm.cs
Source:
AsymmetricAlgorithm.cs

PEM 인코딩된 문자 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식으로 현재 키를 내보냅니다.

public:
 System::String ^ ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
public string ExportEncryptedPkcs8PrivateKeyPem (ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
member this.ExportEncryptedPkcs8PrivateKeyPem : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> string
Public Function ExportEncryptedPkcs8PrivateKeyPem (password As ReadOnlySpan(Of Char), pbeParameters As PbeParameters) As String

매개 변수

password
ReadOnlySpan<Char>

키 자료를 암호화할 때 사용할 암호입니다.

pbeParameters
PbeParameters

키 자료를 암호화할 때 사용할 PBE(암호 기반 암호화) 매개 변수입니다.

반환

PEM으로 인코딩된 PKCS#8 EncryptedPrivateKeyInfo를 포함하는 문자열입니다.

예외

키를 내보낼 수 없습니다.

설명

PBKDF2(암호 기반 키 파생 함수 2)를 사용하는 알고리즘을 나타내는 경우 pbeParameters 암호는 UTF-8 인코딩을 통해 바이트로 변환됩니다.

          A PEM-encoded PKCS#8 EncryptedPrivateKeyInfo will begin with
         `-----BEGIN ENCRYPTED PRIVATE KEY-----` and end with
         `-----END ENCRYPTED PRIVATE KEY-----`, with the base64 encoded DER
          contents of the key between the PEM boundaries.

          The PEM is encoded according to the IETF RFC 7468 "strict" encoding rules.

적용 대상

ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)

Source:
AsymmetricAlgorithm.cs
Source:
AsymmetricAlgorithm.cs

PEM 인코딩된 바이트 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식으로 현재 키를 내보냅니다.

public:
 System::String ^ ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<System::Byte> passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters);
public string ExportEncryptedPkcs8PrivateKeyPem (ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
member this.ExportEncryptedPkcs8PrivateKeyPem : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> string
Public Function ExportEncryptedPkcs8PrivateKeyPem (passwordBytes As ReadOnlySpan(Of Byte), pbeParameters As PbeParameters) As String

매개 변수

passwordBytes
ReadOnlySpan<Byte>

키 자료를 암호화할 때 암호로 사용할 바이트입니다.

pbeParameters
PbeParameters

키 자료를 암호화할 때 사용할 PBE(암호 기반 암호화) 매개 변수입니다.

반환

PEM으로 인코딩된 PKCS#8 EncryptedPrivateKeyInfo를 포함하는 문자열입니다.

예외

키를 내보낼 수 없습니다.

설명

PEM으로 인코딩된 PKCS#8 EncryptedPrivateKeyInfo는 로 시작하고 -----BEGIN ENCRYPTED PRIVATE KEY----- 로 끝나 -----END ENCRYPTED PRIVATE KEY-----며 PEM 경계 간에 키의 base64로 인코딩된 DER 콘텐츠가 포함됩니다.

PEM은 IETF RFC 7468 "strict" 인코딩 규칙에 따라 인코딩됩니다.

적용 대상