Does anyone know if there is an implementation of Elliptic Curve Diffie Hellman cryptography (ECDH) for React Native?
I found some libraries for this. each of them has some issues:
- react-native-ecc: it only generates key pairs and does not implement generating shared key(secret key) from private and public key for encryption
- react-native-crypto: it uses some hacks and changes node_modules recursively and i think it's not stable.
- elliptic : it's in a plain javascript implementation and it does not work in react native
BigInt
class and usesn
big integer suffix syntax. – Diomidis Spinellis