87,955
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
function b26(input){
var _str = "abcdefghijklmnopqrstuvwxyz";
var _out = "";
var _tm1,_tm2,_tm3, _re1, _re2, _re3, _re4,i = 0;
while (i < input.length) {
_tm1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
_re1 = _tm1 >> 2;
_re2 = ((_tm1 & 3) << 4) | (chr2 >> 4);
_re3 = ((chr2 & 15) << 2) | (chr3 >> 6);
_re4 =_tm3 & 25;
if (isNaN(chr2)) {
_re3 = _re4 = 26;
} else if (isNaN(chr3)) {
_re4 = 26;
}
_out = _out + _str.charAt(_re1) + _str.charAt(_re2) + _str.charAt(_re3) + _str.charAt(_re4);
}
return _out;
}