Expand description
Encoding helpers (base64, hex, URL) backed by the host runtime.
These are zero-dep wrappers - calling the host avoids pulling a Rust
base64/hex crate into your Wasm binary, which keeps .wasm size down.
Functionsยง
- base64_
decode - Decode a base64 string into raw bytes.
- base64_
encode - Base64-encode a byte slice using the standard alphabet (with padding).
- hex_
decode - Decode a hex string into raw bytes. Accepts upper or lower case.
- hex_
encode - Hex-encode a byte slice (lowercase, no separators).
- url_
decode - URL-decode a percent-encoded string.
- url_
encode - URL-encode a string using percent-encoding (
application/x-www-form-urlencodedrules).