mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 23:41:42 +00:00
18 lines
521 B
JavaScript
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;
|