This is a simple Node.js package that provides functions to securely encrypt and compare passwords using the SHA-256 hashing algorithm.
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.