RunKit + npm: bcryptjs

node v10.24.1
endpointsharetweet
const bcrypt = require("bcryptjs") const cleartext = 'p45sw0rD' const hash = await bcrypt.hash(cleartext, 16) console.log('Hashed:', hash) const match = await bcrypt.compare(cleartext, hash) console.log('Compare matched:', match)
Created from: https://npm.runkit.com/bcryptjs
Loading…