SOURCE

var a = "儿酱"
var b = a.length
var c = ""
var code = ""
var ecode = ""
var fcode = ""
var d = 0
var dum = 0
var partner = ["对立","诺诺","忘却","榛名","伞黑","小蓝","红姐","爱托","露娜","零光","骨折","夏光","彩梦","咲弥","轩辕","群愿"]
for(i = 0; i < b; i++)
{
    if(a.charCodeAt(i) <= 255)
    {
       d = a.charCodeAt(i)
       s = d.toString(16)
       c = c + "%" + s
    }
    else
        c = c + encodeURI(a[i])
}
b = c.length
for(i = 0; i < b; i++)
{
    if(c[i] != '%')
        code += c[i]
}
var key = Math.round(Math.random()*15)
b = code.length
for(i = 0; i < b; i++)
{
    dum = parseInt(code[i],16)
    dum = (dum + key) % 16
    ecode += dum.toString(16)

}
fcode = partner[key]
for(i = 0; i < b; i++)
{
    fcode = fcode + partner[parseInt(ecode[i],16)]
}
document.write(fcode)

//document.write(a+decodeURIComponent("%e4%b8%ad"))
console 命令行工具 X clear

                    
>
console