Timo Hocker
689bde336e
update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@sapphirecode/encoding-helper: 1.0.46 ==> 1.0.48 minor @sapphirecode/eslint-config: 2.1.13 ==> 2.1.15 minor @stryker-mutator/core: 3.3.0 ==> 3.3.1 minor @stryker-mutator/javascript-mutator: 3.3.0 ==> 3.3.1 minor ava: 3.9.0 ==> 3.10.1 minor eslint: 7.3.1 ==> 7.4.0 minor
@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('@sapphirecode/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
Description
Languages
JavaScript
100%