Skip to content

Classical cipher cryptanalysis toolkit - Vigenere, Beaufort, Caesar, XOR. Dictionary validation, Web Workers.

Notifications You must be signed in to change notification settings

ericperret/code

Repository files navigation

🔐 Code

License: MIT Pure HTML/JS Cryptography

Classical cipher cryptanalysis toolkit — Break historical ciphers with statistical attacks.

▶️ Lancer l'application

Screenshot

🚀 Features

  • Vigenère Cipher — Kasiski examination, index of coincidence
  • Beaufort Cipher — Reciprocal cipher analysis
  • Caesar Cipher — Frequency analysis, brute force
  • XOR Cipher — Known plaintext, crib dragging
  • Base64 — Encoding/decoding utilities
  • Dictionary Validation — Verify plaintext against word lists
  • Web Workers — Background processing for large texts

🛠️ Tech Stack

  • Pure HTML/CSS/JavaScript
  • Web Workers for parallel computation
  • Frequency analysis algorithms
  • No external dependencies

📖 Usage

  1. Open `index.html` in your browser
  2. Paste your ciphertext
  3. Select the suspected cipher type
  4. Click Analyze to run attacks
  5. Review candidate plaintexts

🎓 Techniques Implemented

  • Frequency Analysis — Letter distribution comparison
  • Index of Coincidence — Key length estimation
  • Kasiski Examination — Repeated sequence analysis
  • Dictionary Attack — Plaintext validation
  • Chi-squared Test — Statistical fitness

📄 License

MIT

👤 Author

Eric PERRETGitHub

About

Classical cipher cryptanalysis toolkit - Vigenere, Beaufort, Caesar, XOR. Dictionary validation, Web Workers.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published