View source code
Display the source code in std/base64.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Alias std.base64.Base64URL
Variation of Base64
encoding that is safe for use in URLs and filenames.
See
for a description of available methods.
Base64Impl
Declaration
alias Base64URL;
Example
ubyte[] data = [0x83, 0xd7, 0x30, 0x7a, 0x01, 0x3f]; assert(Base64URL.encode(data) == "g9cwegE_"); assert(Base64URL.decode("g9cwegE_") == data);
Authors
Masahiro Nakagawa, Daniel Murphy (Single value Encoder and Decoder)