test(railfence): document 26-char convention and add unambiguous test… - #991
Conversation
… vectors - Added comment above existing vector documenting the 26-character input convention and the 25-character ambiguity from some sources - Added HELLOWORLD/2-rail vector (trivially hand-verifiable) - Added ATTACKATDAWN/3-rail vector (trivially hand-verifiable) - All vectors confirmed via encryptFast; round-trips pass Closes csxark#867
|
@Atharv094 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 @Atharv094, 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Rail Fence test vectors now document the existing 26-character example and include additional encryption vectors for ChangesRail Fence test vector updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
|
@csxark The CI failures are pre-existing and unrelated to this PR. All failures are in skipjack.test.ts, rainbowTable.test.ts, benchmark.test.ts, and other files not touched by this PR. This PR only modifies lib/cipher/classical/railfence.ts (+23 lines of comments and test vectors). The railfence tests themselves pass. |
🎉 Pull Request MergedHello @Atharv094, 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! |
Description
Added documentation and additional test vectors to the Rail Fence cipher
to resolve ambiguity around the commonly cited WEAREDISCOVEREDFLEEAATONCE example.
Related Issue
Closes #867
Type of Change
Changes Made
Testing
Screenshots
N/A — no UI changes.
Checklist
Additional Notes
All three test vectors confirmed via encryptFast. Encrypt→decrypt round-trips pass for all vectors.
Summary by CodeRabbit