Botan

Hex Encoder/Decoder

License
Botan is released under the Simplified BSD License (see LICENSE.md)

class  HexEncoder: botan.filters.filter.Filter, botan.filters.filter.Filterable;

Converts arbitrary binary data to hex strings, optionally with newlines inserted


alias  Case = bool;

Whether to use uppercase or lowercase letters for the encoded string.


this(Case the_case);

Create a hex encoder.

Parameters
Case the_case the case to use in the encoded strings.

this(bool newlines = false, size_t line_length = 72, Case the_case = Uppercase);

Create a hex encoder.

Parameters
bool newlines should newlines be used
size_t line_length if newlines are used, how long are lines
Case the_case the case to use in the encoded strings

class  HexDecoder: botan.filters.filter.Filter, botan.filters.filter.Filterable;

Converts hex strings to bytes


this(DecoderChecking checking = NONE);

Construct a Hex Decoder using the specified character checking.

Parameters
DecoderChecking checking the checking to use during decoding.

immutable size_t  HEX_CODEC_BUFFER_SIZE;

Size used for internal buffer in hex encoder/decoder