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

Org.BouncyCastle.OpenSsl.Pkcs8Generator

namespace Org.BouncyCastle.OpenSsl { public class Pkcs8Generator : PemObjectGenerator { public static readonly string PbeSha1_RC4_128; public static readonly string PbeSha1_RC4_40; public static readonly string PbeSha1_3DES; public static readonly string PbeSha1_2DES; public static readonly string PbeSha1_RC2_128; public static readonly string PbeSha1_RC2_40; public SecureRandom SecureRandom { set; } public char[] Password { set; } public int IterationCount { set; } public Pkcs8Generator(AsymmetricKeyParameter privKey); public Pkcs8Generator(AsymmetricKeyParameter privKey, string algorithm); public PemObject Generate(); } }