AND 和 OR 运算是不是没有逆运算呀?那下面这种程序要如何写一个 decode 算法呢?是不是解密有另外的一个码表?有没有吊大的可以给一下解题思路?
const codeTable = 'a=9-vBc3C0iDWJE4gFumGYsHoyIe7KxVLkXM6ZNqbOtdPwfQzh12jR5lS8nT_pUAr' const encode = json => { let result = '' for (let i = 0; i < json.length;) { const a = json.charCodeAt(i++) const b = json.charCodeAt(i++) const c = json.charCodeAt(i++) const d = a >> 2 const e = (( & a) << 4) | (b >> 4) let f = ((b & 15) << 2) | (c >> 6) let g = c & 63 isNaN(b) ? f = g = 64 : isNaN(c) && (g = 64) result = result + codeTable[d] + codeTable[e] + codeTable[f] + codeTable[g] } return result } const decode = cipher => { } 