Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ThomasHickman/classical-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

classical-cipher

Tools for decrypting, encrypting, and solving classical ciphers in JavaScript

Licence

This project is licensed under the MIT license (MIT).

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

npm run-script build

Example

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 }

About

Tools for decrypting, encrypting, and solving classical ciphers in JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published