Class BasicAlphabetMapper
- Namespace
- Org.BouncyCastle.Crypto.Utilities
- Assembly
- BouncyCastle.Cryptography.dll
public class BasicAlphabetMapper : IAlphabetMapper
- Inheritance
-
BasicAlphabetMapper
- Implements
- Inherited Members
Constructors
BasicAlphabetMapper(char[])
public BasicAlphabetMapper(char[] alphabet)
Parameters
alphabetchar[]
BasicAlphabetMapper(string)
public BasicAlphabetMapper(string alphabet)
Parameters
alphabetstring
Properties
Radix
Return the number of characters in the alphabet.
public int Radix { get; }
Property Value
- int
the radix for the alphabet.
Methods
ConvertToChars(byte[])
Return a char[] for this alphabet based on the indexes passed.
public char[] ConvertToChars(byte[] input)
Parameters
inputbyte[]input array of indexes.
Returns
- char[]
an array of char corresponding to the index values.
ConvertToIndexes(char[])
Return the passed in char[] as a byte array of indexes (indexes can be more than 1 byte)
public byte[] ConvertToIndexes(char[] input)
Parameters
inputchar[]characters to be mapped.
Returns
- byte[]
an index array.