-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any plans to add WebCrypto API to React-Native? #83
Comments
The most used and supported library currently is However if it was I think the API shouldn't use the NodeJS Crypto module API but the WebCrypto API which is supported by all major browsers. In my view, the |
I am not sure if it makes sense to make this a part of Web Core. Why not have a "recommended" community support library for Web Crypto ? |
Why not? Most APIs that are available on browsers are supported or provide alternatives. Fetch API is available. LocalStorage API is available as AsyncStorage. How is WebCrypto API different? |
Relevant conversation -> |
I personally would like having WebCrypto added, even though I can see the benefit of having it in a separate module as well... Deno is also in the process of adding it, and I really like the idea of many JavaScript runtimes that are compatible with each other. I started working on react-native-webcrypto but it only supports Android currently... edit: I also implemented getRandomValues() here, it's stable for both iOS and Android 🎉 |
I agree with @TheSavior and @axemclion that our current focus is to reduce the surface area instead of adding to it. @LinusU I would recommend you to build out your third-party dependency as you are doing now. Maybe eventually we could move it to |
A lot of quick hacks and libraries try to either polyfill or build their own solutions for crypto but browsers already have a good library that is super performant for cryptography.
Is there any plans to add WebCrypto API to the React-Native environment?
The text was updated successfully, but these errors were encountered: