Questions & Answers

Is there a way to generate RSA key pair using react

I'm trying to generate rsa keypairs in react for a end to end encrypted app There seems to be no npm packages to do so client side. Should i implement it manually ?

I tried multiple npm packages including jsencrypt and rsajs and none provide the possibility to do so

2023-01-19 23:25:08
"Should i implement it manually ?" – Short answer: NO! Cryptography is a difficult topic and if you make mistakes the damage could be very big.
2023-01-19 23:25:08
How should i do it otherwise
2023-01-19 23:25:09
React is a UI framework. It has nothing to do with encryption.
2023-01-19 23:25:09
Take a look at this question:
Answers(0) :