0.1.2 • Published 6 months ago
vigenere.js v0.1.2
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
Install
npm install vigenere.js
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, });