UNPKG

dax-js-rot13

Version:
8 lines (7 loc) 695 B
/* DaxJsRot13 * daXXog's javascript rot13 * (c) 2013 David (daXXog) Volm ><> + + + <>< * Released under Apache License, Version 2.0: * http://www.apache.org/licenses/LICENSE-2.0.html */ (function(a,c){"object"===typeof exports?module.exports=c():"function"===typeof define&&define.amd?define(c):a.rot13=c()})(this,function(){return function(){var a,c,b;c=function(g,a){return'case "'+String.fromCharCode(g)+'":return "'+String.fromCharCode(a)+'";'};b=function(a){for(var b="",d=a+26;a<d;a++){var e=a+13,f=e;e>=d&&(f=a-13);b+=c(a,f)}return b};a='(function(s){return (s=(s)?s:this).split("").map(function(c){switch(c){'+b(65)+b(97);return eval(a+'default: return c;}}).join("");});')}()});