-
-
Couldn't load subscription status.
- Fork 30.9k
feat: Add a Cryptography Algorithm Playfair cipher #2082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lazarljubenovic
commented
Oct 22, 2025
What's the point of submitting it here when we can all generate it the same way you did?
What's the point of submitting it here when we can all generate it the same way you did?
Implementing code is different thing, but learning from this is an important thing. As part of my learning, I wanted to implement some of the standard algorithms in javascript (this is one of them). This PR if merged with javascript-algorithms repository shows my learning and contribution as well as motivates beginners to implement such standard algorithms in javascript and contribute!
Added Playfair cipher (JavaScript) in Cryptography Algorithms
What:
Adds implementation of the Playfair cipher in JavaScript, including encrypt and decrypt functions. Includes README explanation and unit tests.
Why:
The repository already includes classical ciphers (Caesar, Rail-Fence, Hill). The Playfair cipher is a historically important digraph substitution cipher and completes this cryptography section.
How:
Testing:
Run npm test — all tests should pass, including new ones.
Checklist: