Parameter | Type | Description |
---|---|---|
input | string / ArrayBuffer (≥ v0.31.0) | The input string or ArrayBuffer object to base64 encode. |
encoding (optional) | string | The base64 encoding to use. Available options are: - "std": the standard encoding with = padding chars and + and / characters in encoding alphabet. This is the default. - "rawstd": like std but without = padding characters. - "url": URL safe version of std, encoding alphabet doesn't contain + and / characters, but rather - and _ characters. - "rawurl": like url but without = padding characters. |
Returns
Type | Description |
---|---|
string | The base64 encoding of the input data. |