2.0.0 • Published 2 years ago

pbkdf2-wrapper v2.0.0

Weekly downloads
41
License
MIT
Repository
github
Last release
2 years ago

pbkdf2-wrapper

GitHub code size in bytes GitHub package.json version GitHub

A light wrapper around the native inbuilt pbkdf2 crypto functions used for password hashing, exposing promises and callbacks.

Installation

npm install --save pbkdf2-wrapper

Example Usage

import hashText from 'pbkdf2-wrapper/hashText';
import verifyHash from 'pbkdf2-wrapper/verifyHash';

// config is optional, if not passed will use the following as defaults
const config = {
  encoding: 'hex',
  digest: 'sha256',
  hashBytes: 32,
  saltBytes: 16,
  iterations: 372791
};

const hash = await hashText('test-password', config);
const equality = await verifyHash('test-password', hash, config);

License

This project is licensed under the terms of the MIT license.

2.0.0

2 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago