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

PbeParametersGenerator

public abstract class PbeParametersGenerator
protected int mIterationCount

protected byte[] mPassword

protected byte[] mSalt

public virtual int IterationCount { get; }

public virtual byte[] Password { get; }

public virtual byte[] Salt { get; }

public static byte[] Pkcs12PasswordToBytes(char[] password)

public static byte[] Pkcs12PasswordToBytes(char[] password, bool wrongPkcs12Zero)

public static byte[] Pkcs5PasswordToBytes(char[] password)

public static byte[] Pkcs5PasswordToUtf8Bytes(char[] password)

public abstract ICipherParameters GenerateDerivedMacParameters(int keySize)

public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize)

public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize, int ivSize)

public virtual void Init(byte[] password, byte[] salt, int iterationCount)