<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.6.26359.118" />

System.Security.Cryptography.Pkcs.Pkcs12Info

public sealed class Pkcs12Info
Represents the data from PKCS#12 PFX contents. This class cannot be inherited.

Gets a read-only collection of the SafeContents values present in the PFX AuthenticatedSafe.

Gets a value that indicates the type of tamper protection provided for the AuthenticatedSafe contents.

public static Pkcs12Info Decode(ReadOnlyMemory<byte> encodedBytes, out int bytesConsumed, bool skipCopy = false)

Reads the provided data as a PKCS#12 PFX and returns an object view of the contents.

public bool VerifyMac(string password)

Attempts to verify the integrity of the AuthenticatedSafe contents with a password represented by a String.

public bool VerifyMac(ReadOnlySpan<char> password)

Attempts to verify the integrity of the AuthenticatedSafe contents with a password represented by a System.ReadOnlySpan{System.Char}.