pub fn jw(buf: &[u8], key: u8) -> Vec<u8> ⓘExpand description
XOR every byte of buf with key.
JS source: function jw(t, n) { ... String.fromCharCode(n ^ t.charCodeAt(r)) ... }
All real call sites in the captured init.js pass ASCII-range inputs
(hP produces base64 bytes; JSON.stringify produces UTF-8 bytes
without surrogate pairs in our usage), so the JS UTF-16 semantics
collapse to byte XOR.