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

Org.BouncyCastle.Security.PbeUtilities

public static class PbeUtilities
namespace Org.BouncyCastle.Security { public static class PbeUtilities { public static DerObjectIdentifier GetObjectIdentifier(string mechanism); public static bool IsPkcs12(string algorithm); public static bool IsPkcs5Scheme1(string algorithm); public static bool IsPkcs5Scheme2(string algorithm); public static bool IsOpenSsl(string algorithm); public static bool IsPbeAlgorithm(string algorithm); public static Asn1Encodable GenerateAlgorithmParameters(DerObjectIdentifier algorithmOid, byte[] salt, int iterationCount); public static Asn1Encodable GenerateAlgorithmParameters(string algorithm, byte[] salt, int iterationCount); public static Asn1Encodable GenerateAlgorithmParameters(DerObjectIdentifier cipherAlgorithm, DerObjectIdentifier hashAlgorithm, byte[] salt, int iterationCount, SecureRandom secureRandom); public static ICipherParameters GenerateCipherParameters(DerObjectIdentifier algorithmOid, char[] password, Asn1Encodable pbeParameters); public static ICipherParameters GenerateCipherParameters(DerObjectIdentifier algorithmOid, char[] password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters); public static ICipherParameters GenerateCipherParameters(AlgorithmIdentifier algID, char[] password); public static ICipherParameters GenerateCipherParameters(AlgorithmIdentifier algID, char[] password, bool wrongPkcs12Zero); public static ICipherParameters GenerateCipherParameters(string algorithm, char[] password, Asn1Encodable pbeParameters); public static ICipherParameters GenerateCipherParameters(string algorithm, char[] password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters); public static object CreateEngine(DerObjectIdentifier algorithmOid); public static object CreateEngine(AlgorithmIdentifier algID); public static object CreateEngine(string algorithm); public static string GetEncodingName(DerObjectIdentifier oid); } }