<PackageReference Include="BouncyCastle.Cryptography" Version="2.1.0" />

CmsPbeKey

public abstract class CmsPbeKey : ICipherParameters
public string Algorithm { get; }

public string Format { get; }

public int IterationCount { get; }

public byte[] Salt { get; }

public CmsPbeKey(char[] password, byte[] salt, int iterationCount)

public CmsPbeKey(char[] password, AlgorithmIdentifier keyDerivationAlgorithm)

public CmsPbeKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> salt, int iterationCount)

public CmsPbeKey(ReadOnlySpan<char> password, AlgorithmIdentifier keyDerivationAlgorithm)

public byte[] GetEncoded()