Hi Thanks for this package first,
I trying to use it but i get this error if have big files :(
The File where it fails has 800MB
Code:
const instance = new Cryptify(destination + '.enc', encryptionKey, 'aes-256-cbc-hmac-sha256', undefined, true, true);
instance.encrypt()
.then((encryptedFile) => {
resolve(destination + '.enc')
})
.catch((e) => {
console.log(e);
});
can you maybe help ?
Error: Cannot create a string longer than 0x1fffffe8 characters
at Object.slice (node:buffer:599:37)
at Buffer.toString (node:buffer:819:14)
at Object.readFileSync (node:fs:502:41)
at /.../node_modules/cryptify/lib/CryptifyBase.js:299:47
at Array.map (<anonymous>)
at CryptifyModule.getFilesSync (/.../node_modules/cryptify/lib/CryptifyBase.js:299:23)
at /.../node_modules/cryptify/lib/CryptifyBase.js:366:55
at Generator.next (<anonymous>)
at asyncGeneratorStep (/.../node_modules/cryptify/lib/CryptifyBase.js:26:103)
at _next (/.../node_modules/cryptify/lib/CryptifyBase.js:28:194) {
code: 'ERR_STRING_TOO_LONG'
}
Hi Thanks for this package first,
I trying to use it but i get this error if have big files :(
The File where it fails has 800MB
Code:
can you maybe help ?