welsonjs/lib/base64.js
2020-11-09 19:06:34 +09:00

18 lines
521 B
JavaScript

////////////////////////////////////////////////////////////////////////
// Base64 API
////////////////////////////////////////////////////////////////////////
var XML = require("lib/xml");
exports.encode = function(sText) {
return XML.createElement("base64").encode(sText, "bin.base64");
};
exports.decode = function(vCode) {
return XML.createElement("base64").decode(vCode, "bin.base64");
};
exports.VERSIONINFO = "Base64 Module (base64.js) version 0.1";
exports.global = global;
exports.require = require;