Tools for decrypting, encrypting, and solving classical ciphers in JavaScript
This project is licensed under the MIT license (MIT).
- Caesar shift
- Simple substitution cipher
- Vigenère cipher
- Columnar transposition
- Amsco cipher
- Hill cipher
- Railfence cipher
- Chi Squared
- Brute Force
- Hill Climbing
- Playfair cipher
- Cadence cipher
- Simulated Annealing
- Quadram count
- Bigram rate
npm run-script build
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 }