staticrypt icon indicating copy to clipboard operation
staticrypt copied to clipboard

On Node, HexEncoder.stringify now uses Buffer.toString('hex')

Open jimhark opened this issue 5 months ago • 0 comments

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.

jimhark avatar Jul 20 '25 19:07 jimhark