I'm not sure if this is recommened, or if so, why it should be fine. I'm allocating memory on the stack and returning it from the function. Is this a bad thing?
pub fn md5base64(bytes: [16]u8) []const u8 { var dest: [24]u8 = undefined; var enc = std.base64.Base64Encoder.init(std.base64.standard_alphabet_chars, '='); _ = enc.encode(&dest, &bytes); return &dest; }