Vigenere cipher encoder/decoder. (npm package)
npm i vigenere-encoder
import v from "vigenere-encoder"
import v from "vigenere-encoder"
const text = "Hello, world!"
const key = "my key"
const cipherText = v.encode(text, key)
console.log(cipherText)
const plainText = v.decode(cipherText, key)
console.log(plainText)
output:
tcvpm, gsppj!
hello, world!