https://github.com/ronanyeah/vigenere
npm package for basic encoding and decoding
https://github.com/ronanyeah/vigenere
Last synced: about 1 month ago
JSON representation
npm package for basic encoding and decoding
- Host: GitHub
- URL: https://github.com/ronanyeah/vigenere
- Owner: ronanyeah
- License: gpl-2.0
- Created: 2015-09-06T21:13:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T22:31:18.000Z (almost 11 years ago)
- Last Synced: 2025-03-08T02:16:31.688Z (over 1 year ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vigenere
npm package for basic encoding and decoding.
Based on the [Vigenère cipher](https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher).
# Example
```javascript
var Vigenere = require('vigenere');
var secretMessage = Vigenere.encode('omg total secret', 'hax0rk3y');
// => 'vmd kysys pdtbdr'
var decodedMessage = Vigenere.decode('vmd kysys pdtbdr', 'hax0rk3y');
// => 'omg total secret'
```