ps-password-hasher

1.0.1 • Public • Published

Password Hasher

A simple password hashing library using SHA-256.

Installation

npm install password-hasher

Example Ussage

const { hashPassword, verifyPassword } = require("./index");

const password = "mySecurePassword123";

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

if (verifyPassword(password, hashedPassword)) {
    console.log(" Password Matched!");
} else {
    console.log(" Password Incorrect!");
}

Package Sidebar

Install

npm i ps-password-hasher

Weekly Downloads

4

Version

1.0.1

License

Apache-2.0

Unpacked Size

2.05 kB

Total Files

3

Last publish

Collaborators

  • tomarmayankk