File

libs/encodings.lua @ 130:5de7f66e4168

libs/encodings.lua: Use mime.b64 for base64.encode
author Matthew Wild <mwild1@gmail.com>
date Mon, 13 Sep 2010 14:47:20 +0100
parent 107:59c6f2deb8ab
child 391:b496f0262a3f
line wrap: on
line source

local function not_impl()
	error("Function not implemented");
end

local mime = require "mime";

module "encodings"

stringprep = {};
base64 = { encode = mime.b64, decode = not_impl }; --mime.unb64 is buggy with \0

return _M;