the
atob
of
text
the
atob
of
(
text ,
algorithm )
atob
(
text ,
algorithm )
Text yields a string
. Algorithm yields the name of an ASCII-to-binary decoding algorithm.
The atob
function decodes ASCII text back into binary data using the specified algorithm. If the algorithm is not specified, base64
is the default.
The atob
function supports the following algorithms:
b64 , base64 |
The Base64 encoding scheme. Must provide the raw text without headers or footers. Whitespace is ignored. |
uu , uud , uudecode |
The uuencode /uudecode encoding scheme. Headers and footers are optional; if the header is provided, the footer must be as well, and vice versa. |
xx , xxd , xxdecode |
The xxencode /xxdecode encoding scheme. Headers and footers are optional; if the header is provided, the footer must be as well, and vice versa. |
hqx , binhex |
The encoding scheme used by BinHex, including run-length encoding. The beginning and ending colons are optional. Must provide the raw text without headers. Returns the raw binary data as encoded (separating out metadata, forks, and CRCs must be done manually). |
a85 , ascii85 |
The ASCII85 encoding scheme. The <~ and ~> markers are optional. The y character for a string of four spaces is supported. |
k85 , kreative85 |
A variant of the ASCII85 encoding scheme that uses a different alphabet. Must provide the raw text without markers. |
l85 , legacy85 |
Something Resplendence calls Base85. Don't use this. |