Table of Contents

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

alphabet char[]

BasicAlphabetMapper(string)

public BasicAlphabetMapper(string alphabet)

Parameters

alphabet string

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

input byte[]

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

input char[]

characters to be mapped.

Returns

byte[]

an index array.