bcrypt-fast
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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,
));

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i bcrypt-fast

      Weekly Downloads

      5

      Version

      0.1.0

      License

      none

      Unpacked Size

      99.9 kB

      Total Files

      6

      Last publish

      Collaborators

      • kenansulayman