node-data-cryption
v1.0.2
Published
this is for encryption and comparing
Downloads
1
Readme
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.