org.bouncycastle.util.encoders (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

# Package org.bouncycastle.util.encoders

Classes for producing and reading Base64 and Hex strings.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  Encoder | Encode and decode byte arrays (typically from binary to 7-bit ASCII encodings).
  Translator | General interface for a translator.

- Class Summary
  Class | Description
  --- | ---
  Base32 | Utility class for converting Base32 data to bytes and back again.
  Base32Encoder | A streaming Base32 encoder.
  Base64 | Utility class for converting Base64 data to bytes and back again.
  Base64Encoder | A streaming Base64 encoder.
  BufferedDecoder | A buffering class to allow translation from one format to another to be done in discrete chunks.
  BufferedEncoder | A buffering class to allow translation from one format to another to be done in discrete chunks.
  Hex | Utility class for converting hex data to bytes and back again.
  HexEncoder | A streaming Hex encoder.
  HexTranslator | Converters for going from hex to binary and back.
  UrlBase64 | Convert binary data to and from UrlBase64 encoding.
  UrlBase64Encoder | Convert binary data to and from UrlBase64 encoding.
  UTF8 | Utilities for working with UTF-8 encodings.

- Exception Summary
  Exception | Description
  --- | ---
  DecoderException | Exception thrown if an attempt is made to decode invalid data, or some other failure occurs.
  EncoderException | Exception thrown if an attempt is made to encode invalid data, or some other failure occurs.

## Package org.bouncycastle.util.encoders Description

Classes for producing and reading Base64 and Hex strings.