@celadora/password-util
v1.0.13
Published
Password utility
Downloads
1
Readme
Password Utility
Usage
import util from '@celadora/password-util'
const PASSWORD = 'plain-text-password'
// generate a salted hash
const hash = await util.generate(PASSWORD);
// validate password (returns Promise<boolean>)
const valid = await util.validate(PASSWORD, hash);