RSA in JavaScript: Your Numbers Are Too Small
- Created
- 2 Jun 2023
- Last reply
- over 3 years ago
- Replies
- 0
- Views
- 0
- Reactions
- 0
Discussion of the blog article RSA in JavaScript: Your Numbers Are Too Small.
JavaScript cannot do RSA with numbers. Not slowly, not imprecisely — at all. The largest modulus a Number can handle is 26 bits and RSA needs 2048, and the failure is silent. Here's the implementation that works and why.
Discussion thread — share findings, corrections and follow-ups below.