@1auth/crypto 0.0.0-alpha.30 → 0.0.0-alpha.31

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -16,7 +16,7 @@ const options = {
16
16
  encryptionSharedKey: '',
17
17
  encryptionMethod: 'chacha20-poly1305', // AES-256 GCM (aes-256-gcm) or ChaCha20-Poly1305 (chacha20-poly1305)
18
18
 
19
- digestAlgorithm: 'sha3-256',
19
+ digestAlgorithm: 'sha3-384',
20
20
  digestSalt: ''
21
21
  }
22
22
 
@@ -384,14 +384,14 @@ export const makeAsymmetricKeys = async (encryptionKey) => {
384
384
  return { publicKey, privateKey }
385
385
  }
386
386
 
387
- export const makeSignature = (data, privateKey, algorithm = 'SHA3-256') => {
387
+ export const makeSignature = (data, privateKey, algorithm = 'SHA3-384') => {
388
388
  return sign(algorithm, Buffer.from(data), privateKey).toString('base64')
389
389
  }
390
390
  export const verifySignature = (
391
391
  data,
392
392
  publicKey,
393
393
  signature,
394
- algorithm = 'SHA3-256'
394
+ algorithm = 'SHA3-384'
395
395
  ) => {
396
396
  return verify(
397
397
  algorithm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1auth/crypto",
3
- "version": "0.0.0-alpha.30",
3
+ "version": "0.0.0-alpha.31",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {
@@ -44,8 +44,8 @@
44
44
  "url": "https://github.com/willfarrell/1auth/issues"
45
45
  },
46
46
  "homepage": "https://github.com/willfarrell/1auth",
47
- "gitHead": "bba2971096bfd6bcc30e7613fae272896456ecfa",
47
+ "gitHead": "246b0b521e6d136d8f37ee7d9781ffc8ccc987bd",
48
48
  "dependencies": {
49
- "@node-rs/argon2": "1.8.0"
49
+ "@node-rs/argon2": "1.8.3"
50
50
  }
51
51
  }