@the-/password
Password util for the-framework
Installation
$ npm install @the-/password --save
Usage
'use strict'
const thePassword = require('@the-/password')
async function tryExample() {
const { digest, generatePassword, generateSalt } = thePassword()
const salt = generateSalt()
const password = generatePassword()
const passwordHash = digest(password, salt)
console.log({ password, passwordHash })
/* ... */
}
tryExample().catch((err) => console.error(err))
API Guide
class
function
License
This software is released under the MIT License.