Skip to content

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

License

Notifications You must be signed in to change notification settings

imzcy/sha256crypt-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published