@sapphirecode/password-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.51 • Public • Published

@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

/@sapphirecode/password-helper/

    Package Sidebar

    Install

    npm i @sapphirecode/password-helper

    Weekly Downloads

    1

    Version

    1.0.51

    License

    MIT

    Unpacked Size

    7.81 kB

    Total Files

    10

    Last publish

    Collaborators

    • timoho01