The OpenD Programming Language

Base64

Implementation of standard Base64 encoding.

See Base64Impl for a description of available methods.

import std.base64;
alias Base64 = Base64Impl!('+', '/')

Examples

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

Meta