Skip to content

crypto.js

Fosco Marotto edited this page Jan 28, 2016 · 1 revision
crypto.js

Uses bcrypt for password hashing and comparison


crypto.hash('hunter2').then( ... ).catch( ... );

crypto.compare('hunter2', 'previously-hashed-password-hash').then( ... ).catch( ... );