Notorious Party Muppets

    keyhasher

    1.3.2 • Public • Published

    Simple, effective, easy to implement encryption for JavaScript

    Logo

    Installation

    npm install keyhasher
    

    Importing

    const key = require('keyhasher');

    Features

    • Encrypts data with multiple processes
    • Uses password numbers to Encrypt and Decrypt N

    How to use:

    • use 'hash()' function with a Passcode number, and convert any sentence to Hashed format.
    • use 'revHash()' function with the same Passcode number, to get back the Real sentence.
    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}`)
    

    Example 💡

    var hashAble = key.hash("Hi", 572);
    console.log(`Hashed Phrase: ${hashAble}`)
    
    // Hashed Phrase: X4A=
    
    var rawWord = key.revHash("X4A=", 572);
    console.log(`Output: ${rawWord}`)
    
    // Real Phrase: Hi

    ©IndGeek

    ©Soumya Mondal

    Install

    npm i keyhasher

    DownloadsWeekly Downloads

    15

    Version

    1.3.2

    License

    MIT

    Unpacked Size

    38.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • igeek