OxL Reference

method base64.encode

Base64 with padding.

Example:

oxl✓ checked in CI
use std.crypto { base64 }
use std.ser { bytesOf }

fn main() io {
  print(base64.encode(bytesOf(&"hello")))
}
Output
aGVsbG8=
pub(api) static fn encode(input: bytes) -> str

Since. 1.0.0-beta

Parameters

NameType
inputbytes

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/crypto/crypto.oxl:352

See also