Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremenichelli/vigenere

JavaScript library to cipher and decipher strings using Vigenère encrypting method
https://github.com/jeremenichelli/vigenere

Last synced: 16 days ago
JSON representation

JavaScript library to cipher and decipher strings using Vigenère encrypting method

Awesome Lists containing this project

README

        

# vigenere

JavaScript library to cipher and decipher strings using Vigènere encrypting method writeen in ES2015.

## Use

As you might, or might not know, the Vigènere encryption receives a key word that will use in the arithmetical process of encryption and the phrase you want to cipher or decipher.

To use it in your app, download the distribution file and import the module:

```js
import { cipher, decipher } from 'vigenere.js';
```

### cipher

```js
cipher('lemon', 'Attack at dawn!');
// returns 'Lxfopv ef rnhr!'
```

### decipher

```js
decipher('lemon', 'Lxfopv ef rnhr!');
// returns 'Attack at dawn!'
```

## Reference

https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher