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

PbeUtilities

public static class PbeUtilities
public static object CreateEngine(DerObjectIdentifier algorithmOid)

public static object CreateEngine(AlgorithmIdentifier algID)

public static object CreateEngine(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 string GetEncodingName(DerObjectIdentifier oid)

public static DerObjectIdentifier GetObjectIdentifier(string mechanism)

Returns a ObjectIdentifier for a give encoding.

public static bool IsOpenSsl(string algorithm)

public static bool IsPbeAlgorithm(string algorithm)

public static bool IsPkcs12(string algorithm)

public static bool IsPkcs5Scheme1(string algorithm)

public static bool IsPkcs5Scheme2(string algorithm)