Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keyhasher

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keyhasher

Simple, effective, easy to implement encryption for JavaScript

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by30%
Maintainers
1
Weekly downloads
 
Created
Source

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", passcode);
console.log(`Hashed Phrase: ${hashAble}`)

var rawWord = key.revHash("Hashed code", 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

Keywords

FAQs

Package last updated on 17 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc