1onmessage = async function (event) { 2 try { 3 const key = event.data.key; 4 const nonce = event.data.nonce; 5 const encrypted = event.data.encrypted; 6 const cryptoKey = await crypto.subtle.importKey("raw", key, "AES-GCM", false, ["decrypt"]) 7 // console.log(`NLen: ${nonce.length}`) 8 // console.log(`enclen: ${encrypted.length}`) 9 // console.log(`ckey: ${cryptoKey.algorithm}`); 10 const decrypted = await crypto.subtle.decrypt({ 11 name: "AES-GCM", 12 iv: nonce 13 }, cryptoKey, encrypted) 14 postMessage(new Uint8Array(decrypted)) 15 } catch (e) { 16 console.log(`error: ${e}`) 17 } 18}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.