npm-vigenere-cipher

1.0.4 • Public • Published

npm-vigenere-cipher

npm-vigenere-cipher is a package to cipher and decipher a secret code using passphrase.

Installation

Installation is done using the npm install command:

npm install npm-vigenere-cipher

Usage

const { cipherdecipher } = require('npm-vigenere-cipher');
 
const message = 'Secret Code.';
const passphrase = 'foobar';
const test = cipher(messagepassphrase);
console.log(test);
  //expected output = xGEG4YTqQ44q
console.log(decipher(testpassphrase));
  //expected output = Secret Code

This package only support message and passphrase that contain alphabet, number, space, ".", and ","

Package Sidebar

Install

npm i npm-vigenere-cipher

Weekly Downloads

4

Version

1.0.4

License

ISC

Unpacked Size

3.87 kB

Total Files

3

Last publish

Collaborators

  • akbarakma