From 2b515e6b71f5d5264f1c02df0838d47662598f45 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Fri, 2 Jun 2023 15:45:24 +0100 Subject: [PATCH] use argon2hash-wasm module --- crypto_pwhash.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto_pwhash.js b/crypto_pwhash.js index b6151c8..babeff6 100644 --- a/crypto_pwhash.js +++ b/crypto_pwhash.js @@ -1,6 +1,6 @@ /* eslint-disable camelcase */ const b4a = require('b4a') -const argon2 = require('../../wasm/argon2-wasm') +const argon2 = require('argon2hash-wasm') const { randombytes_buf } = require('./randombytes') const crypto_pwhash_argon2i_ALG_ARGON2I13 = 1 diff --git a/package.json b/package.json index ef1d921..a83aa94 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "WIP - a pure javascript version of sodium-native", "main": "index.js", "dependencies": { - "argon2-wasm": "^0.9.0", + "argon2hash-wasm": "^1.0.0", "blake2b": "^2.1.1", "chacha20-universal": "^1.0.4", "nanoassert": "^2.0.0",