node-data-cryption

1.0.2 • Public • Published

NODE-DATA-CRYPTION

This is a simple Node.js package that provides functions to securely encrypt and compare passwords using the SHA-256 hashing algorithm.

How to use it

const {encryption,is_match}=require('node-data-cryption');

//example:-'user_password',16

const key=encryption('user_input_password',key_length); //key=['hashed password','salt'];

const result=is_match('user_input_password',key[1],key[0]); //this will return true if matches otherwise false.

/node-data-cryption/

    Package Sidebar

    Install

    npm i node-data-cryption

    Weekly Downloads

    0

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    1.61 kB

    Total Files

    3

    Last publish

    Collaborators

    • someswargorai