You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently on a mission to implement our encryption functions that work in the react webapp and NodeJS in our react native app. These functions use the node:crypto and Web Crypto API.
We use the following functions from the crypto.subtle.
What Platforms whould this feature/enhancement affect?
iOS, Android
Alternatives/Workarounds
The current workaround is using the react-native-webview-crypto which works. This brings window.crypto.subtle to your React Native application. It does this by communicating with a hidden WebView, which performs the actual computation.
However, regarding the actual implementation of the missing functions generateKey("AES-GCM") and importKey("pkcs8"+RSA-OAEP) I wouldn't know where to start.
What feature or enhancement are you suggesting?
This repo looks great. Thanks for all the work!
I'm currently on a mission to implement our encryption functions that work in the react webapp and NodeJS in our react native app. These functions use the
node:crypto
andWeb Crypto API
.We use the following functions from the
crypto.subtle
.crypto.subtle.importKey("raw", "AES-GCM")
crypto.subtle.generateKey("AES-GCM")
crypto.subtle.exportKey("raw")
crypto.subtle.encrypt("AES-GCM")
crypto.subtle.decrypt("AES-GCM")
crypto.subtle.generateKey("RSA-OAEP")
crypto.subtle.importKey("spki", "RSA-OAEP")
crypto.subtle.importKey("pkcs8", "RSA-OAEP")
crypto.subtle.encrypt("RSA-OAEP")
crypto.subtle.decrypt("RSA-OAEP")
crypto.subtle.exportKey("spki", publicKey)
crypto.subtle.exportKey("pkcs8", privateKey)
crypto.subtle.importKey("raw", "PBKDF2")
crypto.subtle.deriveBits("PBKDF2")
The only two function that we are missing are:
What Platforms whould this feature/enhancement affect?
iOS, Android
Alternatives/Workarounds
The current workaround is using the react-native-webview-crypto which works. This brings window.crypto.subtle to your React Native application. It does this by communicating with a hidden WebView, which performs the actual computation.
However, this does not seem great.
Additional information
I saw this comment. I can try to setup a unit test that uses the two missing functions.
Unit test: `importKey("RSA-OAEP")`
Unit test: `generateKey("AES-GCM")`
However, regarding the actual implementation of the missing functions
generateKey("AES-GCM")
andimportKey("pkcs8"+RSA-OAEP)
I wouldn't know where to start.Let me know how I could help getting these functions supported by react-native-quick-crypto.
The text was updated successfully, but these errors were encountered: