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

IAlphabetMapper

public interface IAlphabetMapper
int Radix { get; }

Return the number of characters in the alphabet.

char[] ConvertToChars(byte[] input)

Return a char[] for this alphabet based on the indexes passed.

byte[] ConvertToIndexes(char[] input)

Return the passed in char[] as a byte array of indexes (indexes can be more than 1 byte)