0.0.4 • Published 7 years ago

sha256crypt v0.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

sha256crypt-node

sha256crypt is a pure JavaScript utility providing hash and verify functionality without the need of external dependencies.

Installation

npm install sha256crypt

Usage

hash

var sha256crypt = require('sha256crypt');
sha256crypt.hash(password, rounds, salt);
// sha256crypt.hash('password', 80000, 'wnsT7Yr92oJoP28r') => 'cKhJImk5mfuSKV9b3mumNzlbstFUplKtQXXMo4G6Ep5';

verify

var sha256crypt = require('sha256crypt');
sha256crypt.verify(password, rounds, salt, checksum);
// sha256crypt.verify('password', 80000, 'wnsT7Yr92oJoP28r', 'cKhJImk5mfuSKV9b3mumNzlbstFUplKtQXXMo4G6Ep5') => true;

Thanks

Thanks to Emscripten: An LLVM-to-JavaScript Compiler and all its contributers who made this possible.

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago