Namespace: base64

bp.codec. base64

A set of encode / decode methods to go to / from base64 encoding.

Methods

(static) decode(input, disableUtf8Decodeopt) → {string}

Decodes from Base64.
Parameters:
Name Type Attributes Description
input string The input data to decode.
disableUtf8Decode boolean <optional>
Disable automatically decoding to UTF8.
Returns:
The decoded string.
Type
string

(static) encode(input, disableUtf8Encodeopt) → {string}

Encodes with base64.
Parameters:
Name Type Attributes Description
input string The input data to encode
disableUtf8Encode boolean <optional>
Whether or not we should bypass first encoding the string to UTF8.
Returns:
Encoded data.
Type
string