-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Encryption fails on Safari #36
Comments
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming it seems this is supported by safari 15 upwards which only got released half a year ago, checking with our testers. Seems safari users are just a little old fashioned... yet they are likely a not too insignificant portion of the mobile userbase. I wonder if there's a way to make it backwards compatible... |
Hey @sils thanks for report the issue, I think i can replace instantiateStreaming using fetch('simple.wasm').then(response =>
response.arrayBuffer()
).then(bytes =>
WebAssembly.instantiate(bytes, importObject)
) let me run some tests here and then we will be supporting from Safari 11 |
Update: Please try this new version https://pub.dev/packages/fast_rsa/versions/3.4.7 main changes 65620f5#diff-2fdc69bca430e9590568563c103bfc3a1b1460a46c7eaefc51c8cd3fe7cd6881R5-R57 |
@sils any news on this, did you already tested ? |
Yep, this works! |
Hey,
we use this in our app and it works great in web and mobile - except on Safari (mobile and desktop).
Here's a screenshot of the respective error in the JS console:
In our code we're essentially doing this:
return await RSA.encryptPKCS1v15(message, publicKey);
The text was updated successfully, but these errors were encountered: