core icon indicating copy to clipboard operation
core copied to clipboard

Problem with phc argon hash

Open lucaisoardi opened this issue 5 years ago • 1 comments

Hi there,

I've a problem with the hash functions. If i try to crypt the user password with method Hash.hash i give this error.

Cannot find module 'phc-argon2'

I've changed the file Argon.js in Drivers folder from

const phc_argon2_1 = __importDefault(require("phc-argon2"));

to

const phc_argon2_1 = __importDefault(require("@phc/argon2"));

And now work well, but when i do an update the file will be overwritten.

There is an alpha version with this fix? Thanks.

lucaisoardi avatar Dec 25 '20 10:12 lucaisoardi

Hey @lucaisoardi! 👋

If it told you that he cannot find the module phc-argon2 it means you need to install it.

npm i phc-argon2

RomainLanz avatar Dec 26 '20 20:12 RomainLanz