2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-30 01:41:21 +00:00
bazel-lib/docs/base64.md

55 lines
906 B
Markdown
Raw Normal View History

<!-- Generated with Stardoc: http://skydoc.bazel.build -->
Public API
<a id="base64.decode"></a>
## base64.decode
<pre>
base64.decode(<a href="#base64.decode-data">data</a>)
</pre>
Decode a Base64 encoded string.
See https://en.wikipedia.org/wiki/Base64.
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="base64.decode-data"></a>data | base64 encoded string | none |
**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.
See https://en.wikipedia.org/wiki/Base64.
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="base64.encode-data"></a>data | string to encode | none |
**RETURNS**
The base64 encoded string