OxL Reference

method base64.encodeUrl

URL-safe Base64 without padding.

Example:

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

fn main() io {
  print(base64.encodeUrl(bytesOf(&"hello")))
}
Output
aGVsbG8
pub(api) static fn encodeUrl(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:367

See also