encodes data and returns as an ASCII base64 string.
what is to be encoded
buffer large enough to hold encoded data
char[512] encodebuf; char[] myEncodedString = encode(cast(ubyte[])"Hello, how are you today?", encodebuf); Stdout(myEncodedString).newline; // SGVsbG8sIGhvdyBhcmUgeW91IHRvZGF5Pw==
See Implementation
encodes data and returns as an ASCII base64 string.