Re:Implementing RSA from Scratch in JavaScript
by f_devd on Thursday February 29, 2024 @08:01AM
(#39548731)
Javascript has native BigInts, and there is already an RSA implementation using them: https://github.com/i404788/tiny-rsa
[ Parent
| on HN ]
Re:Implementing RSA from Scratch in JavaScript
by pquki4 on Thursday February 29, 2024 @08:49AM
(#39549231)
That's funny --
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
> The operations supported on BigInt values are not constant-time and are thus open to timing attacks. JavaScript BigInts therefore could be dangerous for use in cryptography without mitigating factors.
Without checking the source code to understand their exact implementation, it seems questionable to implement cryptography algorithms for serious use in JavaScript.