Skip to content

Securely manage user passwords in your Node.js applications with Secure-Password-Hash! This package offers easy-to-use functions for hashing and verifying passwords, ensuring they're stored securely without ever being recoverable.

Notifications You must be signed in to change notification settings

coder-adnan/secure-password-npm-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure-password-hash

Secure-Hash is a Node.js package for securely hashing and verifying passwords.

Installation

To install the package, run the following command:

npm install secure-password-hash

Usage

Require the secure-hash package in your code to access its functionality:

const { hashPassword, verifyPassword } = require("secure-hash");

Hashing Passwords

To hash passwords, use the hashPassword function provided by the package. Here's an example:

const password = "userPassword";
const hashedPassword = hashPassword(password);
console.log("Hashed password:", hashedPassword);

Verifying Passwords

To verify passwords, use the verifyPassword function provided by the package. Here's an example:

const password = "userPassword";
const isMatch = verifyPassword(
  password,
  hashedPassword.hash,
  hashedPassword.salt
);
console.log("Password match:", isMatch);

About

Securely manage user passwords in your Node.js applications with Secure-Password-Hash! This package offers easy-to-use functions for hashing and verifying passwords, ensuring they're stored securely without ever being recoverable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published