Available
amalgame-encoding
Base64, Hex, percent-encoding.
Overview
Common encodings: Base64 (standard + URL-safe), hexadecimal, percent-encoding (URL). Pure Amalgame, dependency-free.
Features
- ✓Standard and URL-safe Base64 (with/without padding)
- ✓Hex encode/decode
- ✓Percent-encoding (URL component)
- ✓No C dependency
- ✓Used by
crypto,net-websocket, Mosaic
Example
Minimal usage example — copy-paste runnable after install.
amc package add encoding
let b64 = Encoding.Base64Encode("hello world") // "aGVsbG8gd29ybGQ="
let hex = Encoding.HexEncode([0xDE, 0xAD, 0xBE, 0xEF]) // "deadbeef"
At a glance
- License: Apache-2.0
- Install:
amc package add encoding - Source: amalgame-lang/amalgame-encoding
- Official index: amalgame-lang/packages-index