npm.io
1.0.2 • Published 7 years ago

vigenere-encryption

Licence
ISC
Version
1.0.2
Deps
0
Size
6 kB
Vulns
0
Weekly
0

description: Npm package for encryption and decryption with vigenere cipher

Vigenere Encryption

link to github repo

Installation

Type this in console to install this package:

$ npm i vigenere-encryption

{% hint style="info" %} Keep in mind that this package is still work in progress {% endhint %}

Usage

Add the module to your javascript file

const encryption = require("./node_modules/vigenere-encryption/index");

The function takes 3 parameters:

  1. message (message to encode)
  2. key (the key to use)
  3. cipherIt (If true it will encrypt if false it will decrypt)
Example usage
const encryption = require("./node_modules/vigenere-encryption/index");
console.log(encryption(message.value, key.value, false));