2022-11-26 01:00:02 +00:00
|
|
|
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
|
|
|
|
|
2024-08-08 19:56:11 +00:00
|
|
|
Utility functions for encoding and decoding strings with base64.
|
|
|
|
|
|
|
|
See https://en.wikipedia.org/wiki/Base64.
|
2022-11-26 01:00:02 +00:00
|
|
|
|
|
|
|
<a id="base64.decode"></a>
|
|
|
|
|
|
|
|
## base64.decode
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
base64.decode(<a href="#base64.decode-data">data</a>)
|
|
|
|
</pre>
|
|
|
|
|
2024-08-08 19:56:11 +00:00
|
|
|
Decode a base64 encoded string.
|
2022-11-26 01:00:02 +00:00
|
|
|
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
|
|
| :------------- | :------------- | :------------- |
|
2024-08-08 19:56:11 +00:00
|
|
|
| <a id="base64.decode-data"></a>data | base64-encoded string | none |
|
2022-11-26 01:00:02 +00:00
|
|
|
|
|
|
|
**RETURNS**
|
|
|
|
|
|
|
|
A string containing the decoded data
|
|
|
|
|
|
|
|
|
|
|
|
<a id="base64.encode"></a>
|
|
|
|
|
|
|
|
## base64.encode
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
base64.encode(<a href="#base64.encode-data">data</a>)
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
Base64 encode a string.
|
|
|
|
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
|
|
| :------------- | :------------- | :------------- |
|
|
|
|
| <a id="base64.encode-data"></a>data | string to encode | none |
|
|
|
|
|
|
|
|
**RETURNS**
|
|
|
|
|
2024-08-08 19:56:11 +00:00
|
|
|
The base64-encoded string
|
2022-11-26 01:00:02 +00:00
|
|
|
|
|
|
|
|