- Notifications
You must be signed in to change notification settings - Fork20.9k
Add ElGamalCipher implementing ElGamal encryption and decryption#7064
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Add ElGamalCipher implementing ElGamal encryption and decryption#7064
Uh oh!
There was an error while loading.Please reload this page.
Conversation
polasisubash commentedNov 12, 2025
Hi maintainers 👋, |
codecov-commenter commentedNov 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## master #7064 +/- ##============================================- Coverage 78.51% 78.45% -0.07% Complexity 6752 6752 ============================================ Files 759 760 +1 Lines 22402 22417 +15 Branches 4400 4400 ============================================- Hits 17589 17587 -2- Misses 4108 4124 +16- Partials 705 706 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
polasisubash commentedNov 12, 2025
✅ All checks have passed successfully. |
1 similar comment
polasisubash commentedNov 14, 2025
✅ All checks have passed successfully. |
polasisubash commentedNov 15, 2025
✅ All checks have passed successfully. |
polasisubash commentedNov 22, 2025
✅ All checks have passed successfully. |
DenizAltunkapan commentedNov 22, 2025
@polasisubash Please always add a corresponding test class to your implementation |
DenizAltunkapan commentedDec 14, 2025
@polasisubash Also don't forget the corresponding test class! |
Description
Added a new class
ElGamalCipher.javaimplementing theElGamal encryption and decryption algorithm.Features
Example Output
Original: 12345
Encrypted: (c1, c2 values)
Decrypted: 12345
Technical Notes
src/main/java/com/thealgorithms/ciphers/References
Checklist