0.2.3 • Published 1 year ago

x-hash v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

X-hash NPM Module


x-hash is a Javascript package that allows you to securely hash passwords with an optional salt and round value and use compare function to compare hashPassword and rawPassword

Installation

To install module simply run the following command in your console: npm install x-hash

Usage

To use x-hash, first import it into your project:

const x-hash = require("x-hash");

or:

const { hashPass, compare } = require("x-hash");

Examples

  • you can see how we hash passwords using x-hash package like below:

    const hashedPass = hashPass('password')
    const hashedPass = hashPass('password', { salt = 20, rounds = 15 })
    const hashedPass = hashPass('password', { salt = 10 })
  • if you want to compare passwords, here you are:

    const isEqualPass = compare('password', hashedPass)

🤝 Contribution

I will be grateful for any help you can provide to make this package better

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

1.1.1

2 years ago

1.0.1

2 years ago