• Decode either base64 or hex data.

    Parameters

    • data: string

      Data to encode.

    • encoding: Encoding

      Encoding to use: base64 or hex

    Returns Uint8Array

    Encoded value.