Skip to main content

Module base64url

Module base64url 

Source
Expand description

§modo::encoding::base64url

RFC 4648 base64url encoding and decoding without padding.

The alphabet uses - and _ instead of + and /, making encoded output safe for URLs, HTTP headers, and cookie values without percent-encoding.

Provides:

  • encode — encode bytes to a base64url string, no padding
  • decode — decode a base64url string back to bytes

Functions§

decode
Decodes a base64url-encoded string.
encode
Encodes bytes using RFC 4648 base64url (alphabet A–Za–z0–9-_), without padding.