@bzync/nextsql 0.0.2 → 0.0.3

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.
@@ -379,7 +379,7 @@ module.exports = function createClientEncryption(deps) {
379
379
  }
380
380
 
381
381
  function aesBlock(key, block) {
382
- const cipher = createCipheriv('aes-128-ecb', key, null);
382
+ const cipher = createCipheriv('aes-128-cbc', key, Buffer.alloc(16));
383
383
  cipher.setAutoPadding(false);
384
384
  return Buffer.concat([cipher.update(block), cipher.final()]);
385
385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bzync/nextsql",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Official NextSQL Node.js driver. Keys never go in URLs.",
5
5
  "license": "MIT",
6
6
  "main": "nextsql.js",