Function encodeBytes

  • Encode cryptographic bytes (keys, signatures) in the given encoding.

    Parameters

    • bytes: Uint8Array

      raw bytes to encoded

    • encoding: CryptoBytesEncoding = "base64"

      one of the supported encoding specifiers. Default is base64, and padding is always stripped from base64 encoded output.

    Returns string

    a string encoding of the bytes

Generated using TypeDoc