JavaScript
JavaScript copied to clipboard
feat: add RSA encryption and decryption algorithm
This PR implements the RSA encryption and decryption algorithm under the Ciphers section. It includes:
RSA key generation
Encryption and decryption functions
Unit tests written with Vitest
The algorithm follows the project's coding guidelines, naming conventions, and test structure.
✅ All tests pass locally. ✅ Code is formatted with Prettier.
Codecov Report
Attention: Patch coverage is 98.11321% with 2 lines in your changes missing coverage. Please review.
Project coverage is 85.94%. Comparing base (
1d252d7) to head (d69172b).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| Ciphers/RSAAlgorithm.js | 98.11% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #1775 +/- ##
==========================================
+ Coverage 85.87% 85.94% +0.06%
==========================================
Files 377 378 +1
Lines 19720 19826 +106
Branches 3005 3019 +14
==========================================
+ Hits 16935 17039 +104
- Misses 2785 2787 +2
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.