Base64URL

Variation of Base64 encoding that is safe for use in URLs and filenames.

See Base64Impl for a description of available methods.

alias Base64URL = Base64Impl!('-', '_')

Examples

ubyte[] data = [0x83, 0xd7, 0x30, 0x7a, 0x01, 0x3f];
assert(Base64URL.encode(data) == "g9cwegE_");
assert(Base64URL.decode("g9cwegE_") == data);

Meta