0.1.0 • Published 5 years ago

bcrypt-fast v0.1.0

Weekly downloads
6
License
-
Repository
github
Last release
5 years ago

bcrypt-wasm

WebAssembly version of bcrypt for Node environments

Build

$ make

Usage

$ yarn add bcrypt-fast
const bcrypt = require("bcrypt-fast");

const start = process.hrtime();

const password = "test";

const hashA = bcrypt.hash(
    password,
    4,
);

const hashB = bcrypt.hash(
    password,
    4,
);

assert(hashA !== hashB);

assert(bcrypt.verify(
    password,
    hashA,
));

assert(bcrypt.verify(
    password,
    hashB,
));