JSPM

password-controller

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q9256F
    • License ISC

    Generate hash from original password save and then check.

    Package Exports

    • password-controller
    • password-controller/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-controller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Password Controller

    Password Controller helps you to create hash from string and the compare to original. It's can help you for password saving.

    Quick start

    First, run npm i password-controller for your app. Then, in an app:

    const { generateSalt, hash, compare} = require("password-controller");
    
    const { hashedPassword, salt } = hash(password, generateSalt(12));
    
    compare(hashedPassword, salt, originalString)
    
    ## How it works
    
    password-controller is use crypto for generating a sha512 with salt which is generating with some rounds that you send.