goog.crypt.base64
Namespace.ENCODED_VALS
{string
}Our default alphabet. Value 64 (=) is special; it means "nothing."
.ENCODED_VALS_BASE
{string
}Our default alphabet, shared between ENCODED_VALS and ENCODED_VALS_WEBSAFE
.ENCODED_VALS_WEBSAFE
{string
}Our websafe alphabet.
.HAS_NATIVE_SUPPORT
{boolean
}Whether this browser supports the atob and btoa functions. This extension started at Mozilla but is now implemented by many browsers. We use the ASSUME_* variables to avoid pulling in the full useragent detection library but still allowing the standard per-browser compilations.
.decodeString(input, opt_webSafe)
Base64-decode a string.
input
{string
}
opt_webSafe
{boolean
=}
string
}
.decodeStringToByteArray(input, opt_webSafe)
Base64-decode a string.
input
{string
}
opt_webSafe
{boolean
=}
Array
}
.encodeByteArray(input, opt_webSafe)
Base64-encode an array of bytes.
input
{Array
.<number
>|Uint8Array
}
opt_webSafe
{boolean
=}
string
}
.encodeString(input, opt_webSafe)
Base64-encode a string.
input
{string
}
opt_webSafe
{boolean
=}
string
}