roxify 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -618,6 +618,8 @@ export async function encodeBinaryToPng(input, opts = {}) {
|
|
|
618
618
|
payload = Buffer.concat([Buffer.from([ENC_AES]), salt, iv, tag, enc]);
|
|
619
619
|
if (opts.onProgress)
|
|
620
620
|
opts.onProgress({ phase: 'encrypt_done' });
|
|
621
|
+
}
|
|
622
|
+
else if (encChoice === 'xor') {
|
|
621
623
|
const xored = applyXor(payload, opts.passphrase);
|
|
622
624
|
payload = Buffer.concat([Buffer.from([ENC_XOR]), xored]);
|
|
623
625
|
if (opts.onProgress)
|
package/package.json
CHANGED