D Documentation  
encode
char[] encode(char[] str)

This will encode a char array to base64.
To do: What is base64 encoding, where do you need it?

Example:
writef(encode("all your base64 are belong to foo"));

Prints:
YWxsIHlvdXIgYmFzZTY0IGFyZSBiZWxvbmcgdG8gZm9v
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.