vigenere.js
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

vigenere.js

A javascript implementation of the Vigenère cipher.

This isn't secure, so please don't rely on it for anything sensitive, it's just a learning exercise and a bit of fun...

Getting started

  1. Install

    npm install vigenere.js
  2. Use

    import { VigenereCipher } from "vigenere.js";
    
    const cipher = new VigenereCipher();
    
    const key = "lemon";
    const plaintext = "attack at dawn";
    
    const encrypted = cipher.encrypt(plaintext, key);
    const decrypted = cipher.decrypt(encrypted, key);
    
    console.log({
        key,
        plaintext,
        encrypted,
        decrypted,
    });

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i vigenere.js

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

7.13 kB

Total Files

5

Last publish

Collaborators

  • chrisrowles