bazel-lib/docs/base64.md

915 B

Utility functions for encoding and decoding strings with base64.

See https://en.wikipedia.org/wiki/Base64.

base64.decode

base64.decode(data)

Decode a base64 encoded string.

PARAMETERS

Name Description Default Value
data base64-encoded string none

RETURNS

A string containing the decoded data

base64.encode

base64.encode(data)

Base64 encode a string.

PARAMETERS

Name Description Default Value
data string to encode none

RETURNS

The base64-encoded string