Simple, effective, easy to implement encryption for JavaScript
![Logo](https://cdn.discordapp.com/attachments/941650096855068752/1009750552088956958/keyhasher.jpg)
Installation
npm install keyhasher
Importing
const key = require('keyhasher');
Features
- Encrypts data with multiple processes
- Uses password numbers to Encrypt and Decrypt
How to use:
- use 'hash()' function with a Passcode number, and convert any sentence to encrypted format.
- use 'revHash()' function with the same Passcode number, to get back the Real sentence.
- use 'sha256()' function to finally hash the encrypted value
const key = require('keyhasher');
var hashAble = key.hash("Normal Sentence", process.env.passcode);
console.log(`Hashed Phrase: ${hashAble}`)
var rawWord = key.revHash("Hashed code", process.env.passcode);
console.log(`Output: ${rawWord}`)
const hashed = key.sha256(hashAble);
console.log(`Hashed: ${hashed}`)
Example 💡
var hashAble = key.hash("Hi", 572);
console.log(`Hashed Phrase: ${hashAble}`)
var rawWord = key.revHash("X4A=", 572);
console.log(`Output: ${rawWord}`)
const hashed = key.sha256(hashAble);
console.log(`Hashed: ${hashed}`)
©IndGeek
©Soumya Mondal