@the-/password

15.4.0 • Public • Published

@the-/password

npm Version

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/password

Weekly Downloads

1

Version

15.4.0

License

MIT

Unpacked Size

34.4 kB

Total Files

26

Last publish

Collaborators

  • okunishinishi