Skip to content

Commit

Permalink
Merge pull request #11 from garbados/feat/modern-crypto-standards
Browse files Browse the repository at this point in the history
breaking: update crypto standards
  • Loading branch information
garbados committed Apr 14, 2021
2 parents c5f86ce + 81b9811 commit 6a9e8ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/crypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
const assert = require('assert')
const crypto = require('crypto')

const ALGORITHM_NAME = 'aes-128-gcm'
const ALGORITHM_NAME = 'aes-256-gcm'
const ALGORITHM_NONCE_SIZE = 12
const ALGORITHM_TAG_SIZE = 16
const ALGORITHM_KEY_SIZE = 16
const PBKDF2_NAME = 'sha256'
const ALGORITHM_KEY_SIZE = 32
const PBKDF2_NAME = 'sha512'
const PBKDF2_SALT_SIZE = 16
const PBKDF2_ITERATIONS = 10000

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comdb",
"version": "1.3.0-beta",
"version": "2.0.0-beta",
"description": "A PouchDB plugin that transparently encrypts and decrypts its data.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6a9e8ad

Please sign in to comment.