# caesar-salad

> Caesar, Vigenere and ROT Ciphers.

Latest version **2.1.0** (published 2019-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install caesar-salad
pnpm add caesar-salad
yarn add caesar-salad
bun add caesar-salad
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2019-09-23 |
| First published | 2014-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0 |
| Dependencies | 1 |
| Unpacked size | 24.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michael Mayer |
| Maintainers | schnittstabil |
| Keywords | Caesar, Cipher, Vigenere, ROT, ROT13, ROT18, ROT47, ROT5 |

## Links

- npm: https://www.npmjs.com/package/caesar-salad
- Repository: https://github.com/schnittstabil/caesar-salad-cli
- Homepage: https://github.com/schnittstabil/caesar-salad-cli#readme
- Issues: https://github.com/schnittstabil/caesar-salad-cli/issues
- npm.io page: https://npm.io/package/caesar-salad

## Dependencies (1)

- [char-buffer](https://npm.io/package/char-buffer.md) ^1.0.0||^2.0.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2019-09-23
- 2.0.1 — 2019-05-18
- 2.0.0 — 2019-05-18
- 1.0.1 — 2016-07-31
- 1.0.0 — 2016-07-30
- 0.1.7 — 2015-04-15
- 0.1.6 — 2014-09-12
- 0.1.2 — 2014-08-03
- 0.1.1 — 2014-08-03
- 0.1.0 — 2014-08-03

## README

# caesar-salad [![Build Status](https://travis-ci.org/schnittstabil/caesar-salad.svg?branch=master)](https://travis-ci.org/schnittstabil/caesar-salad) [![Coverage Status](https://coveralls.io/repos/github/schnittstabil/caesar-salad/badge.svg?branch=master)](https://coveralls.io/github/schnittstabil/caesar-salad?branch=master) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)

> Caesar, Vigenere and ROT Ciphers

## Install

```bash
$ npm install --save caesar-salad
```

## Usage

### Caesar Cipher

See [here](http://schnittstabil.github.io/caesar-salad/api/classes/Password.html) for supported password formats.

```JavaScript
const Caesar = require('caesar-salad').Caesar;

Caesar.Cipher('c').crypt('abc-0123456789@example.com');
//=> cde-0123456789@gzcorng.eqo

Caesar.Decipher('c').crypt('cde-0123456789@gzcorng.eqo');
//=> abc-0123456789@example.com
```

### Vigenere Cipher

See [here](http://schnittstabil.github.io/caesar-salad/api/classes/Password.html) for supported password formats.

```JavaScript
const Vigenere = require('caesar-salad').Vigenere;

Vigenere.Cipher('password').crypt('abc-0123456789@example.com');
//=> pbu-0123456789@wtodsae.ugi

Vigenere.Decipher('password').crypt('pbu-0123456789@wtodsae.ugi');
//=> abc-0123456789@example.com
```

### ROT Cipher

```JavaScript
const caesarSalad = require('caesar-salad');
const ROT13 = caesarSalad.ROT13;
const  ROT5 = caesarSalad.ROT5;
const ROT18 = caesarSalad.ROT18;
const ROT47 = caesarSalad.ROT47;

ROT13.Cipher().crypt('abc-0123456789@example.com');    //=> nop-0123456789@rknzcyr.pbz
 ROT5.Cipher().crypt('abc-0123456789@example.com');    //=> abc-5678901234@example.com
ROT18.Cipher().crypt('abc-0123456789@example.com');    //=> nop-5678901234@rknzcyr.pbz
ROT47.Cipher().crypt('abc-0123456789@example.com');    //=> 234\\_`abcdefgho6I2>A=6]4@>


ROT13.Decipher().crypt('nop-0123456789@rknzcyr.pbz');  //=> abc-0123456789@example.com
 ROT5.Decipher().crypt('abc-5678901234@example.com');  //=> abc-0123456789@example.com
ROT18.Decipher().crypt('nop-5678901234@rknzcyr.pbz');  //=> abc-0123456789@example.com
ROT47.Decipher().crypt('234\\_`abcdefgho6I2>A=6]4@>'); //=> abc-0123456789@example.com
```

## Documentation

* See [API](http://schnittstabil.github.io/caesar-salad/api/) for thorough documentation

## Related

* [caesar-salad-cli](https://github.com/schnittstabil/caesar-salad-cli) CLI for this module

## License

MIT © [Michael Mayer](http://schnittstabil.de)

---
_Source: https://npm.io/package/caesar-salad · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
