React本机密钥对 Public / Private RSA密钥生成的本地实现。 用法 import KeyPair from 'react-native-key-pair' KeyPair.generate((keys)=>{ console.log(keys.private) // the private key console.log(keys.public) // the public key }) 入门 $ npm install react-native-key-pair --save 大多是自动安装 $ react-native link react-native