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

Org.BouncyCastle.Crypto.PasswordConverter

public sealed class PasswordConverter : ICharToByteConverter
Standard char[] to byte[] converters for password based derivation algorithms.
namespace Org.BouncyCastle.Crypto { public sealed class PasswordConverter : ICharToByteConverter { private delegate byte[] ConverterFunction (char[] password); public static readonly ICharToByteConverter Ascii; public static readonly ICharToByteConverter Utf8; public static readonly ICharToByteConverter Pkcs12; public string Name { get; } public byte[] Convert(char[] password); } }