# classical-cipher

> Tools for decrypting, encrypting, and solving classical ciphers

Latest version **0.0.3** (published 2016-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install classical-cipher
pnpm add classical-cipher
yarn add classical-cipher
bun add classical-cipher
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-10-04 |
| First published | 2016-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Thomas Hickman |
| Maintainers | thomashickman |
| Keywords | ciphers, cipher, classical |

## Links

- npm: https://www.npmjs.com/package/classical-cipher
- Repository: https://github.com/ThomasHickman/classical-cipher
- Homepage: https://github.com/ThomasHickman/classical-cipher#readme
- Issues: https://github.com/ThomasHickman/classical-cipher/issues
- npm.io page: https://npm.io/package/classical-cipher

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) 4.x

## 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

- 0.0.3 (latest) — 2016-10-04
- 0.0.2 — 2016-10-04
- 0.0.1 — 2016-10-04

## README

# classical-cipher
Tools for decrypting, encrypting, and solving classical ciphers in JavaScript

## Licence

This project is licensed under the [MIT license (MIT)](LICENSE).

## Features
### Ciphers
- Caesar shift
- Simple substitution cipher
- Vigenère cipher
- Columnar transposition
- Amsco cipher
- Hill cipher
- Railfence cipher

### Statistics
- Chi Squared

### Solvers
- Brute Force
- Hill Climbing

## Planned Features
- Playfair cipher
- Cadence cipher
- Simulated Annealing
- Quadram count
- Bigram rate

## Building

```bash
npm run-script build
```

## Example

```javascript
var cc = require("classical-cipher");

console.log(cc.solvers.bruteForce.solve({
    cipherText: "Alza zaypun!",
    cipher: cc.ciphers.caesarShift,
    stat: cc.stats.chiSquared,
    reporter: cc.reporters.silentReporter
}));// prints { text: 'Test string!', key: 7 }
```

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