feat: add substitution cipher breaker with simulated annealing - #1672
Conversation
Automated cryptanalysis tool for monoalphabetic substitution ciphers using frequency analysis seed, hill climbing with simulated annealing, and quadgram log-likelihood scoring. Includes interactive React UI with convergence charts, key mapping visualization, and 30+ unit tests. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@karan-chaos is attempting to deploy a commit to the csxark's projects Team on Vercel. A member of the Team first needs to authorize it. |
🎉 Thank You for Your ContributionHello @karan-chaos, Thank you for submitting a Pull Request to CryptoViz. We appreciate the time and effort you've invested in contributing to the project. Your Pull Request has been received successfully and will be reviewed by the maintainers as soon as possible. 📋 Pull Request Checklist
Ensuring these requirements are met helps streamline the review process and enables maintainers to review your contribution more efficiently. ❤️ Support CryptoVizIf you find CryptoViz helpful, consider supporting the project by:
Your support helps increase the project's visibility and encourages continued development. Thank you for being a part of the CryptoViz community! Thank you once again for contributing to CryptoViz. We appreciate your support and look forward to reviewing your contribution. |
|
Warning Review limit reachedNext included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎉 Pull Request MergedHello @karan-chaos, Thank you for your contribution to CryptoViz. Your Pull Request has been reviewed and successfully merged into the project. We sincerely appreciate the time and effort you invested in improving the project. Contributions like yours help make CryptoViz better for the entire community. We look forward to your future contributions and hope to collaborate with you again. ❤️ Support CryptoVizIf you find CryptoViz helpful, consider supporting the project by:
Your support helps increase the project's visibility and encourages continued development. Thank you for being a part of the CryptoViz community! |
Summary
Resolves #1671
This PR introduces a complete substitution cipher breaker using frequency
analysis for initial key seeding, hill climbing and simulated annealing for
optimization, and quadgram fitness scoring for evaluating candidate plaintext.
It also adds an interactive React interface for visualizing the breaking
process and comparing candidate solutions.
Changes
Cipher Breaking Engine
Implemented:
Optimization
Added a hybrid optimization approach combining:
Candidate Scoring
Added quadgram-based fitness scoring to evaluate and rank decrypted
plaintext candidates.
Interactive UI
Added a React interface featuring:
Visualization
Added tools for viewing:
Testing
Added 30+ unit tests covering:
Verification