Skip to content

A simple npm package to generate a hash from a password using the SHA-256 algorithm.

Notifications You must be signed in to change notification settings

fazil-shaik/hashGenrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hashGenrator

Password Hash Generator

A simple npm package to generate a hash from a password using the SHA-256 algorithm.

Installation

You can install the package using npm:

npm install password-hash-generator

Usage First, require the hashpassGen function in your Node.js application:

const hashpassGen = require('password-hash-generator');

Then, use the hashpassGen function to generate a hash from a password:

const password = 'MySecretPassword';
hashpassGen(password)
  .then(hash => console.log('Generated Hash:', hash))
  .catch(err => console.error('Error generating hash:', err));

The hashpassGen function returns a Promise that resolves with the generated hash (in hexadecimal format) or rejects if there's an error during hash generation.

License: This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple npm package to generate a hash from a password using the SHA-256 algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published