react-native-keys
react-native-keys copied to clipboard
Support react-native-quick-crypto
Current behavior
After installing react-native-quick-crypto with react-native-keys has error:
Error: Exception in HostFunction: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "EVP_PKEY_get_raw_private_key" referenced by "/base.apk!/lib/x86_64/libreactnativequickcrypto.so"...,
The problem with decryptor.cpp and for encryption better to user react-native-quick-crypto instead of CryptoJs
Expected behavior
Working well with both libs
Platform
- [X] Android
React Native Version
^0.75
React Native Compressor Version
Reproducible Steps And Demo
Install react-native-quick-crypto and react-native-keys
π @Zzzhuk Thanks for opening your issue here! If you find this package useful hit the starπ!
There is only place where CryptoJS are used https://github.com/numandev1/react-native-keys/blob/main/src/util/common.js#L223 and it's to encrypt using AES
quick-crypto does not have support for that yet - https://github.com/margelo/react-native-quick-crypto/blob/main/docs/implementation-coverage.md
It can however be used instead of crypto, for randomBytes impl.
As for the issue not working together, might be something else. Maybe it should be reported to the lib repo.
Edit:
If consider other ways to implement the encryption. cryptojs would not even be needed.
Considering this, quick-crypt does support createCipheriv, so I suppose quick-crypto could replace both.