0.1.2 • Published 6 months ago

vigenere.js v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

0.1.2

6 months ago

0.1.0

6 months ago

0.1.1

6 months ago

0.0.2

2 years ago

0.0.1

2 years ago