Provide a `base64` primitive
shs96c opened this issue · 2 comments
shs96c commented
When calculating things like integrity hashes (used by recent Bazel releases), it's helpful to be able to base64 encode and decode values. Starlark does not offer a mechanism to do this natively, though it may be possible to write one in pure starlark. Having a native implementation would be significantly faster (as we saw with JSON processing)
shs96c commented
One such pure Starlark implementation is here: https://github.com/aspect-build/bazel-lib/blob/main/lib/private/base64.bzl