JSPM

password-decrypt-encrypt-node

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q19367F
  • License ISC

password decrypt and encrypt node

Package Exports

  • password-decrypt-encrypt-node
  • password-decrypt-encrypt-node/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (password-decrypt-encrypt-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

install package

npm install @lvenkatesh6526/password-decrypt-encrypt-node

use below example to generate unique password and valiadate the unique password

const add =require("password-decrypt-encrypt-node")

const originalPassword = '123456';

add.generateHashedPassword(originalPassword) .then((hashedPassword) => { console.log('Generated Hash:', hashedPassword);

const enteredPassword = '123456'; 

add.verifyPassword(enteredPassword, hashedPassword)
  .then((isMatch) => {
    if (isMatch) {
      console.log('Password Matched! Login Successful.');
    } else {
      console.log('Password Mismatch! Login Failed.');
    }
  })
  .catch((error) => {
    console.error('Error:', error.message);
  });

}) .catch((error) => { console.error('Error:', error.message); });