password-helper/README.md
2020-05-17 17:23:22 +02:00

555 B

@sapphirecode/password-helper

version: 1.0.x

easy password storage with argon2

Installation

npm:

npm i --save @sapphirecode/password-helper

yarn:

yarn add @sapphirecode/password-helper

Usage

const password_helper = require('@scode/password-helper');

// create a hash
const hash = await password_helper.hash('foo');

// verify a password using the hash
await password_helper.verify(hash, 'foo'); // returns true;
await password_helper.verify(hash, 'bar'); // returns false;

License

MIT © Timo Hocker timo@scode.ovh