Skip to content

miguelzacca/vigenere-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vigenere-encoder

Vigenere cipher encoder/decoder. (npm package)

Install

npm i vigenere-encoder

Use

import v from "vigenere-encoder"

Example

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!