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

ICharToByteConverter

public interface ICharToByteConverter
Interface for a converter that produces a byte encoding for a char array.
string Name { get; }

The name of the conversion.

byte[] Convert(char[] password)

Return a byte encoded representation of the passed in password.