JSPM

npm-vigenere-cipher

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q41141F
  • License ISC

Cipher and Decipher simple text

Package Exports

  • npm-vigenere-cipher

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-vigenere-cipher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 { cipher, decipher } = require('npm-vigenere-cipher');

const message = 'Secret Code.';
const passphrase = 'foobar';
const test = cipher(message, passphrase);
console.log(test);
  //expected output = xGEG4YTqQ44q
console.log(decipher(test, passphrase));
  //expected output = Secret Code

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