Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jeremenichelli/vigenere
- Owner: jeremenichelli
- License: mit
- Created: 2015-10-07T02:31:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-08T15:53:28.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T13:34:41.803Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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