base64Encode

Encode data as Base64

We use openssl to do this since we're already linking to it. As an alternative we could also use the phobos routines.

char[]
base64Encode
(
T
)
(
T t
)
if (
is(T : string) ||
is(T : char[])
||
is(T : ubyte[])
)

Return Value

Type: char[]

An array of chars with the base64 encoded data.

Meta