staticrypt
staticrypt copied to clipboard
On Node, HexEncoder.stringify now uses Buffer.toString('hex')
Summary
Previously, HexEncoder.stringify could throw a "RangeError: Invalid array length" exception when processing large files. To workaround this, on Node, HexEncoder.stringify now uses Buffer.toString('hex').
Fixes
Fixes #213
Details
- There are now different versions of HexEncoder for Node and browser, active version is selected at startup
- Using built-in Node Buffer function is much faster.
Testing
I manually tested node encrypt, node decrypt, and HTML wrapper decrypt.