Encoding/decoding conversions.
- Source:
Methods
-
<static> ascii_to_b64(ascii)
-
ASCII to Base64 conversion
Parameters:
Name Type Description ascii
string A string representing ASCII data
- Source:
Returns:
The ASCII data as a string
- Type
- string
-
<static> b64_to_ascii(base64str)
-
Base64 to ASCII conversion
Parameters:
Name Type Description base64str
string Base64 data as a string
- Source:
Returns:
A string representation of the ASCII data
- Type
- string
-
<static> b64_to_binary(base64str)
-
Base64 to Binary conversion
Parameters:
Name Type Description base64str
string Base64 data to be converted
- Source:
Returns:
Data in binary format
- Type
- string
-
<static> b64_to_utf8(base64str)
-
Base64 to UTF-8 conversion
If a base64 string contains any whitespace character, DOM Exception 5 occurs during window.atob, please see
this stackoverflow answer for more information.Parameters:
Name Type Description base64str
string The string to convert
- Source:
Returns:
A string representation the decoded UTF=8 data
- Type
- string
-
<static> binary_to_b64(binary)
-
Binary to Base64 encoded ASCII conversion
Parameters:
Name Type Description binary
string A string in which each character represents a byte of binary data to encoded
- Source:
Returns:
A string containing the Base64 representation
- Type
- string
-
<static> utf8_to_b64(str)
-
UTF-8 to Base64 conversion
Parameters:
Name Type Description str
string The string to convert
- Source:
Returns:
A string representation bytes of encoded ASCII data (one character represents a single byte.)
- Type
- string