Skip to main content

Module encoding

Module encoding 

Source
Expand description

Common text encodings.

(base64-encode STR) → standard base64 (with padding) (base64-decode STR) → decoded string (non-utf8 = error) (base64url-encode STR) → URL-safe base64, no padding (base64url-decode STR) → decoded (url-encode STR) → percent-encoded (RFC 3986 unreserved) (url-decode STR) → percent-decoded (hex-encode STR) → lowercase hex (bytes of STR) (hex-decode STR) → string (non-utf8 = error)

Functions§

install